fix: production build CSS dan responsive layout untuk staging
- Tambah scripts/build.ts untuk build CSS via PostCSS/Tailwind - Update package.json build script untuk gunakan build script baru - Fix responsive grid di sosial-page (lg -> md breakpoint) - Tambah padding responsive untuk mobile display - Convert inline styles ke Tailwind classes untuk konsistensi - Update tailwind.config.js content paths - Tambah CSS variables di index.css untuk color palette - Update Dockerfile untuk gunakan build script baru Fixes: tampilan berantakan di staging karena CSS tidak ter-build dengan benar Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
module.exports = {
|
||||
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
|
||||
content: [
|
||||
"./src/index.html",
|
||||
"./public/**/*.html",
|
||||
"./src/**/*.{js,ts,jsx,tsx}",
|
||||
],
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
"darmasaba-navy": {
|
||||
DEFAULT: "#1E3A5F", // Primary navy color
|
||||
DEFAULT: "#1E3A5F",
|
||||
50: "#E1E4F2",
|
||||
100: "#B9C2DD",
|
||||
200: "#91A0C9",
|
||||
@@ -18,7 +22,7 @@ module.exports = {
|
||||
900: "#071833",
|
||||
},
|
||||
"darmasaba-blue": {
|
||||
DEFAULT: "#3B82F6", // Primary blue color
|
||||
DEFAULT: "#3B82F6",
|
||||
50: "#E3F0FF",
|
||||
100: "#B6D9FF",
|
||||
200: "#89C2FF",
|
||||
|
||||
Reference in New Issue
Block a user