Skip to content

Commit e88f6a2

Browse files
committed
fix site
1 parent 390b057 commit e88f6a2

8 files changed

Lines changed: 5164 additions & 32802 deletions

File tree

components/AppHeader.vue

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang="ts">
22
import Menubar from "primevue/menubar";
33
import type { MenuItem } from "primevue/menuitem";
4+
import Tag from "primevue/tag";
45
import { faGithub } from "@fortawesome/free-brands-svg-icons";
56
import { faDonate } from "@fortawesome/free-solid-svg-icons";
67
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
@@ -38,8 +39,8 @@ const menuItems: MenuItem[] = [
3839
<Menubar
3940
:model="menuItems"
4041
:pt="{
41-
root: 'sticky top-3 mb-6 mx-4 z-40 px-4 md:px-8 bg-white dark:bg-transparent backdrop-blur-lg dark:backdrop-brightness-90 transition-colors border-light-toplayer dark:border-dark-toplayer rounded-md',
42-
menu: 'ml-auto bg-transparent border-x-0',
42+
root: 'sticky top-3 mb-6 mx-4 z-40 px-4 md:px-8 flex items-center bg-white dark:bg-transparent backdrop-blur-lg dark:backdrop-brightness-90 transition-colors border-light-toplayer dark:border-dark-toplayer rounded-md',
43+
rootList: 'ml-auto bg-transparent border-x-0',
4344
button: 'ml-auto dark:text-white',
4445
end: 'ml-0',
4546
}"
@@ -63,11 +64,7 @@ const menuItems: MenuItem[] = [
6364
target="_blank"
6465
rel="noopener"
6566
>
66-
<tag
67-
value="v<romm_version>"
68-
severity="primary"
69-
class="ml-3 text-xs"
70-
></tag>
67+
<Tag value="v<romm_version>" class="ml-3 text-xs"></Tag>
7168
</a>
7269
</div>
7370
</template>

nuxt.config.ts

Lines changed: 48 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,46 @@
11
import { defineNuxtConfig } from "nuxt/config";
2+
import { definePreset } from "@primeuix/themes";
3+
import Aura from "@primeuix/themes/aura";
4+
5+
// Mirror the brand `primary` palette from tailwind.config.js so PrimeVue's
6+
// primary color matches the rest of the site (Aura's default primary is green).
7+
const RommPreset = definePreset(Aura, {
8+
semantic: {
9+
primary: {
10+
50: "#F4F2FC",
11+
100: "#E9E6FA",
12+
200: "#D3CCEE",
13+
300: "#BDB3E3",
14+
400: "#A494EB",
15+
500: "#8B74E8",
16+
600: "#7259D1",
17+
700: "#5A41B8",
18+
800: "#432D9E",
19+
900: "#2D1D84",
20+
950: "#1A1066",
21+
},
22+
},
23+
});
224

325
export default defineNuxtConfig({
426
devtools: { enabled: false },
5-
modules: ["@nuxtjs/tailwindcss", "nuxt-primevue", "@nuxt/image"],
27+
modules: ["@nuxtjs/tailwindcss", "@primevue/nuxt-module", "@nuxt/image"],
628
plugins: [{ src: "~/plugins/theme.ts", mode: "client" }],
729

830
primevue: {
9-
cssLayerOrder: "tailwind-base, primevue, tailwind-utilities",
31+
options: {
32+
ripple: true,
33+
theme: {
34+
preset: RommPreset,
35+
options: {
36+
darkModeSelector: ".dark",
37+
cssLayer: {
38+
name: "primevue",
39+
order: "tailwind-base, primevue, tailwind-utilities",
40+
},
41+
},
42+
},
43+
},
1044
components: {
1145
include: ["Button", "Tag", "Divider", "Menubar"],
1246
},
@@ -46,17 +80,10 @@ export default defineNuxtConfig({
4680
charset: "utf-8",
4781
viewport: "width=device-width, initial-scale=1",
4882
title: "The RomM Project",
49-
link: [
50-
{
51-
rel: "stylesheet",
52-
href: "/css/theme-light.css",
53-
id: "theme-link",
54-
},
55-
],
5683
script: [
5784
{
5885
innerHTML:
59-
'let m=window.matchMedia("(prefers-color-scheme: dark)");if(m.matches){const e=document.getElementById("theme-link");e.href=e.href.replace("light","dark");document.documentElement.classList.add("dark")}',
86+
'if(window.matchMedia("(prefers-color-scheme: dark)").matches){document.documentElement.classList.add("dark")}',
6087
},
6188
],
6289
meta: [
@@ -98,5 +125,15 @@ export default defineNuxtConfig({
98125
},
99126
},
100127

101-
compatibilityDate: "2025-01-31",
128+
compatibilityDate: "2026-06-12",
129+
130+
vite: {
131+
optimizeDeps: {
132+
include: [
133+
"@fortawesome/free-brands-svg-icons",
134+
"@fortawesome/free-solid-svg-icons",
135+
"@fortawesome/vue-fontawesome",
136+
],
137+
},
138+
},
102139
});

0 commit comments

Comments
 (0)