-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import {Meta, StoryObj} from "@storybook/react"; | ||
import Menu from "../menu/Menu"; | ||
import {Placement} from "react-aria"; | ||
import {Quote} from "./Quote"; | ||
import React from "react"; | ||
|
||
const meta: Meta = { | ||
title: "Quote", | ||
component: Quote, | ||
} | ||
|
||
export default meta; | ||
|
||
type MenuStory = StoryObj | ||
|
||
|
||
export const MenuAccount: MenuStory = { | ||
render: (args) => { | ||
return <Quote name={"Name"} logo={"https://cdn-icons-png.flaticon.com/512/3135/3135715.png"} position={"Position"}> | ||
My favorite UX feedback from customers is: | ||
"How is the app so fast?" | ||
Because we’ve built on Next.js and Vercel since day one, our pages load in an instant, | ||
which is important when it comes to mission-critical software. | ||
</Quote> | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.quote { | ||
|
||
&__text { | ||
&:after { | ||
right: 0; | ||
top: 0; | ||
position: relative; | ||
content: "\”"; | ||
} | ||
&:before { | ||
right: 0; | ||
top: 0; | ||
position: relative; | ||
content: "\”"; | ||
} | ||
} | ||
|
||
&__img { | ||
width: 2rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from "react"; | ||
import {TablerIconsProps} from "@tabler/icons-react"; | ||
import Card from "../card/Card"; | ||
import "./Quote.style.scss" | ||
|
||
export interface QuoteType { | ||
children: React.ReactNode, | ||
logo: string, | ||
name: string, | ||
position: string, | ||
} | ||
|
||
|
||
export interface QuoteLogo { | ||
children: React.ReactElement<TablerIconsProps> | ||
} | ||
|
||
export const Quote: React.FC<QuoteType> = (props) => { | ||
const {logo, children} = props; | ||
return <Card> | ||
<div className={"quote"}> | ||
<Card.Section> | ||
<div className={"quote__text"}> | ||
{children} | ||
</div> | ||
</Card.Section> | ||
<Card.Section> | ||
<img className={"quote__img"} src={logo} alt={"logo"}/> | ||
</Card.Section> | ||
|
||
</div> | ||
</Card> | ||
} |