Files
silma-bone-lord-bob/styles/Layout.module.css
T
jacob-mathison 8afb112eee feat: SiteLayout template + World menu with 5 new pages (Lore, World, Characters, Music, Gallery)
- SiteLayout.tsx: shared layout component with nav dropdown, mobile hamburger drawer, full footer
- Nav: World dropdown menu (Lore, World, Characters, Music, Gallery) + Follow link
- Footer: 3-column (World links, Social links, Legal links) + tagline
- pages/lore.tsx: lore entry grid with placeholder canon entries
- pages/world.tsx: location/setting cards with worldbuilding teaser
- pages/characters.tsx: character roster with locked/revealed states
- pages/music.tsx: soundtrack page with Patreon CTA (inspired by silmaai.com music page)
- pages/gallery.tsx: tabbed Official / Fan Art gallery with empty states and social tag CTAs
- styles/Layout.module.css: shared nav, dropdown, footer, page hero, coming-soon styles
- styles/World.module.css: lore, location, character, music styles
- styles/Gallery.module.css: tabs, grid, card, empty state styles
- All pages: SEO meta, canonical URLs, OG tags
2026-04-11 10:46:24 -05:00

296 lines
7.4 KiB
CSS

/* ─────────────────────────────────────────────────────────────────
Layout.module.css — Bone Lord Bob shared site layout
───────────────────────────────────────────────────────────────── */
/* Site wrapper */
.site {
min-height: 100vh;
background: var(--dark, #0a0806);
color: var(--bone, #e8dcc8);
font-family: var(--font-body, 'Segoe UI', system-ui, -apple-system, sans-serif);
display: flex;
flex-direction: column;
}
/* ── NAV ───────────────────────────────────────────────────────── */
.nav {
position: sticky;
top: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 40px;
height: 64px;
background: rgba(10, 8, 6, 0.95);
border-bottom: 1px solid var(--border, rgba(232, 220, 200, 0.12));
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.navLogo {
font-family: var(--font-display, Georgia, 'Times New Roman', serif);
font-size: 1.15rem;
font-weight: 700;
letter-spacing: 0.06em;
color: var(--bone, #e8dcc8);
text-decoration: none;
transition: opacity 0.2s;
}
.navLogo:hover { opacity: 0.85; }
.navLogo span { color: var(--red, #c0392b); }
/* Desktop nav list */
.navLinks {
display: flex;
align-items: center;
gap: 4px;
list-style: none;
margin: 0;
padding: 0;
}
.navItem {
position: relative;
}
.navLink {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 8px 14px;
font-size: 0.88rem;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--bone-dim, #9e9080);
text-decoration: none;
background: none;
border: none;
cursor: pointer;
border-radius: 4px;
transition: color 0.2s, background 0.2s;
font-family: inherit;
}
.navLink:hover { color: var(--bone, #e8dcc8); background: rgba(232,220,200,0.06); }
.navLinkActive {
color: var(--red, #c0392b) !important;
}
.navDropdownTrigger {
/* same as navLink, handled above */
}
.chevron {
font-size: 0.7rem;
opacity: 0.7;
transition: transform 0.2s;
}
/* ── DROPDOWN ──────────────────────────────────────────────────── */
.dropdown {
position: absolute;
top: calc(100% + 8px);
left: 50%;
transform: translateX(-50%);
min-width: 160px;
background: var(--dark-card, #1a1510);
border: 1px solid var(--border, rgba(232,220,200,0.12));
border-radius: 6px;
padding: 6px 0;
box-shadow: 0 8px 32px rgba(0,0,0,0.6);
animation: dropdownIn 0.15s ease;
z-index: 200;
}
@keyframes dropdownIn {
from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.dropdownItem {
display: block;
padding: 9px 18px;
font-size: 0.87rem;
font-weight: 500;
color: var(--bone-dim, #9e9080);
text-decoration: none;
transition: color 0.15s, background 0.15s;
white-space: nowrap;
}
.dropdownItem:hover { color: var(--bone, #e8dcc8); background: rgba(232,220,200,0.06); }
.dropdownItemActive { color: var(--red, #c0392b) !important; }
/* ── HAMBURGER ─────────────────────────────────────────────────── */
.hamburger {
display: none;
flex-direction: column;
justify-content: center;
gap: 5px;
width: 36px;
height: 36px;
background: none;
border: none;
cursor: pointer;
padding: 4px;
border-radius: 4px;
transition: background 0.2s;
}
.hamburger:hover { background: rgba(232,220,200,0.08); }
.hamburger span {
display: block;
width: 22px;
height: 2px;
background: var(--bone, #e8dcc8);
border-radius: 2px;
transition: opacity 0.2s;
}
/* ── MOBILE DRAWER ─────────────────────────────────────────────── */
.mobileDrawer {
display: none;
flex-direction: column;
background: var(--dark-mid, #120f0a);
border-bottom: 1px solid var(--border, rgba(232,220,200,0.12));
padding: 12px 0 20px;
z-index: 99;
}
.mobileLink {
display: block;
padding: 12px 28px;
font-size: 0.9rem;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--bone, #e8dcc8);
text-decoration: none;
transition: color 0.2s, background 0.2s;
}
.mobileLink:hover { color: var(--red, #c0392b); background: rgba(232,220,200,0.04); }
.mobileSectionLabel {
padding: 12px 28px 6px;
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--red, #c0392b);
}
.mobileLinkIndent {
display: block;
padding: 9px 28px 9px 42px;
font-size: 0.87rem;
color: var(--bone-dim, #9e9080);
text-decoration: none;
transition: color 0.2s;
}
.mobileLinkIndent:hover { color: var(--bone, #e8dcc8); }
/* ── MAIN ──────────────────────────────────────────────────────── */
.main {
flex: 1;
}
/* ── FOOTER ────────────────────────────────────────────────────── */
.footer {
background: var(--dark-mid, #120f0a);
border-top: 1px solid var(--border, rgba(232,220,200,0.12));
}
.footerTop {
display: flex;
gap: 48px;
max-width: 1100px;
margin: 0 auto;
padding: 56px 40px 48px;
flex-wrap: wrap;
}
.footerBrand {
flex: 1;
min-width: 200px;
max-width: 280px;
}
.footerLogo {
font-family: var(--font-display, Georgia, serif);
font-size: 1.2rem;
font-weight: 700;
letter-spacing: 0.06em;
color: var(--bone, #e8dcc8);
}
.footerLogo span { color: var(--red, #c0392b); }
.footerTagline {
margin-top: 10px;
font-size: 0.85rem;
color: var(--bone-dim, #9e9080);
line-height: 1.5;
}
.footerColumns {
display: flex;
gap: 48px;
flex-wrap: wrap;
}
.footerCol {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 120px;
}
.footerColTitle {
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--red, #c0392b);
margin-bottom: 4px;
}
.footerLink {
font-size: 0.875rem;
color: var(--bone-dim, #9e9080);
text-decoration: none;
transition: color 0.2s;
}
.footerLink:hover { color: var(--bone, #e8dcc8); }
.footerBottom {
border-top: 1px solid var(--border, rgba(232,220,200,0.08));
padding: 20px 40px;
text-align: center;
font-size: 0.8rem;
color: rgba(158, 144, 128, 0.6);
max-width: 100%;
}
/* ── MOBILE RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
.nav { padding: 0 20px; }
.navLinks { display: none; }
.hamburger { display: flex; }
.mobileDrawer { display: flex; }
.footerTop {
flex-direction: column;
gap: 32px;
padding: 40px 20px 32px;
}
.footerBrand { max-width: 100%; }
.footerColumns { gap: 28px; }
.footerBottom { padding: 16px 20px; }
}