Compare commits

...

3 Commits

Author SHA1 Message Date
d142198e13 Merge pull request 'optim/loading' (#8) from optim/loading into main
All checks were successful
Update Memento Dev on VPS / deploy (push) Successful in 3m9s
Reviewed-on: #8
2025-04-18 10:56:27 +00:00
e26f660235 style: Update spacing in Navigation component 2025-04-18 12:56:03 +02:00
f6e41fab64 style: Update font families in vite.config.ts 2025-04-18 12:49:28 +02:00
3 changed files with 18 additions and 5 deletions

View File

@ -50,7 +50,7 @@ function NavigationItem(props: NavigationItemProps) {
{isOpened && ( {isOpened && (
<ul <ul
role="list" role="list"
className="!mt-0 ml-2 space-y-2 border-l-2 border-slate-100 lg:mt-4 lg:space-y-4 lg:border-slate-200 dark:border-slate-800 mb-4" className="!mt-0 ml-2 space-y-1 border-l-2 border-slate-100 lg:mt-4 lg:space-y-2 lg:border-slate-200 dark:border-slate-800 mb-4"
> >
{props.section.links.map((link) => ( {props.section.links.map((link) => (
<li key={link.href} className="relative"> <li key={link.href} className="relative">
@ -126,10 +126,10 @@ function NavigationSubItem(props: NavigationSubItemProps) {
)} )}
</Link> </Link>
</span> </span>
{props.link.subitems && isOpened && ( {props.link.subitems.length > 0 && isOpened && (
<ul <ul
role="list" role="list"
className="ml-4 border-l-2 border-slate-100 lg:space-y-1 lg:border-slate-200 dark:border-slate-800 mb-4" className="ml-4 border-l-2 border-slate-100 space-y-1 lg:space-y-2 lg:border-slate-200 dark:border-slate-800 mb-4"
> >
{props.link.subitems.map((subitem) => ( {props.link.subitems.map((subitem) => (
<li key={subitem.href} className="relative"> <li key={subitem.href} className="relative">

View File

@ -80,7 +80,7 @@ export default function DefaultLayout({ children }: { children: React.ReactNode
return ( return (
<ThemeProvider> <ThemeProvider>
<div className="flex w-full flex-col"> <div className="flex w-full flex-col font-sans">
<Header /> <Header />
{isHomePage && <Hero />} {isHomePage && <Hero />}

View File

@ -13,7 +13,20 @@ export default defineConfig({
}), }),
Unfonts({ Unfonts({
fontsource: { 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({}), vike({}),