Port AtomCMS atom theme faithfully (Tailwind v4 + real CSS/assets + shell)
Make the template match the atom theme, not just approximate it: - Add Tailwind v4 (+forms/typography plugins, postcss) and port the real atom CSS (global.css + atom app.css) into globals.css: nav-item underline, currency + navigation icon classes, site-bg, card-base/hover-lift, text utils — asset paths adapted to /assets. - Copy the real theme assets (backgrounds, icons/currency/navigation, profile, leaderboards) into public/assets. - Rebuild the shell 1:1 from the atom Blade: TopHeader (currency pills + user/admin dropdowns, auth-only), SiteHeader (header image + black/50 overlay, logo+online+Nitro client / guest Login+Create-account CTA), Navigation (white bar, nav-item + Community/Assistance dropdowns), Footer. ThemeVars injects the DB-driven CSS custom properties into :root like app.blade.php. Layout uses the atom body/site-bg + grid-cols-12 max-w-7xl content wrapper. Verified: tsc 0, next build exit 0; curl confirms the atom markup, compiled CSS references the assets, and background-light.jpg + currency/navigation icons all serve 200.
This commit is contained in:
1 parent
e668fa85ec
commit
e19debb795
337 files changed
+1172
-398
No files matched your search
+278
-258
@@ -1,56 +1,185 @@
|
||||
@import "tailwindcss";
|
||||
@plugin "@tailwindcss/forms";
|
||||
@plugin "@tailwindcss/typography";
|
||||
@custom-variant dark (&:where(.dark, .dark *));
|
||||
|
||||
@theme {
|
||||
--font-sans: var(--font-nunito), "Nunito", ui-sans-serif, system-ui, -apple-system,
|
||||
"Segoe UI", sans-serif;
|
||||
--breakpoint-sm: 40rem;
|
||||
--breakpoint-md: 48rem;
|
||||
--breakpoint-lg: 64rem;
|
||||
--breakpoint-xl: 80rem;
|
||||
--breakpoint-2xl: 96rem;
|
||||
--radius-sm: 6px;
|
||||
--radius-md: 10px;
|
||||
--radius-lg: 14px;
|
||||
--shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
|
||||
--shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
/* Default theme variables (faithful to AtomCMS app.blade.php). ThemeVars may
|
||||
override these at runtime from website_settings. */
|
||||
:root {
|
||||
/* Atom theme tokens (faithful to AtomCMS app.blade.php defaults) */
|
||||
--color-primary: #f59e0b;
|
||||
--color-primary-hover: #cf9d15;
|
||||
--color-golden: #eeb425;
|
||||
--color-background: #f1f5f9;
|
||||
--color-background: #f8fafc;
|
||||
--color-surface: #ffffff;
|
||||
--color-dropdown: #ffffff;
|
||||
--color-navbar: #ffffff;
|
||||
--color-navbar-text: #1e293b;
|
||||
--color-text: #0f172a;
|
||||
--color-text-muted: #64748b;
|
||||
--color-accent: #10b981;
|
||||
--color-danger: #ef4444;
|
||||
--color-danger-hover: #dc2626;
|
||||
--color-secondary: #22c55e;
|
||||
--color-secondary-hover: #16a34a;
|
||||
--border-color: #e7ebf0;
|
||||
--button-color: #f59e0b;
|
||||
--button-text-color: #1e293b;
|
||||
--button-secondary-color: #22c55e;
|
||||
--button-secondary-text-color: #ffffff;
|
||||
--button-secondary-hover-color: #16a34a;
|
||||
--button-danger-color: #ef4444;
|
||||
--button-danger-text-color: #ffffff;
|
||||
--button-danger-hover-color: #dc2626;
|
||||
--button-outline-color: #eeb425;
|
||||
--button-outline-text-color: #1a1a2e;
|
||||
--button-outline-hover-color: #cf9d15;
|
||||
--border-radius: 12px;
|
||||
--radius-sm: 8px;
|
||||
--border-color: #eeb425;
|
||||
--font-family: var(--font-nunito), "Nunito", sans-serif;
|
||||
--size-heading-h1: 32px;
|
||||
--size-heading-h2: 24px;
|
||||
--size-heading-h3: 20px;
|
||||
--avatar-border-radius: 8px;
|
||||
--avatar-border-color: #eeb425;
|
||||
--badge-background: #eeb425;
|
||||
--badge-text-color: #000000;
|
||||
--badge-border-radius: 4px;
|
||||
--card-border-radius: 12px;
|
||||
--link-color: #eeb425;
|
||||
--link-hover-color: #cf9d15;
|
||||
--input-border-color: #4b5563;
|
||||
--input-focus-color: #eeb425;
|
||||
--navbar-height: 64px;
|
||||
--shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.05);
|
||||
--shadow-card-hover: 0 6px 22px rgba(15, 23, 42, 0.12);
|
||||
--font-family: var(--font-nunito), ui-rounded, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
background:
|
||||
radial-gradient(1200px 500px at 50% -200px, #fff7e6 0%, transparent 60%),
|
||||
var(--color-background);
|
||||
color: var(--color-text);
|
||||
font-family: var(--font-family);
|
||||
font-size: 16px;
|
||||
line-height: 1.55;
|
||||
min-height: 100vh;
|
||||
color: var(--color-text, #0f172a);
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--color-primary-hover);
|
||||
text-decoration: none;
|
||||
::-webkit-scrollbar-thumb {
|
||||
border-radius: 100px;
|
||||
border: 4px solid transparent;
|
||||
background-clip: content-box;
|
||||
background-color: #2c3039;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
::-webkit-scrollbar {
|
||||
width: 12px;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* ── Atom theme components ────────────────────────────────── */
|
||||
@layer components {
|
||||
.nav-item {
|
||||
@apply flex h-auto md:h-[60px] items-center text-[14px] font-semibold uppercase transition duration-200 ease-in-out md:border-b-4! md:border-transparent! md:hover:border-b-[#eeb425]!;
|
||||
color: var(--color-navbar-text, #1e293b);
|
||||
}
|
||||
.dropdown-item {
|
||||
@apply block py-2 px-4 font-semibold transition duration-200;
|
||||
color: var(--color-text);
|
||||
}
|
||||
.dropdown-item:hover {
|
||||
background-color: var(--color-primary, #eeb425);
|
||||
color: var(--button-text-color, #1a1a2e);
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Atom icons / backgrounds (asset paths adapted to /assets) ── */
|
||||
.icon-base {
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: contain;
|
||||
}
|
||||
.nav-credit-icon {
|
||||
background: #e9b124 url("/assets/images/icons/currency/credits.png") no-repeat center;
|
||||
outline: 1px solid #b26d18;
|
||||
}
|
||||
.nav-ducket-icon {
|
||||
background: #c44aac url("/assets/images/icons/currency/duckets.png") no-repeat center;
|
||||
outline: 1px solid #812378;
|
||||
}
|
||||
.nav-diamond-icon {
|
||||
background: #caf1f3 url("/assets/images/icons/currency/diamonds.png") no-repeat center;
|
||||
outline: 1px solid #6caff4;
|
||||
}
|
||||
.navigation-icon {
|
||||
width: 20px;
|
||||
height: 25px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
.navigation-icon.shop {
|
||||
background-image: url("/assets/images/icons/navigation/shop.png");
|
||||
}
|
||||
.navigation-icon.leaderboards {
|
||||
background-image: url("/assets/images/icons/navigation/leaderboards.png");
|
||||
}
|
||||
.navigation-icon.rules {
|
||||
background-image: url("/assets/images/icons/navigation/rules.gif");
|
||||
}
|
||||
.navigation-icon.home {
|
||||
background-image: url("/assets/images/icons/navigation/home.png");
|
||||
}
|
||||
.navigation-icon.community {
|
||||
background-image: url("/assets/images/icons/navigation/community.png");
|
||||
}
|
||||
|
||||
.site-bg {
|
||||
background: url("/assets/images/background-light.jpg") no-repeat fixed right bottom;
|
||||
}
|
||||
.app.dark .site-bg {
|
||||
background: url("/assets/images/background-dark.jpg") no-repeat fixed right bottom;
|
||||
}
|
||||
|
||||
.text-body {
|
||||
color: var(--color-text);
|
||||
}
|
||||
.text-muted {
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
.text-nav {
|
||||
color: var(--color-navbar-text);
|
||||
}
|
||||
.text-shadow {
|
||||
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
.transition-base {
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
.hover-lift {
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
.hover-lift:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-card-hover);
|
||||
}
|
||||
.card-base {
|
||||
background-color: var(--color-surface);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-card);
|
||||
border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);
|
||||
}
|
||||
.card-base:hover {
|
||||
box-shadow: var(--shadow-card-hover);
|
||||
border-color: color-mix(in srgb, var(--color-text-muted) 25%, transparent);
|
||||
}
|
||||
|
||||
/* ── App component classes (used across the converted pages) ── */
|
||||
h1 {
|
||||
font-size: 30px;
|
||||
font-weight: 800;
|
||||
@@ -64,86 +193,141 @@ h3 {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1180px;
|
||||
margin: 0 auto;
|
||||
padding: 1.75rem 1.25rem 3rem;
|
||||
a {
|
||||
color: var(--link-color);
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.muted {
|
||||
color: var(--color-text-muted);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
/* ── Header / nav ─────────────────────────────────────────── */
|
||||
.site-header {
|
||||
background: var(--color-navbar);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 50;
|
||||
.hero {
|
||||
background: linear-gradient(120deg, rgba(245, 158, 11, 0.16), rgba(16, 185, 129, 0.12)),
|
||||
var(--color-surface);
|
||||
border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);
|
||||
border-radius: 18px;
|
||||
padding: 2rem 2.25rem;
|
||||
box-shadow: var(--shadow-card);
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
.site-header .bar {
|
||||
max-width: 1180px;
|
||||
margin: 0 auto;
|
||||
height: var(--navbar-height);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.5rem;
|
||||
padding: 0 1.25rem;
|
||||
.card {
|
||||
background: var(--color-surface);
|
||||
border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);
|
||||
border-radius: var(--card-border-radius);
|
||||
box-shadow: var(--shadow-card);
|
||||
padding: 1.1rem 1.25rem;
|
||||
}
|
||||
.brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
font-weight: 800;
|
||||
font-size: 1.25rem;
|
||||
color: var(--color-text);
|
||||
.card.hover:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-card-hover);
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
.brand .dot {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
border-radius: 8px;
|
||||
background: linear-gradient(135deg, var(--color-primary), var(--color-golden));
|
||||
box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
}
|
||||
.nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
height: 100%;
|
||||
.grid.cols-2 {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
.nav-item {
|
||||
.grid.cols-3 {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
.grid.cols-2,
|
||||
.grid.cols-3 {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
.article-img {
|
||||
width: 100%;
|
||||
height: 140px;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
background: linear-gradient(135deg, #fde68a, #fbbf24);
|
||||
}
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
padding: 0 0.85rem;
|
||||
font-size: 13px;
|
||||
justify-content: center;
|
||||
gap: 0.4rem;
|
||||
padding: 0.5rem 1.1rem;
|
||||
border-radius: var(--border-radius);
|
||||
border: 2px solid transparent;
|
||||
font-family: inherit;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.03em;
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text);
|
||||
border-bottom: 3px solid transparent;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
transition: all 0.18s ease-in-out;
|
||||
}
|
||||
.nav-item:hover {
|
||||
color: var(--color-primary-hover);
|
||||
border-bottom-color: var(--color-primary);
|
||||
background: #eef2f7;
|
||||
color: var(--color-text);
|
||||
text-decoration: none;
|
||||
}
|
||||
.spacer {
|
||||
flex: 1;
|
||||
.btn:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-card);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* ── Currency pills ───────────────────────────────────────── */
|
||||
.currencies {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
.btn-primary {
|
||||
background: var(--button-color);
|
||||
color: var(--button-text-color);
|
||||
}
|
||||
.btn-secondary {
|
||||
background: var(--button-secondary-color);
|
||||
color: var(--button-secondary-text-color);
|
||||
}
|
||||
.btn-danger {
|
||||
background: var(--button-danger-color);
|
||||
color: var(--button-danger-text-color);
|
||||
}
|
||||
.btn-outline {
|
||||
background: transparent;
|
||||
border-color: var(--button-outline-color);
|
||||
color: #8a6a05;
|
||||
}
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font-family: inherit;
|
||||
font-size: 14px;
|
||||
padding: 0.5rem 0.7rem;
|
||||
border: 2px solid color-mix(in srgb, var(--color-text-muted) 22%, transparent);
|
||||
border-radius: var(--radius-sm);
|
||||
background: #fbfcfe;
|
||||
color: var(--color-text);
|
||||
outline: none;
|
||||
transition: border-color 0.15s ease;
|
||||
}
|
||||
input:focus,
|
||||
select:focus,
|
||||
textarea:focus {
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
th {
|
||||
text-align: left;
|
||||
color: var(--color-text-muted);
|
||||
font-size: 0.8rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
padding: 0.4rem 0.5rem;
|
||||
}
|
||||
td {
|
||||
padding: 0.55rem 0.5rem;
|
||||
border-top: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);
|
||||
}
|
||||
.avatar {
|
||||
border-radius: var(--avatar-border-radius);
|
||||
background: #f1f5f9;
|
||||
border: 2px solid var(--avatar-border-color);
|
||||
}
|
||||
.currency {
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
font-weight: 800;
|
||||
@@ -151,7 +335,7 @@ h3 {
|
||||
padding: 0.2rem 0.6rem 0.2rem 0.2rem;
|
||||
border-radius: 999px;
|
||||
background: #f8fafc;
|
||||
border: 1px solid var(--border-color);
|
||||
border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);
|
||||
}
|
||||
.currency .coin {
|
||||
width: 22px;
|
||||
@@ -171,167 +355,3 @@ h3 {
|
||||
.coin.diamonds {
|
||||
background: #4bc0d9;
|
||||
}
|
||||
|
||||
/* ── Buttons ──────────────────────────────────────────────── */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.4rem;
|
||||
padding: 0.5rem 1.1rem;
|
||||
border-radius: var(--border-radius);
|
||||
border: 2px solid transparent;
|
||||
font-family: inherit;
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
transition: all 0.18s ease-in-out;
|
||||
background: #eef2f7;
|
||||
color: var(--color-text);
|
||||
}
|
||||
.btn:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-card);
|
||||
text-decoration: none;
|
||||
}
|
||||
.btn-primary {
|
||||
background: var(--color-primary);
|
||||
color: #3a2c05;
|
||||
}
|
||||
.btn-secondary {
|
||||
background: var(--color-secondary);
|
||||
color: #fff;
|
||||
}
|
||||
.btn-danger {
|
||||
background: var(--color-danger);
|
||||
color: #fff;
|
||||
}
|
||||
.btn-outline {
|
||||
background: transparent;
|
||||
border-color: var(--color-golden);
|
||||
color: #8a6a05;
|
||||
}
|
||||
|
||||
/* ── Cards ────────────────────────────────────────────────── */
|
||||
.card {
|
||||
background: var(--color-surface);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: var(--border-radius);
|
||||
box-shadow: var(--shadow-card);
|
||||
padding: 1.1rem 1.25rem;
|
||||
}
|
||||
.card.hover:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-card-hover);
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
}
|
||||
.grid.cols-2 {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
.grid.cols-3 {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
.grid.cols-2,
|
||||
.grid.cols-3 {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Article cards ────────────────────────────────────────── */
|
||||
.article {
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
}
|
||||
.article .article-img {
|
||||
width: 100%;
|
||||
height: 140px;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
background: linear-gradient(135deg, #fde68a, #fbbf24);
|
||||
}
|
||||
.article .body {
|
||||
padding: 0.85rem 1.05rem 1.05rem;
|
||||
}
|
||||
|
||||
/* ── Forms ────────────────────────────────────────────────── */
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font-family: inherit;
|
||||
font-size: 14px;
|
||||
padding: 0.5rem 0.7rem;
|
||||
border: 2px solid var(--border-color);
|
||||
border-radius: var(--radius-sm);
|
||||
background: #fbfcfe;
|
||||
color: var(--color-text);
|
||||
outline: none;
|
||||
transition: border-color 0.15s ease;
|
||||
}
|
||||
input:focus,
|
||||
select:focus,
|
||||
textarea:focus {
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
button {
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
/* ── Hero ─────────────────────────────────────────────────── */
|
||||
.hero {
|
||||
background:
|
||||
linear-gradient(120deg, rgba(245, 158, 11, 0.16), rgba(16, 185, 129, 0.12)),
|
||||
var(--color-surface);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 18px;
|
||||
padding: 2rem 2.25rem;
|
||||
box-shadow: var(--shadow-card);
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
/* ── Tables (admin) ───────────────────────────────────────── */
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
th {
|
||||
text-align: left;
|
||||
color: var(--color-text-muted);
|
||||
font-size: 0.8rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
padding: 0.4rem 0.5rem;
|
||||
}
|
||||
td {
|
||||
padding: 0.55rem 0.5rem;
|
||||
border-top: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
/* ── Avatar ───────────────────────────────────────────────── */
|
||||
.avatar {
|
||||
border-radius: 8px;
|
||||
background: #f1f5f9;
|
||||
border: 2px solid var(--color-golden);
|
||||
}
|
||||
|
||||
/* ── Footer ───────────────────────────────────────────────── */
|
||||
.site-footer {
|
||||
border-top: 1px solid var(--border-color);
|
||||
background: var(--color-surface);
|
||||
color: var(--color-text-muted);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
.site-footer .inner {
|
||||
max-width: 1180px;
|
||||
margin: 0 auto;
|
||||
padding: 1.1rem 1.25rem;
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
}
|
||||
+17
-9
@@ -1,11 +1,13 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Nunito } from "next/font/google";
|
||||
import type { ReactNode } from "react";
|
||||
import { Navigation } from "@/components/navigation";
|
||||
import { SiteFooter } from "@/components/site-footer";
|
||||
import { SiteHeader } from "@/components/site-header";
|
||||
import { ThemeVars } from "@/components/theme-vars";
|
||||
import { TopHeader } from "@/components/top-header";
|
||||
import "./globals.css";
|
||||
|
||||
// Self-hosted (no runtime external fetch) — the atom theme's font.
|
||||
const nunito = Nunito({
|
||||
subsets: ["latin"],
|
||||
weight: ["400", "600", "700", "800"],
|
||||
@@ -20,15 +22,21 @@ export const metadata: Metadata = {
|
||||
|
||||
export default function RootLayout({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<html lang="en" className={nunito.variable}>
|
||||
<body>
|
||||
<div style={{ display: "flex", flexDirection: "column", minHeight: "100vh" }}>
|
||||
<SiteHeader />
|
||||
<div className="container" style={{ flex: 1, width: "100%" }}>
|
||||
{children}
|
||||
<html lang="en" className={`app ${nunito.variable}`}>
|
||||
<body
|
||||
className="flex min-h-screen flex-col site-bg"
|
||||
style={{ backgroundColor: "var(--color-background)" }}
|
||||
>
|
||||
<ThemeVars />
|
||||
<TopHeader />
|
||||
<SiteHeader />
|
||||
<Navigation />
|
||||
<main className="overflow-hidden site-bg">
|
||||
<div className="mx-auto mt-10 grid max-w-7xl grid-cols-12 gap-x-3 gap-y-8 p-6 md:mt-0">
|
||||
<div className="col-span-12">{children}</div>
|
||||
</div>
|
||||
<SiteFooter />
|
||||
</div>
|
||||
</main>
|
||||
<SiteFooter />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user