Skip to content

Commit

Permalink
Update page
Browse files Browse the repository at this point in the history
  • Loading branch information
emilkowalski committed Jan 29, 2024
1 parent 128f4df commit c492e05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
14 changes: 1 addition & 13 deletions website/src/components/Hero/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { toast } from 'sonner';

import { track } from '@vercel/analytics';
import styles from './hero.module.css';
import Link from 'next/link';

Expand All @@ -13,18 +12,7 @@ export const Hero = () => {
<div className={styles.toast} />
</div>
<h1 className={styles.heading}>Sonner</h1>
<p style={{ marginTop: 0, fontSize: 18, textAlign: 'center' }}>
An opinionated toast component for React, by{' '}
<a
href="https://emilkowal.ski/"
target="_blank"
onClick={() => track('emilkowal.ski click')}
style={{ textDecoration: 'underline', textDecorationThickness: 1 }}
>
Emil
</a>
.
</p>
<p style={{ marginTop: 0, fontSize: 18, textAlign: 'center' }}>An opinionated toast component for React .</p>
<div className={styles.buttons}>
<button
data-primary=""
Expand Down
4 changes: 3 additions & 1 deletion website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Usage } from '@/src/components/Usage';
import { Other } from '@/src/components/Other/Other';
import Head from '../components/Head';
import { How } from '../components/How/How';
import { Footer } from '../components/Footer';

export default function Home() {
const [expand, setExpand] = React.useState(false);
Expand All @@ -20,7 +21,7 @@ export default function Home() {
<div className="wrapper light">
<Head />
<Toaster theme="light" richColors={richColors} closeButton={closeButton} expand={expand} position={position} />
<main className="container" style={{ marginBottom: 100 }}>
<main className="container">
<Hero />
<div className="content">
<Installation />
Expand All @@ -32,6 +33,7 @@ export default function Home() {
<How />
</div>
</main>
<Footer />
</div>
);
}

1 comment on commit c492e05

@vercel
Copy link

@vercel vercel bot commented on c492e05 Jan 29, 2024

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.