Before EmDash migration - plain Astro site with 22 pages, unique hero layouts per page, Thai content

This commit is contained in:
Kunthawat Greethong
2026-05-06 09:55:37 +07:00
commit 0dcaf2f253
85 changed files with 11009 additions and 0 deletions

204
src/styles/global.css Normal file
View File

@@ -0,0 +1,204 @@
/* Global CSS Variables and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;500;600;700;800&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');
:root {
/* Colors */
--color-primary: #fed400;
--color-accent: #1e3a5f;
--color-black: #000000;
--color-white: #ffffff;
--color-light-gray: #f5f5f5;
--color-dark-gray: #1a1a1a;
--color-medium-gray: #6b7280;
--color-dark-section: #0a0a0a;
/* Typography */
--font-heading: 'Kanit', sans-serif;
--font-body: 'Noto Sans Thai', sans-serif;
/* Spacing */
--section-padding: 80px;
--container-max: 1280px;
--gutter: 32px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: var(--font-body);
font-size: 16px;
line-height: 1.7;
color: var(--color-black);
background: var(--color-white);
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-heading);
font-weight: 700;
line-height: 1.2;
}
a {
text-decoration: none;
color: inherit;
}
img {
max-width: 100%;
height: auto;
}
/* Container */
.container {
max-width: var(--container-max);
margin: 0 auto;
padding: 0 var(--gutter);
}
/* Section Styles */
.section {
padding: var(--section-padding) 0;
}
.section-dark {
background: var(--color-dark-section);
color: var(--color-white);
}
.section-light {
background: var(--color-light-gray);
}
.section-primary {
background: var(--color-primary);
color: var(--color-black);
}
.section-accent {
background: var(--color-accent);
color: var(--color-white);
}
/* Button Styles */
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 16px 32px;
font-family: var(--font-heading);
font-weight: 600;
font-size: 16px;
border-radius: 8px;
border: none;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-primary {
background: var(--color-primary);
color: var(--color-black);
box-shadow: 0 4px 20px rgba(254, 212, 0, 0.3);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 30px rgba(254, 212, 0, 0.4);
}
.btn-secondary {
background: var(--color-black);
color: var(--color-white);
}
.btn-secondary:hover {
background: #222;
transform: translateY(-2px);
}
/* Card Styles */
.card {
background: var(--color-white);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
}
.card:hover {
transform: translateY(-8px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.card-accent {
border-top: 4px solid var(--color-primary);
}
/* Typography Utilities */
.text-display {
font-family: var(--font-heading);
font-weight: 800;
text-transform: uppercase;
}
.text-gradient {
background: linear-gradient(135deg, var(--color-black) 0%, #333 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Grid Utilities */
.grid-2 {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--gutter);
}
.grid-3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--gutter);
}
.grid-4 {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: var(--gutter);
}
/* Responsive */
@media (max-width: 1024px) {
:root {
--section-padding: 60px;
--gutter: 24px;
}
.grid-4 {
grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 640px) {
:root {
--section-padding: 48px;
--gutter: 16px;
}
.grid-2,
.grid-3,
.grid-4 {
grid-template-columns: 1fr;
}
}