generated from chingu-voyages/voyage-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(components page & minimal refactoring elsewhere): add icons to co…
…mpoents page and refactor Refactor components page to include the icons available to this project; move components related to the home page to that subfolder; update Hero Section, Button Component and Search Box to use Icon component
- Loading branch information
Showing
11 changed files
with
235 additions
and
207 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
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
This file was deleted.
Oops, something went wrong.
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,58 @@ | ||
import { Button } from "@/features/ui/Button"; | ||
import { Icon } from "@/features/ui/Icon"; | ||
import { Heading } from "@/features/ui/Heading"; | ||
|
||
function Buttons() { | ||
return ( | ||
<section id="buttons"> | ||
<Heading level="h3" variant="tangerine"> | ||
Buttons | ||
</Heading> | ||
<div className="grid gap-3 grid-cols-2"> | ||
<ul className="grid gap-3"> | ||
<li> | ||
<Button variant="primary" size="small"> | ||
Small, primary button | ||
<Icon name="right-arrow" /> | ||
</Button> | ||
</li> | ||
<li> | ||
<Button variant="primary" size="medium"> | ||
Medium, primary button | ||
<Icon name="right-arrow" /> | ||
</Button> | ||
</li> | ||
<li> | ||
<Button variant="primary" size="large"> | ||
Large, primary button! | ||
<Icon name="right-arrow" /> | ||
</Button> | ||
</li> | ||
</ul> | ||
|
||
<ul className="grid gap-3"> | ||
<li> | ||
<Button variant="secondary" size="small"> | ||
Small, secondary button | ||
<Icon name="right-arrow" className="scale-175" /> | ||
</Button> | ||
</li> | ||
<li> | ||
<Button variant="secondary" size="medium"> | ||
Medium, secondary button | ||
<Icon name="right-arrow" className="scale-175" /> | ||
</Button> | ||
</li> | ||
<li> | ||
<Button variant="secondary" size="large"> | ||
Large, secondary button! | ||
<Icon name="right-arrow" className="scale-175" /> | ||
</Button> | ||
</li> | ||
</ul> | ||
</div> | ||
</section> | ||
); | ||
} | ||
|
||
export default Buttons; |
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,20 @@ | ||
import Buttons from "./Buttons"; | ||
import Icons from "./Icons"; | ||
import Headings from "./Headings"; | ||
|
||
import { Heading } from "@/features/ui/Heading"; | ||
|
||
function Components() { | ||
return ( | ||
<section className="p-10"> | ||
<Heading level="h2" variant="lava" className="mb-6"> | ||
Components | ||
</Heading> | ||
<Buttons /> | ||
<Icons /> | ||
<Headings /> | ||
</section> | ||
); | ||
} | ||
|
||
export default Components; |
Oops, something went wrong.