💄 Optimize header style

This commit is contained in:
2025-09-12 00:05:20 +08:00
parent 3ab5140d80
commit 6165218a19
2 changed files with 27 additions and 1 deletions

View File

@@ -1,8 +1,13 @@
<template> <template>
<n-layout class="h-screen"> <n-layout class="h-screen">
<n-layout-header class="border-b-1"> <n-layout-header class="app-bar-blur">
<div class="flex justify-between items-center container mx-auto"> <div class="flex justify-between items-center container mx-auto">
<router-link to="/" class="text-lg font-bold"> Solsynth </router-link> <router-link to="/" class="text-lg font-bold"> Solsynth </router-link>
<div class="flex gap-3">
<router-link to="/terms" class="text-md font-bold">
Legal
</router-link>
</div>
</div> </div>
</n-layout-header> </n-layout-header>
@@ -28,4 +33,21 @@ import { NLayout, NLayoutHeader, NLayoutContent } from "naive-ui";
.n-layout-content { .n-layout-content {
height: calc(100vh - 57px); /* Adjust based on header height */ height: calc(100vh - 57px); /* Adjust based on header height */
} }
.app-bar-blur {
-webkit-mask-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 1) 40%,
rgba(0, 0, 0, 0.5) 65%,
rgba(0, 0, 0, 0) 100%
);
mask-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 1) 40%,
rgba(0, 0, 0, 0.5) 65%,
rgba(0, 0, 0, 0) 100%
);
mask-repeat: no-repeat;
mask-size: 100%;
}
</style> </style>

View File

@@ -45,6 +45,10 @@ const { data: terms } = await useAsyncData(
.all(), .all(),
{ watch: [chosenLanguage] }, { watch: [chosenLanguage] },
); );
definePageMeta({
title: "Terms and Conditions",
});
</script> </script>
<style scoped> <style scoped>