From 57ac58a2c91962a649e084bb329cfc6a9e2ba35b Mon Sep 17 00:00:00 2001 From: Hayden Bleasel Date: Tue, 11 Jun 2024 19:46:04 +1000 Subject: [PATCH] Responsive fixes --- app/(pages)/(home)/cards/github.tsx | 54 +++++++++++++------------- app/(pages)/(home)/cards/spotify.tsx | 2 +- app/(pages)/(home)/cards/steam.tsx | 49 ++++++++++++----------- app/(pages)/(home)/components/hero.tsx | 2 +- app/(pages)/(home)/page.tsx | 10 +++-- 5 files changed, 59 insertions(+), 58 deletions(-) diff --git a/app/(pages)/(home)/cards/github.tsx b/app/(pages)/(home)/cards/github.tsx index 0ff633e0..ba8abbb7 100644 --- a/app/(pages)/(home)/cards/github.tsx +++ b/app/(pages)/(home)/cards/github.tsx @@ -48,36 +48,34 @@ const GitHubCard: FC = () => { const [total, setTotal] = useState(0); return ( -
- -
-

- {total} contributions this year -

-
- { - if (!total) { - const commits = data.reduce( - (newTotal, { count }) => newTotal + count, - 0 - ); - setTotal(commits); - } + +
+

+ {total} contributions this year +

+
+ { + if (!total) { + const commits = data.reduce( + (newTotal, { count }) => newTotal + count, + 0 + ); + setTotal(commits); + } - return getContributions(data, 0); - }} - /> -
+ return getContributions(data, 0); + }} + />
-
-
+
+
); }; diff --git a/app/(pages)/(home)/cards/spotify.tsx b/app/(pages)/(home)/cards/spotify.tsx index f4239820..98c9104f 100644 --- a/app/(pages)/(home)/cards/spotify.tsx +++ b/app/(pages)/(home)/cards/spotify.tsx @@ -15,7 +15,7 @@ const SpotifyCard = async (): Promise => { return ( => { } return ( -
- -
-

- - {game.name} - + +

+

+ + {game.name} + +

+
+

šŸ•¦ {Math.round(game.playtime / 60)} hours

+

+ šŸ† {game.completeAchievements} / {game.totalAchievements}

-
-

- šŸ•¦ {Math.round(game.playtime / 60)} hours -

-

- šŸ† {game.completeAchievements} / {game.totalAchievements} -

-
- - -
+
+ +
); }; diff --git a/app/(pages)/(home)/components/hero.tsx b/app/(pages)/(home)/components/hero.tsx index 330c041d..386ffc5c 100644 --- a/app/(pages)/(home)/components/hero.tsx +++ b/app/(pages)/(home)/components/hero.tsx @@ -5,7 +5,7 @@ import { Avatar } from './avatar'; import type { FC } from 'react'; export const Hero: FC = () => ( -

+

Hello Iā€™m Hayden Bleasel . Iā€™m an Australian šŸ¦˜ Product Designer šŸ–¼ļø and Software Engineer {' '} currently based in . diff --git a/app/(pages)/(home)/page.tsx b/app/(pages)/(home)/page.tsx index 3340b9b7..26bfe1aa 100644 --- a/app/(pages)/(home)/page.tsx +++ b/app/(pages)/(home)/page.tsx @@ -17,11 +17,15 @@ const Home: FC = () => ( <> -
- +
+
+ +
- +
+ +
);