diff --git a/public/buttons/009button.gif b/public/buttons/009button.gif new file mode 100644 index 0000000..164709e Binary files /dev/null and b/public/buttons/009button.gif differ diff --git a/public/buttons/mac.gif b/public/buttons/mac.gif new file mode 100644 index 0000000..155e81b Binary files /dev/null and b/public/buttons/mac.gif differ diff --git a/public/buttons/parental.png b/public/buttons/parental.png new file mode 100644 index 0000000..ba89dab Binary files /dev/null and b/public/buttons/parental.png differ diff --git a/public/buttons/right2repair.png b/public/buttons/right2repair.png new file mode 100644 index 0000000..21fffb5 Binary files /dev/null and b/public/buttons/right2repair.png differ diff --git a/public/buttons/vscbutton.gif b/public/buttons/vscbutton.gif new file mode 100644 index 0000000..8a4cad2 Binary files /dev/null and b/public/buttons/vscbutton.gif differ diff --git a/public/buttons/www.gif b/public/buttons/www.gif new file mode 100644 index 0000000..48fbd13 Binary files /dev/null and b/public/buttons/www.gif differ diff --git a/src/App.tsx b/src/App.tsx index 0c4b0d1..742f13b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,6 +2,7 @@ import { RecoilRoot } from 'recoil' import Mutuals from "./components/Mutuals" import Card from "./components/Card" +import Misc from "./components/Misc" import VerticalMenu from "./components/VerticalMenu" import HorizontalMenu from "./components/HorizontalMenu" import LanguageMenu from "./components/LanguageMenu" @@ -41,7 +42,7 @@ export default function App() { useEffect(() => { handleScroll(); - window.scrollTo(0, 60) + window.scrollTo(0, 10) window.addEventListener('scroll', handleScroll); return () => { @@ -55,16 +56,17 @@ export default function App() { <>
-
+
+
-
+
diff --git a/src/components/Card.tsx b/src/components/Card.tsx index 35b2d9e..3c5ac0d 100644 --- a/src/components/Card.tsx +++ b/src/components/Card.tsx @@ -6,6 +6,7 @@ import { faXTwitter, faDiscord, faGithub } from '@fortawesome/free-brands-svg-ic import { useState, useEffect } from 'react'; import Logo from "./Logo" +import Misc from "./Misc" interface NowPlaying { album?: string @@ -23,79 +24,80 @@ export default function Card() { fetch( "https://vercel-spotify-api.vercel.app/api/Spotify" ) - .then(res => res.json()) - .then(data => { - if (data) { - setNp(data) - } - }) + .then(res => res.json()) + .then(data => { + if (data) { + setNp(data) + } + }) }, []) return ( -
-
-
-
- -
-
- -

- {np && np.isPlaying && -

-
- + <> +
+
+
+
+ +
+
+ +

+ {np && np.isPlaying && +

+
+ +
+
+ {np.artist} +

{np.title}

+
-
- {np.artist} -

{np.title}

-
-
- } -

-
-

- {" "} - i@yude.jp -

-

- {" "} - +81 70-8909-1949 -

-

- - {" "} - @yude_jp - -

-

- {" "} - yude -

-

- - {" "} - yude - + }

+
+

+ {" "} + i@yude.jp +

+

+ {" "} + +81 70-8909-1949 +

+

+ + {" "} + @yude_jp + +

+

+ {" "} + yude +

+

+ + {" "} + yude + +

+
-
+ ) - } - \ No newline at end of file +} diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index d53d552..4a65ad7 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,14 +1,9 @@ -import Weather from "./Weather" - export default function Footer() { return (
yude.jp banner happybusy Page view counter -
- -

© 2024 yude diff --git a/src/components/HorizontalMenu.tsx b/src/components/HorizontalMenu.tsx index 1068d5b..8b3d45a 100644 --- a/src/components/HorizontalMenu.tsx +++ b/src/components/HorizontalMenu.tsx @@ -3,12 +3,9 @@ import { faUser, faStar, faComments } from '@fortawesome/free-regular-svg-icons' import { faPassport } from "@fortawesome/free-solid-svg-icons" import { Pages } from "./VerticalMenu" -import { RecoilRoot, atom, useRecoilState } from 'recoil' +import { RecoilRoot, useRecoilState } from 'recoil' -export const currentPage = atom({ - key: 'page', - default: Pages.Profile, -}) +import { currentPage } from "./VerticalMenu" export default function HorizontalMenu() { const [page, setPage] = useRecoilState(currentPage); diff --git a/src/components/Misc.tsx b/src/components/Misc.tsx new file mode 100644 index 0000000..bfacfdb --- /dev/null +++ b/src/components/Misc.tsx @@ -0,0 +1,24 @@ +export default function Weather() { + return ( +

+
+
+
- - ) -}