From b6f483071dc7e53ca47161d8bfb15b30c9ed0eab Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Tue, 21 May 2024 21:09:41 -0400 Subject: [PATCH] simple site --- src/assets/main.css | 13 ++++- src/components/SocialItem.tsx | 19 +++++++ src/index.tsx | 104 ++++++++++++++++++++-------------- tailwind.config.js | 3 +- 4 files changed, 95 insertions(+), 44 deletions(-) create mode 100644 src/components/SocialItem.tsx diff --git a/src/assets/main.css b/src/assets/main.css index bd6213e..1f75884 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -1,3 +1,14 @@ @tailwind base; @tailwind components; -@tailwind utilities; \ No newline at end of file +@tailwind utilities; + +.crayon { + padding:0.5rem 0.5rem; + margin:0 0.5rem; + font-size:1rem; + + border-top-left-radius: 255px 15px; + border-top-right-radius: 15px 225px; + border-bottom-right-radius: 225px 15px; + border-bottom-left-radius:15px 255px; +} \ No newline at end of file diff --git a/src/components/SocialItem.tsx b/src/components/SocialItem.tsx new file mode 100644 index 0000000..1496ecc --- /dev/null +++ b/src/components/SocialItem.tsx @@ -0,0 +1,19 @@ +type SocialItemType = { + urlTo: string, + title: string +} + +export default function SocialItem({ + urlTo, + title +}: SocialItemType) { + return ( + + {title} + + ) +} \ No newline at end of file diff --git a/src/index.tsx b/src/index.tsx index 79b035e..65da60f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,51 +1,71 @@ -import { - Twitter, - BlockQuote, - Desktop -} from 'grommet-icons' +import SocialItem from "./components/SocialItem" +import { useState, useEffect } from "react" export default function Home() { + const [copied, setCopied] = useState(false); + + useEffect(() => { + setTimeout(() => { + setCopied(false) + }, 5000) + }, [copied]) + return ( -
-
-

- - Watchlist - -

-

- - NoBro - -

-

- Blog -

-

- Radio -

+
+
+
+ + + +
+
+

Alex

+
+
+ + + +
-
-

Alex's
Website

-
+
+ {/* */} + + { + copied ? ( + + ) : ( + + ) + } -
) diff --git a/tailwind.config.js b/tailwind.config.js index 5513b1c..f213ffa 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -5,7 +5,8 @@ export default { "./src/**/*.{js,ts,tsx,jsx}" ], theme: { - extend: {}, + extend: { + }, }, plugins: [], }