Fixed broken css build

This commit is contained in:
Your Name committed 2025-04-28 01:37:48 +08:00
1 parent 87a4a1949b
commit 328945fbdc
7 files changed
+12 -57

No files matched your search

+1 -28
View File
@@ -4,34 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Behind the Desk</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
'primary': '#38315f',
'primary-dark': '#2c264a',
'bg-light': '#f8f9fa',
'text-default': '#343a40',
'text-title': '#212529',
'text-muted': '#6c757d',
'border-light': '#dee2e6',
'link-hover': '#ff6600',
'rules-bg': '#eef6f6', // Example color, adjust as needed
'navbar-bg': '#e5fa70',
'navbar-border': '#cddb60'
},
spacing: {
'navbar-height': '3.25rem' // 52px
}
},
fontFamily: {
'sans': ['-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', 'Helvetica', 'Arial', 'sans-serif', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"']
}
}
}
</script>
<link href="/src/styles.css" rel="stylesheet">
</head>
<body class="font-sans text-text-default pt-navbar-height">
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
+1 -1
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="/dist/output.css" rel="stylesheet">
<link href="/src/styles.css" rel="stylesheet">
<title>Login / Signup - Behind the Desk</title>
</head>
<body class="font-sans text-text-default pt-navbar-height">
+7 -5
View File
@@ -5,14 +5,16 @@
"main": "index.js",
"scripts": {
"dev": "vite",
"build": "vite build && npx tailwindcss -i ./src/styles.css -o ./dist/output.css --minify"
"build": "vite build",
"preview": "vite preview"
},
"author": "",
"license": "ISC",
"devDependencies": {
"autoprefixer": "^10.4.13",
"postcss": "^8.4.19",
"tailwindcss": "^3.2.4",
"vite": "^4.0.0"
"autoprefixer": "^10.4.19",
"postcss": "^8.4.23",
"tailwindcss": "^3.4.1",
"vite": "^4.4.9",
"vite-plugin-tailwindcss": "^1.8.2"
}
}
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Post - Behind the Desk</title>
<link href="/dist/output.css" rel="stylesheet">
<link href="/src/styles.css" rel="stylesheet">
</head>
<body class="font-sans text-text-default pt-navbar-height">
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Submit - Behind the Desk</title>
<link href="/dist/output.css" rel="stylesheet">
<link href="/src/styles.css" rel="stylesheet">
</head>
<body class="font-sans text-text-default pt-navbar-height">
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>User Profile - Behind the Desk</title>
<link href="/dist/output.css" rel="stylesheet">
<link href="/src/styles.css" rel="stylesheet">
</head>
<body class="font-sans text-text-default pt-navbar-height">
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
-20
View File
@@ -1,20 +0,0 @@
import { defineConfig } from 'vite';
export default defineConfig({
server: {
port: 5173,
host: 'localhost',
},
build: {
rollupOptions: {
output: {
assetFileNames: (assetInfo) => {
if (assetInfo.name === 'styles.css') {
return 'output.css';
}
return assetInfo.name;
},
},
},
},
});