Skip to content

Commit

Permalink
add how section
Browse files Browse the repository at this point in the history
  • Loading branch information
emilkowalski committed Nov 13, 2023
1 parent 8472d54 commit 962dccb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions website/src/components/How/How.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react';

export const How = () => {
return (
<div>
<h2>How is it made?</h2>
<p>
You can read about why and how it was built{' '}
<a
href="https://emilkowal.ski/ui/building-a-toast-component"
target="_blank"
style={{ textDecoration: 'underline' }}
>
here
</a>
.
</p>
</div>
);
};
2 changes: 2 additions & 0 deletions website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Position } from '@/src/components/Position';
import { Usage } from '@/src/components/Usage';
import { Other } from '@/src/components/Other/Other';
import Head from '../components/Head';
import { How } from '../components/How/How';

export default function Home() {
const [expand, setExpand] = React.useState(false);
Expand All @@ -29,6 +30,7 @@ export default function Home() {
<Position position={position} setPosition={setPosition} />
<ExpandModes expand={expand} setExpand={setExpand} />
<Other setCloseButton={setCloseButton} setRichColors={setRichColors} />
<How />
</div>
</main>
<Footer />
Expand Down

1 comment on commit 962dccb

@vercel
Copy link

@vercel vercel bot commented on 962dccb Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.