diff --git a/next.config.js b/next.config.js index 5e76d91..a537c44 100644 --- a/next.config.js +++ b/next.config.js @@ -27,8 +27,7 @@ module.exports = withBundleAnalyzer({ NEXTAUTH_URL: process.env.NEXTAUTH_URL, }, compiler: { - removeConsole: - process.env.NODE_ENV === 'prod' ? { exclude: ['error'] } : false, + removeConsole: process.env.NODE_ENV === 'prod', }, eslint: { ignoreDuringBuilds: true, diff --git a/public/keepsimple_/assets/longevity/diet/tooltip-bg.png b/public/keepsimple_/assets/longevity/diet/tooltip-bg.png index 995408b..9a83f3e 100644 Binary files a/public/keepsimple_/assets/longevity/diet/tooltip-bg.png and b/public/keepsimple_/assets/longevity/diet/tooltip-bg.png differ diff --git a/public/keepsimple_/assets/longevity/routine.png b/public/keepsimple_/assets/longevity/habits/routine.png similarity index 100% rename from public/keepsimple_/assets/longevity/routine.png rename to public/keepsimple_/assets/longevity/habits/routine.png diff --git a/public/keepsimple_/assets/longevity/habits/what-is-this-bg.png b/public/keepsimple_/assets/longevity/habits/what-is-this-bg.png new file mode 100644 index 0000000..6e8aee6 Binary files /dev/null and b/public/keepsimple_/assets/longevity/habits/what-is-this-bg.png differ diff --git a/src/api/tools.ts b/src/api/tools.ts index 4d873e0..5604926 100644 --- a/src/api/tools.ts +++ b/src/api/tools.ts @@ -1,5 +1,15 @@ export const getTools = async (locale: string) => { - const url = `${process.env.NEXT_PUBLIC_STRAPI}/api/tool-setting?populate[tools_list][populate]=*&populate[Seo]=*&locale=${locale}`; + const fields = [ + 'idForDev', + 'link', + 'title', + 'description', + 'poweredBy', + 'isInDevelopment', + ] + .map((f, i) => `populate[tools_list][fields][${i}]=${f}`) + .join('&'); + const url = `${process.env.NEXT_PUBLIC_STRAPI}/api/tool-setting?${fields}&populate[Seo]=*&locale=${locale}`; return await fetch(url) .then(resp => resp.json()) .then(json => json?.data?.attributes || null); diff --git a/src/assets/icons/tools/tool-icons/bob.svg b/src/assets/icons/tools/tool-icons/bob.svg index 495df3e..7c88920 100644 --- a/src/assets/icons/tools/tool-icons/bob.svg +++ b/src/assets/icons/tools/tool-icons/bob.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/tools/tool-icons/claude-bob.svg b/src/assets/icons/tools/tool-icons/claude-bob.svg index 6bd1e50..664839a 100644 --- a/src/assets/icons/tools/tool-icons/claude-bob.svg +++ b/src/assets/icons/tools/tool-icons/claude-bob.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/tools/tool-icons/friendly-tom.svg b/src/assets/icons/tools/tool-icons/friendly-tom.svg index 7b34b8a..6d424e7 100644 --- a/src/assets/icons/tools/tool-icons/friendly-tom.svg +++ b/src/assets/icons/tools/tool-icons/friendly-tom.svg @@ -1,29 +1 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/tools/tool-icons/github.svg b/src/assets/icons/tools/tool-icons/github.svg index bc93bad..d1749e8 100644 --- a/src/assets/icons/tools/tool-icons/github.svg +++ b/src/assets/icons/tools/tool-icons/github.svg @@ -1,71 +1 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/tools/tool-icons/mosaic.svg b/src/assets/icons/tools/tool-icons/mosaic.svg index 8811596..a1d22ee 100644 --- a/src/assets/icons/tools/tool-icons/mosaic.svg +++ b/src/assets/icons/tools/tool-icons/mosaic.svg @@ -1,23 +1 @@ - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/tools/tool-icons/tom.svg b/src/assets/icons/tools/tool-icons/tom.svg index 9b1a44e..4c92d68 100644 --- a/src/assets/icons/tools/tool-icons/tom.svg +++ b/src/assets/icons/tools/tool-icons/tom.svg @@ -1,27 +1 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/assets/icons/tools/tool-icons/vibesuite.svg b/src/assets/icons/tools/tool-icons/vibesuite.svg index 353cf0d..70523e3 100644 --- a/src/assets/icons/tools/tool-icons/vibesuite.svg +++ b/src/assets/icons/tools/tool-icons/vibesuite.svg @@ -1,6 +1 @@ - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/components/longevity/WhyDoThisTooltip/WhyDoThisTooltip.tsx b/src/components/longevity/WhyDoThisTooltip/WhyDoThisTooltip.tsx index 31d2a00..a35416a 100644 --- a/src/components/longevity/WhyDoThisTooltip/WhyDoThisTooltip.tsx +++ b/src/components/longevity/WhyDoThisTooltip/WhyDoThisTooltip.tsx @@ -51,7 +51,7 @@ const WhyDoThisTooltip: FC = ({
Background = ({ styles.lightBackground, isTransitioning && styles.lightBackgroundAnimated, )} - style={{ backgroundImage: `url('${backgroundImage}')` }} - /> -
+ > + tools background +
+
+ tools background dark +
diff --git a/src/layouts/ToolsLayout/ToolsLayout.module.scss b/src/layouts/ToolsLayout/ToolsLayout.module.scss index 311e0fd..8caf8be 100644 --- a/src/layouts/ToolsLayout/ToolsLayout.module.scss +++ b/src/layouts/ToolsLayout/ToolsLayout.module.scss @@ -68,6 +68,12 @@ } } +@media (min-width: 1921px) { + .contentInner { + gap: 26px; + } +} + @media (max-width: 768px) { .layout { margin-top: 54px; diff --git a/src/layouts/ToolsLayout/ToolsLayout.tsx b/src/layouts/ToolsLayout/ToolsLayout.tsx index 976ac7e..3ca9a59 100644 --- a/src/layouts/ToolsLayout/ToolsLayout.tsx +++ b/src/layouts/ToolsLayout/ToolsLayout.tsx @@ -38,22 +38,6 @@ const ToolsLayout: FC = ({ easterThemeIndexRef.current = easterThemeIndex; }, [easterThemeIndex]); - useEffect(() => { - const easterImages = [ - '/keepsimple_/assets/tools/hero/green.png', - '/keepsimple_/assets/tools/logo/green.svg', - '/keepsimple_/assets/tools/hero/white.png', - '/keepsimple_/assets/tools/logo/white.svg', - '/keepsimple_/assets/tools/hero/black.png', - '/keepsimple_/assets/tools/logo/black.svg', - ]; - - easterImages.forEach(src => { - const img = new Image(); - img.src = src; - }); - }, []); - useEffect(() => { const handleSequence = (event: KeyboardEvent) => { const target = event.target as HTMLElement | null; @@ -87,6 +71,17 @@ const ToolsLayout: FC = ({ ) { typedBufferRef.current = ''; easterActivatedRef.current = true; + [ + '/keepsimple_/assets/tools/hero/green.png', + '/keepsimple_/assets/tools/logo/green.svg', + '/keepsimple_/assets/tools/hero/white.png', + '/keepsimple_/assets/tools/logo/white.svg', + '/keepsimple_/assets/tools/hero/black.png', + '/keepsimple_/assets/tools/logo/black.svg', + ].forEach(src => { + const img = new Image(); + img.src = src; + }); easterThemeIndexRef.current = 1; setEasterThemeIndex(1); setTransitionKey(prev => prev + 1); diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 21d6ea9..48a9bca 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -195,7 +195,7 @@ function AppContent({ Component, pageProps: { session, ...pageProps } }: TApp) { '/keepsimple_/assets/longevity/diet/diet-results-icons/metabolic-gold.png', '/keepsimple_/assets/longevity/habits/tooltip-bg.png', '/keepsimple_/assets/longevity/habits/tooltip-headline-bg.png', - '/keepsimple_/assets/longevity/habits/what-is-this-bg.webp', + '/keepsimple_/assets/longevity/habits/what-is-this-bg.png', ]; imagesToPreload.forEach(src => { diff --git a/src/pages/tools/index.tsx b/src/pages/tools/index.tsx index b95218c..b3d76b4 100644 --- a/src/pages/tools/index.tsx +++ b/src/pages/tools/index.tsx @@ -103,6 +103,6 @@ export const getStaticProps: GetStaticProps = async ({ locale, tools: tools, }, - revalidate: 10, + revalidate: 3600, }; };