Skip to content

An opinionated toast component for React.

Update page

emilkowalskic492e05cff66
diff --git a/website/src/components/Hero/index.tsx b/website/src/components/Hero/index.tsx
index 4929a03..54c4b3f 100644
--- a/website/src/components/Hero/index.tsx
+++ b/website/src/components/Hero/index.tsx
@@ -1,6 +1,5 @@
import { toast } from 'sonner';
-import { track } from '@vercel/analytics';
import styles from './hero.module.css';
import Link from 'next/link';
@@ -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=""
diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx
index f1517ac..f74f8d9 100644
--- a/website/src/pages/index.tsx
+++ b/website/src/pages/index.tsx
@@ -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);
@@ -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 />
@@ -32,6 +33,7 @@ export default function Home() {
<How />
</div>
</main>
+ <Footer />
</div>
);
}