From aef588c99332de077b272bb110594c7ea73bd81e Mon Sep 17 00:00:00 2001 From: Aaron William Po Date: Mon, 23 Oct 2023 23:16:31 -0400 Subject: [PATCH] style: Update dark theming and fonts --- .../BeerById/BeerRecommendations.tsx | 4 +- .../BeerStyleById/BeerStyleHeader.tsx | 63 ++++++++++--------- src/pages/_app.tsx | 7 +-- tailwind.config.js | 8 +-- 4 files changed, 43 insertions(+), 39 deletions(-) diff --git a/src/components/BeerById/BeerRecommendations.tsx b/src/components/BeerById/BeerRecommendations.tsx index bff261f..9564443 100644 --- a/src/components/BeerById/BeerRecommendations.tsx +++ b/src/components/BeerById/BeerRecommendations.tsx @@ -57,7 +57,7 @@ const BeerRecommendationsSection: FC<{ >
- {post.name} + {post.name} - {post.style.name} + {post.style.name}
diff --git a/src/components/BeerStyleById/BeerStyleHeader.tsx b/src/components/BeerStyleById/BeerStyleHeader.tsx index 342a759..0fb92ff 100644 --- a/src/components/BeerStyleById/BeerStyleHeader.tsx +++ b/src/components/BeerStyleById/BeerStyleHeader.tsx @@ -62,41 +62,46 @@ const BeerStyleHeader: FC = ({ beerStyle }) => {
)} -
+

{beerStyle.description}

-
-
- ABV Range:{' '} - - {beerStyle.abvRange[0].toFixed(1)}% - {beerStyle.abvRange[0].toFixed(1)}% - -
-
- IBU Range:{' '} - - {beerStyle.ibuRange[0].toFixed(1)} - {beerStyle.ibuRange[1].toFixed(1)} - -
-
+
-
- Recommended Glassware:{' '} - {beerStyle.glassware.name} -
-
-
- {(!!likeCount || likeCount === 0) && ( +
+
+
+
+ ABV Range:{' '} - Liked by {likeCount} - {likeCount !== 1 ? ' users' : ' user'} + {beerStyle.abvRange[0].toFixed(1)}% - {beerStyle.abvRange[0].toFixed(1)} + % - )} +
+
+ IBU Range:{' '} + + {beerStyle.ibuRange[0].toFixed(1)} - {beerStyle.ibuRange[1].toFixed(1)} + +
-
- {user && ( - - )} +
+ Recommended Glassware:{' '} + {beerStyle.glassware.name}
+
+
+ {(!!likeCount || likeCount === 0) && ( + + Liked by {likeCount} + {likeCount !== 1 ? ' users' : ' user'} + + )} +
+
+
+
+ {user && ( + + )}
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 84c8745..2bbbb6b 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -4,15 +4,14 @@ import '@/styles/globals.css'; import type { AppProps } from 'next/app'; import { useEffect } from 'react'; import { themeChange } from 'theme-change'; - import { Analytics } from '@vercel/analytics/react'; -import { Space_Grotesk } from 'next/font/google'; +import { Nunito_Sans } from 'next/font/google'; import Head from 'next/head'; import Layout from '@/components/ui/Layout'; import CustomToast from '@/components/ui/CustomToast'; -const spaceGrotesk = Space_Grotesk({ subsets: ['latin'] }); +const font = Nunito_Sans({ subsets: ['latin-ext'] }); const App = ({ Component, pageProps }: AppProps) => { useEffect(() => { @@ -24,7 +23,7 @@ const App = ({ Component, pageProps }: AppProps) => { diff --git a/tailwind.config.js b/tailwind.config.js index d2b1d0e..4b1ae65 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -2,7 +2,7 @@ const myThemes = { dark: { - primary: 'hsl(227, 25%, 30%)', + primary: 'hsl(227, 25%, 14%)', secondary: 'hsl(255, 9%, 69%)', error: 'hsl(9, 52%, 57%)', accent: 'hsl(316, 96%, 60%)', @@ -12,9 +12,9 @@ const myThemes = { warning: 'hsl(50, 98%, 50%)', 'primary-content': 'hsl(0, 0%, 98%)', 'error-content': 'hsl(0, 0%, 98%)', - 'base-100': 'hsl(227, 20%, 15%)', - 'base-200': 'hsl(227, 20%, 11%)', - 'base-300': 'hsl(227, 20%, 5%)', + 'base-100': 'hsl(227, 20%, 10%)', + 'base-200': 'hsl(227, 20%, 8%)', + 'base-300': 'hsl(227, 20%, 1%)', }, light: { primary: 'hsl(180, 15%, 60%)',