From f6e41fab6463c278bb38bb632945ad140a13a216 Mon Sep 17 00:00:00 2001 From: GauthierWebDev Date: Fri, 18 Apr 2025 12:49:28 +0200 Subject: [PATCH 1/2] style: Update font families in vite.config.ts --- app/layouts/LayoutDefault.tsx | 2 +- app/vite.config.ts | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/app/layouts/LayoutDefault.tsx b/app/layouts/LayoutDefault.tsx index b7c9760..f784685 100644 --- a/app/layouts/LayoutDefault.tsx +++ b/app/layouts/LayoutDefault.tsx @@ -80,7 +80,7 @@ export default function DefaultLayout({ children }: { children: React.ReactNode return ( -
+
{isHomePage && } diff --git a/app/vite.config.ts b/app/vite.config.ts index 46b0c07..1054437 100644 --- a/app/vite.config.ts +++ b/app/vite.config.ts @@ -13,7 +13,20 @@ export default defineConfig({ }), Unfonts({ fontsource: { - families: ["Inter Variable", "Lexend Variable"], + families: [ + { + name: "Lexend Variable", + weights: [400], + styles: ["normal"], + subset: "latin", + }, + { + name: "Inter Variable", + weights: [400, 500, 600, 700], + styles: ["normal"], + subset: "latin", + }, + ], }, }), vike({}), From e26f6602359ed73f71a6a5cd6da6ab1277f7b4cb Mon Sep 17 00:00:00 2001 From: GauthierWebDev Date: Fri, 18 Apr 2025 12:56:03 +0200 Subject: [PATCH 2/2] style: Update spacing in Navigation component --- app/components/syntax/Navigation.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/syntax/Navigation.tsx b/app/components/syntax/Navigation.tsx index 0793c25..daa77b7 100644 --- a/app/components/syntax/Navigation.tsx +++ b/app/components/syntax/Navigation.tsx @@ -50,7 +50,7 @@ function NavigationItem(props: NavigationItemProps) { {isOpened && (
    {props.section.links.map((link) => (
  • @@ -126,10 +126,10 @@ function NavigationSubItem(props: NavigationSubItemProps) { )} - {props.link.subitems && isOpened && ( + {props.link.subitems.length > 0 && isOpened && (
      {props.link.subitems.map((subitem) => (