CSS was not being imported! Fixed: ✅ Added 'import ../styles/global.css' to BaseLayout.astro ✅ Rewrote CSS with plain CSS (not @apply which wasn't working) ✅ Cookie banner has inline styles as backup ✅ Font size: 16px base ✅ Solid colors: green-600 (#16a34a), gray-900 (#111827) ✅ Footer has policy links Build: 12 pages ✅
23 lines
626 B
TypeScript
23 lines
626 B
TypeScript
import { defineTable, column, NOW } from 'astro:db';
|
|
|
|
const ConsentLog = defineTable({
|
|
columns: {
|
|
id: column.number({ primaryKey: true, autoIncrement: true }),
|
|
sessionId: column.text({ unique: true }),
|
|
timestamp: column.date({ default: NOW }),
|
|
locale: column.text({ default: 'th' }),
|
|
essential: column.boolean({ default: true }),
|
|
analytics: column.boolean({ default: false }),
|
|
marketing: column.boolean({ default: false }),
|
|
policyVersion: column.text({ default: '1.0' }),
|
|
ipHash: column.text(),
|
|
userAgent: column.text(),
|
|
},
|
|
});
|
|
|
|
export default {
|
|
tables: {
|
|
ConsentLog,
|
|
},
|
|
};
|