landing page (#63)

* remove daisyui and rebuild styles

* very basic setup of new design - missing components etc

* basic navbar with reusable landing components

* basic puzzle of the day

* update todos

* update todos

* add curated landing puzzle cards with selectable board (#55)

* update with footer

* add button to solve today's puzzle

* Make landing page a dead view

Render the home page from PageController with a static board preview, link puzzle cards and CTAs to public-code play routes, count puzzles from the DB, and add a global footer.

* Serve a marketing-only JS bundle on the landing page

Build a small marketing entry point with phoenix_html and the plain-DOM navbar, select it on controller-rendered pages, and keep the full LiveView bundle for LiveView pages.

* Add landing page SEO metadata

Replace the Phoenix default title with a descriptive Lucid Chess title, and add description, canonical, Open Graph, and Twitter card tags to the landing page.

* Complete the hero copy block

Add the spark icon primitive and the Endgames, made clear eyebrow. The primary CTA keeps linking to the active puzzle rather than scrolling to the board.

* Add a persisted global daily puzzle

Assign one endgame per UTC day in a daily_puzzles table with a unique date, preferring endgames unused in the last 30 days and falling back to any. Concurrent first requests insert with on-conflict-ignore and read the winning row. The landing board now shows the daily puzzle.

* remove unused CSS, nav links, time pill

* allow devices to connect to dev server by changing IP address to 0.0.0.0

* Restore the colour-mode switch and add a dark palette

* Use brand colour tokens on the play page

* self host fonts  - closes issue #62

* begin splitting CSS into modules

* remove hover on hero chessboard, split more css modules

* remove interactivity from hero chessboard

* update todo
This commit is contained in:
2026-11-05 13:52:14 +01:00
committed by GitHub
parent fd6277ef92
commit 93806b9ab2
60 changed files with 2253 additions and 11028 deletions
-7
View File
@@ -1,7 +0,0 @@
.bg-boardwhite {
background-color: #f2f5f3; /* light square */
}
.bg-boardblack {
background-color: #71828f; /* dark square */
}
+50 -98
View File
@@ -4,116 +4,68 @@
@import "tailwindcss" source(none);
@import "phoenix-colocated/chesstrainer/colocated.css";
/* Chessground imports */
@import "../node_modules/chessground/assets/chessground.base.css";
@import "../node_modules/chessground/assets/chessground.brown.css";
@import "../node_modules/chessground/assets/chessground.cburnett.css";
@import "./_board.css";
@import "./_promotion.css";
@import "./helpers/_variables.css";
@import "./base/_theme.css";
@import "./base/_globals.css";
@import "./base/_typography.css";
@import "./layouts/_nav.css";
@import "./layouts/_footer.css";
@import "./layouts/_hero.css";
@import "./layouts/_section.css";
@import "./components/_icon.css";
@import "./components/_button.css";
@import "./components/_learning-strip.css";
@import "./components/_board.css";
@import "./components/_promotion.css";
@source "../css";
@source "../js";
@source "../../lib/chesstrainer_web";
/* Required for Tailwind to automatically pick up changes in colocated CSS files in dev */
@source "../../_build/dev/phoenix-colocated/chesstrainer/*/";
/* A Tailwind plugin that makes "hero-#{ICON}" classes available.
The heroicons installation itself is managed by your mix.exs */
@plugin "../vendor/heroicons";
/* daisyUI Tailwind Plugin. You can update this file by fetching the latest version with:
curl -sLO https://github.com/saadeghi/daisyui/releases/latest/download/daisyui.js
Make sure to look at the daisyUI changelog: https://daisyui.com/docs/changelog/ */
@plugin "../vendor/daisyui" {
themes: false;
.rating-note { display: flex; align-items: center; gap: 11px; color: var(--color-muted); font-size: 11px; line-height: 1.3; }
.rating-note strong { display: block; color: var(--color-body); font-size: 12px; }
.avatar-stack { display: flex; }
.avatar-stack i { width: 29px; height: 29px; display: grid; place-items: center; margin-left: -7px; border: 2px solid var(--color-canvas); border-radius: 50%; background: var(--color-mint-chip); color: var(--color-body); font-style: normal; }
.avatar-stack i:first-child { margin-left: 0; background: var(--color-coral-control); color: #fff; }
.avatar-stack i:last-child { background: var(--color-deep); color: var(--color-on-deep); }
.puzzle-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 110px 0 125px; }
.puzzle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.puzzle-card { display: block; position: relative; min-height: 285px; padding: 25px; text-align: left; text-decoration: none; color: inherit; cursor: pointer; border: 1px solid var(--color-hairline); border-radius: 12px; background: rgba(255,255,255,.28); overflow: hidden; transition: transform .25s, background .25s, box-shadow .25s; }
.puzzle-card:hover, .puzzle-card.active { transform: translateY(-5px); background: var(--color-canvas-raised); box-shadow: 0 18px 36px rgba(23,53,45,.08); }
.puzzle-card.active { border-color: var(--color-success-text); }
.card-number { color: var(--color-muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.mini-piece { display: block; margin: 27px 0 22px; font-family: Georgia, serif; color: var(--color-body); font-size: 57px; line-height: 1; }
.difficulty { display: block; margin-bottom: 8px; color: var(--color-coral-text); font-size: 9px; text-transform: uppercase; font-weight: 700; letter-spacing: .12em; }
.puzzle-card strong { display: block; font-family: 'DM Serif Display', serif; font-size: 24px; font-weight: 400; }
.puzzle-card small { color: var(--color-muted); font-size: 11px; }
.card-arrow { position: absolute; right: 22px; bottom: 23px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--color-hairline); border-radius: 50%; transition: background .2s, color .2s; }
.puzzle-card:hover .card-arrow, .puzzle-card.active .card-arrow { background: var(--color-coral-control); color: white; border-color: var(--color-coral-control); }
.progress-banner { width: min(1180px, calc(100% - 48px)); margin: 0 auto 60px; padding: 70px 76px; display: flex; justify-content: space-between; align-items: end; border-radius: 16px; color: white; background: var(--color-coral-control); }
.progress-banner .section-kicker { color: var(--color-on-accent-muted); }
/* Dark mode needs a few tuned surfaces: tints and shadows are meaningless when
the canvas flips, and they are not worth a role token each. */
html[data-theme="dark"] .puzzle-card { background: rgba(233, 239, 233, .045); }
html[data-theme="dark"] .puzzle-card:hover,
html[data-theme="dark"] .puzzle-card.active { box-shadow: 0 18px 36px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .board-shell { box-shadow: 0 26px 65px rgba(0, 0, 0, .55); }
html[data-theme="dark"] .primary-button { box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .learning-strip { box-shadow: inset 0 1px 0 var(--color-hairline); }
@media (max-width: 650px) {
.puzzle-section { width: calc(100% - 36px); padding: 80px 0; }
.puzzle-grid { grid-template-columns: 1fr; }
.puzzle-card { min-height: 255px; }
.progress-banner { width: calc(100% - 36px); padding: 48px 28px; flex-direction: column; align-items: flex-start; gap: 34px; }
}
/* daisyUI theme plugin. You can update this file by fetching the latest version with:
curl -sLO https://github.com/saadeghi/daisyui/releases/latest/download/daisyui-theme.js
We ship with two themes, a light one inspired on Phoenix colors and a dark one inspired
on Elixir colors. Build your own at: https://daisyui.com/theme-generator/ */
@plugin "../vendor/daisyui-theme" {
name: "dark";
default: false;
prefersdark: true;
color-scheme: "dark";
--color-base-100: oklch(30.33% 0.016 252.42);
--color-base-200: oklch(25.26% 0.014 253.1);
--color-base-300: oklch(20.15% 0.012 254.09);
--color-base-content: oklch(97.807% 0.029 256.847);
--color-primary: oklch(58% 0.233 277.117);
--color-primary-content: oklch(96% 0.018 272.314);
--color-secondary: oklch(58% 0.233 277.117);
--color-secondary-content: oklch(96% 0.018 272.314);
--color-accent: oklch(60% 0.25 292.717);
--color-accent-content: oklch(96% 0.016 293.756);
--color-neutral: oklch(37% 0.044 257.287);
--color-neutral-content: oklch(98% 0.003 247.858);
--color-info: oklch(58% 0.158 241.966);
--color-info-content: oklch(97% 0.013 236.62);
--color-success: oklch(60% 0.118 184.704);
--color-success-content: oklch(98% 0.014 180.72);
--color-warning: oklch(66% 0.179 58.318);
--color-warning-content: oklch(98% 0.022 95.277);
--color-error: oklch(58% 0.253 17.585);
--color-error-content: oklch(96% 0.015 12.422);
--radius-selector: 0.25rem;
--radius-field: 0.25rem;
--radius-box: 0.5rem;
--size-selector: 0.21875rem;
--size-field: 0.21875rem;
--border: 1.5px;
--depth: 1;
--noise: 0;
}
@plugin "../vendor/daisyui-theme" {
name: "light";
default: true;
prefersdark: false;
color-scheme: "light";
--color-base-100: oklch(98% 0 0);
--color-base-200: oklch(96% 0.001 286.375);
--color-base-300: oklch(92% 0.004 286.32);
--color-base-content: oklch(21% 0.006 285.885);
--color-primary: oklch(70% 0.213 47.604);
--color-primary-content: oklch(98% 0.016 73.684);
--color-secondary: oklch(55% 0.027 264.364);
--color-secondary-content: oklch(98% 0.002 247.839);
--color-accent: oklch(0% 0 0);
--color-accent-content: oklch(100% 0 0);
--color-neutral: oklch(44% 0.017 285.786);
--color-neutral-content: oklch(98% 0 0);
--color-info: oklch(62% 0.214 259.815);
--color-info-content: oklch(97% 0.014 254.604);
--color-success: oklch(70% 0.14 182.503);
--color-success-content: oklch(98% 0.014 180.72);
--color-warning: oklch(66% 0.179 58.318);
--color-warning-content: oklch(98% 0.022 95.277);
--color-error: oklch(58% 0.253 17.585);
--color-error-content: oklch(96% 0.015 12.422);
--radius-selector: 0.25rem;
--radius-field: 0.25rem;
--radius-box: 0.5rem;
--size-selector: 0.21875rem;
--size-field: 0.21875rem;
--border: 1.5px;
--depth: 1;
--noise: 0;
}
/* Add variants based on LiveView classes */
@custom-variant phx-click-loading (.phx-click-loading&, .phx-click-loading &);
@custom-variant phx-submit-loading (.phx-submit-loading&, .phx-submit-loading &);
@custom-variant phx-change-loading (.phx-change-loading&, .phx-change-loading &);
/* Use the data attribute for dark mode */
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
/* Make LiveView wrapper divs transparent for layout */
[data-phx-session],
[data-phx-teleported-src] {
display: contents;
}
/* This file is for your main application CSS */
+29
View File
@@ -0,0 +1,29 @@
:root {
color-scheme: light;
}
@layer base {
html { scroll-behavior: smooth; }
body {
min-width: 320px;
background: var(--color-canvas);
color: var(--color-body);
font-family: 'DM Sans', sans-serif;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
}
main { overflow: hidden; }
/* LiveView */
@custom-variant phx-click-loading (.phx-click-loading&, .phx-click-loading &);
@custom-variant phx-submit-loading (.phx-submit-loading&, .phx-submit-loading &);
@custom-variant phx-change-loading (.phx-change-loading&, .phx-change-loading &);
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
/* Make LiveView wrapper divs transparent for layout */
[data-phx-session],
[data-phx-teleported-src] {
display: contents;
}
+98
View File
@@ -0,0 +1,98 @@
@theme static {
/* Roles — light mode reads from the palette. */
--color-canvas: var(--paper);
--color-canvas-raised: var(--cream);
--color-body: var(--ink);
--color-muted: var(--ink-soft);
--color-hairline: var(--line);
--color-deep: var(--ink);
--color-on-deep: var(--paper);
--color-coral: var(--coral);
--color-coral-control: var(--coral);
--color-coral-control-hover: var(--coral-dark);
--color-coral-text: var(--coral-dark);
--color-success-text: var(--mint-deep);
--color-mint-chip: var(--mint);
--color-on-accent-muted: #5f2c23;
/* Content colours — identical in every colour mode. */
--color-board-light: #e9e1cc;
--color-board-dark: #81a996;
--color-piece-light: #fffdf5;
--color-piece-outline: #17352d;
--color-on-deep-muted: #c8d6d1;
--color-on-deep-faint: #a9beb6;
/* Promotion picker. */
--color-promotion-surface: #ffffff;
--color-promotion-tile: #fafafa;
--color-promotion-tile-hover: #fff1ec;
--color-promotion-selected: var(--coral);
/* Phoenix semantic tokens, retuned to the brand. Utilities such as
`bg-base-200` and `text-base-content` resolve through these. */
--color-base-100: #fffcf4;
--color-base-200: #f4f0e6;
--color-base-300: #e7e1d3;
--color-base-content: #17352d;
--color-primary: #c74c33;
--color-primary-content: #ffffff;
--color-secondary: #17352d;
--color-secondary-content: #f4f0e6;
--color-accent: #3f6d5a;
--color-accent-content: #ffffff;
--color-neutral: #587068;
--color-neutral-content: #f4f0e6;
--color-info: oklch(62% 0.214 259.815);
--color-info-content: oklch(97% 0.014 254.604);
--color-success: oklch(70% 0.14 182.503);
--color-success-content: oklch(98% 0.014 180.72);
--color-warning: oklch(66% 0.179 58.318);
--color-warning-content: oklch(98% 0.022 95.277);
--color-error: oklch(58% 0.253 17.585);
--color-error-content: oklch(96% 0.015 12.422);
}
html[data-theme="dark"] {
color-scheme: dark;
--color-canvas: #0f1714;
--color-canvas-raised: #1b2822;
--color-body: #e9efe9;
--color-muted: #9ab0a5;
--color-hairline: rgba(233, 239, 233, 0.14);
--color-deep: #1d3c33;
--color-on-deep: #f4f0e6;
--color-coral: #f2816b;
--color-coral-control: #c74c33;
--color-coral-control-hover: #b8432c;
--color-coral-text: #ff9c85;
--color-success-text: #8fd3b5;
--color-mint-chip: #24403a;
--color-on-accent-muted: rgba(255, 255, 255, 0.97);
--color-promotion-surface: #1b2822;
--color-promotion-tile: #233029;
--color-promotion-tile-hover: #2c3d35;
--color-promotion-selected: #ff9c85;
--color-base-100: #1b2822;
--color-base-200: #141f1a;
--color-base-300: #0f1714;
--color-base-content: #e9efe9;
--color-primary: #c74c33;
--color-primary-content: #ffffff;
--color-secondary: #1d3c33;
--color-secondary-content: #f4f0e6;
--color-accent: #8fd3b5;
--color-accent-content: #0f1714;
--color-neutral: #2b3a33;
--color-neutral-content: #e9efe9;
--color-info: oklch(70% 0.14 240);
--color-info-content: oklch(15% 0.02 240);
--color-success: oklch(72% 0.13 165);
--color-success-content: oklch(15% 0.02 165);
--color-warning: oklch(78% 0.15 75);
--color-warning-content: oklch(20% 0.03 75);
--color-error: oklch(66% 0.19 22);
--color-error-content: oklch(15% 0.02 22);
}
+39
View File
@@ -0,0 +1,39 @@
@font-face {
font-family: "DM Sans";
font-style: normal;
font-weight: 100 1000;
font-display: swap;
src: url("/fonts/dm-sans-variable.woff2") format("woff2");
}
@font-face {
font-family: "DM Sans";
font-style: italic;
font-weight: 400;
font-display: swap;
src: url("/fonts/dm-sans-italic.woff2") format("woff2");
}
@font-face {
font-family: "DM Serif Display";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/dm-serif-display.woff2") format("woff2");
}
@font-face {
font-family: "DM Serif Display";
font-style: italic;
font-weight: 400;
font-display: swap;
src: url("/fonts/dm-serif-display-italic.woff2") format("woff2");
}
h1, h2 { font-family: 'DM Serif Display', serif; font-weight: 400; letter-spacing: -.035em; }
h1 { max-width: 590px; font-size: clamp(56px, 6vw, 87px); line-height: .93; }
h1 em { color: var(--color-coral); font-weight: 400; }
@media (max-width: 650px) {
h1 { font-size: clamp(51px, 15vw, 68px); }
}
+41
View File
@@ -0,0 +1,41 @@
/* Hero Chessboard */
.board-shell { position: relative; z-index: 2; width: min(458px, 85vw); padding: 18px; border-radius: 12px; background: var(--color-canvas-raised); box-shadow: 0 26px 65px rgba(23, 53, 45, .25); transform: rotate(1.5deg); }
.board-topline, .board-caption { display: flex; align-items: center; justify-content: space-between; }
.board-topline { padding: 1px 1px 13px; }
.board-stage { position: relative; min-height: 580px; display: grid; place-items: center; }
.chessboard { aspect-ratio: 1; display: grid; grid-template-columns: repeat(8, 1fr); overflow: hidden; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.player { display: flex; align-items: center; gap: 9px; }
.player-piece { display: grid; place-items: center; width: 31px; height: 31px; background: var(--color-deep); border-radius: 50%; color: var(--color-on-deep); font-size: 20px; }
.player span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.player small { color: var(--color-muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.player strong { font-size: 12px; }
.square { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 0; }
.square.light { background: var(--color-board-light); }
.square.dark { background: var(--color-board-dark); }
.piece { position: relative; z-index: 2; font-family: Georgia, serif; font-size: clamp(25px, 4vw, 42px); line-height: 1; transform: translateY(-1px); }
.white-piece { color: var(--color-piece-light); text-shadow: 0 2px 0 var(--color-piece-outline), 1px 0 0 var(--color-piece-outline), -1px 0 0 var(--color-piece-outline), 0 -1px 0 var(--color-piece-outline); }
.black-piece { color: var(--color-piece-outline); text-shadow: 0 1px 0 rgba(255,255,255,.25); }
.rank, .file { position: absolute; z-index: 3; color: rgba(23,53,45,.65); font-size: 7px; font-weight: 700; }
.rank { top: 3px; left: 4px; }
.file { right: 4px; bottom: 2px; }
.dark .rank, .dark .file { color: rgba(255,255,255,.65); }
.board-caption { padding: 14px 2px 0; }
.board-caption div { display: flex; flex-direction: column; }
.board-caption span { color: var(--color-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.board-caption strong { font-size: 13px; }
.board-caption button { color: var(--color-coral-text); font-size: 11px; font-weight: 700; }
.board-themes { color: var(--color-coral-text); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 900px) {
.board-stage { min-height: 620px; }
}
@media (max-width: 650px) {
.board-stage { min-height: 500px; }
.board-shell { width: min(390px, 92vw); padding: 12px; }
.piece { font-size: clamp(24px, 9vw, 38px); }
}
/* Admin Chessboard */
.bg-boardwhite { background-color: #f2f5f3; /* light square */ }
.bg-boardblack { background-color: #71828f; /* dark square */ }
+9
View File
@@ -0,0 +1,9 @@
.primary-button { padding: 16px 23px; background: var(--color-coral-control); color: #fff; box-shadow: 0 10px 28px rgba(217, 93, 72, .21); }
.primary-button:hover { background: var(--color-coral-control-hover); }
.light-button { padding: 15px 22px; background: var(--color-canvas-raised); color: var(--color-body); white-space: nowrap; }
.menu-button { display: none; }
@media (max-width: 650px) {
.menu-button { display: flex; width: 38px; height: 38px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-button span { width: 19px; height: 1.5px; background: var(--color-body); }
}
+2
View File
@@ -0,0 +1,2 @@
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 27px; color: var(--color-coral-text); text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 700; }
.eyebrow svg { width: 20px; height: 20px; }
+21
View File
@@ -0,0 +1,21 @@
.learning-strip {
padding: 27px max(24px, calc((100% - 1180px)/2));
display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); align-items: center; background: var(--color-deep); color: var(--color-on-deep);
}
.learning-strip > p { max-width: 260px; color: var(--color-on-deep-muted); font-family: 'DM Serif Display', serif; font-size: 19px; line-height: 1.25; }
.stat { padding-left: 34px; border-left: 1px solid rgba(255,255,255,.17); }
.stat strong { display: block; font-family: 'DM Serif Display', serif; font-size: 28px; font-weight: 400; }
.stat span { color: var(--color-on-deep-faint); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
@media (max-width: 900px) {
.learning-strip { grid-template-columns: 1fr repeat(3, .7fr); }
}
@media (max-width: 650px) {
.learning-strip { padding: 38px 24px; grid-template-columns: 1fr 1fr; gap: 30px 10px; }
.learning-strip > p { grid-column: 1 / -1; }
.stat { padding-left: 18px; }
.stat:last-child { grid-column: 1 / -1; }
}
@@ -13,19 +13,23 @@
display: flex;
flex-direction: column;
gap: 6px;
background: white;
background: var(--color-promotion-surface);
padding: 10px;
border-radius: 14px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .promotion-overlay {
background: rgba(0, 0, 0, 0.68);
}
.promotion-piece {
width: 80px;
height: 80px;
cursor: pointer;
border: 2px solid transparent;
border-radius: 8px;
background-color: #fafafa;
background-color: var(--color-promotion-tile);
background-size: 80% 80%;
background-position: center;
background-repeat: no-repeat;
@@ -33,8 +37,8 @@
}
.promotion-piece:hover {
background-color: #eff6ff;
border-color: #3b82f6;
background-color: var(--color-promotion-tile-hover);
border-color: var(--color-promotion-selected);
transform: scale(1.08);
}
+12
View File
@@ -0,0 +1,12 @@
:root {
/* Raw brand palette. */
--ink: #17352d;
--ink-soft: #587068;
--paper: #f4f0e6;
--cream: #fffcf4;
--mint: #b9d7c9;
--mint-deep: #8bb9a8;
--coral: #ef755d;
--coral-dark: #d95d48;
--line: rgba(23, 53, 45, 0.15);
}
+18
View File
@@ -0,0 +1,18 @@
.site-footer {
width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 44px 0;
display: flex; align-items: center; justify-content: space-between; gap: 30px;
border-top: 1px solid var(--color-hairline);
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand p { color: var(--color-muted); font-size: 13px; }
.footer-links { display: flex; gap: 26px; font-size: 14px; font-weight: 600; }
.footer-links a { transition: opacity .2s; }
.footer-links a:hover { opacity: .55; }
.site-footer > small { color: var(--color-muted); font-size: 11px; }
@media (max-width: 650px) {
.site-footer { width: calc(100% - 36px); flex-direction: column; align-items: flex-start; gap: 24px; }
.footer-links { flex-wrap: wrap; gap: 16px 22px; }
}
+28
View File
@@ -0,0 +1,28 @@
.hero {
width: min(1180px, calc(100% - 48px)); min-height: 650px; margin: 0 auto;
display: grid; grid-template-columns: .91fr 1.09fr; align-items: center; gap: 60px;
}
.hero-copy { position: relative; z-index: 2; padding: 74px 0 92px; }
.hero-copy > p { max-width: 480px; margin-top: 29px; color: var(--color-muted); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 35px; }
.coral-orbit, .mint-orbit { position: absolute; border-radius: 50%; }
.coral-orbit { width: 460px; height: 460px; right: -34px; top: 46px; background: var(--color-coral); }
.mint-orbit { width: 230px; height: 230px; left: 14px; bottom: 28px; background: var(--color-mint-chip); }
@media (max-width: 900px) {
.hero { grid-template-columns: 1fr; gap: 0; }
.hero-copy { padding-bottom: 30px; }
.hero-copy > p { max-width: 560px; }
.coral-orbit { right: 6%; }
.mint-orbit { left: 10%; }
}
@media (max-width: 650px) {
.hero { width: calc(100% - 36px); }
.hero-copy { padding: 65px 0 24px; }
.hero-copy > p { font-size: 15px; }
.coral-orbit { width: 340px; height: 340px; right: -28%; top: 65px; }
.mint-orbit { width: 170px; height: 170px; left: -8%; }
}
+41
View File
@@ -0,0 +1,41 @@
.nav-wrap {
width: min(1180px, calc(100% - 48px));
height: 92px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--color-hairline);
}
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 600; }
.nav-links a { transition: opacity .2s; }
.nav-links a:hover { opacity: .55; }
.nav-links a.nav-cta:hover { opacity: 1; }
.nav-user { color: var(--color-muted); font-weight: 500; }
.nav-cta, .primary-button, .light-button {
display: inline-flex; align-items: center; justify-content: center; gap: 13px;
border-radius: 999px; font-weight: 600; transition: transform .2s, background .2s;
}
.nav-cta { padding: 12px 19px; color: var(--color-on-deep); background: var(--color-deep); }
.nav-cta svg, .primary-button svg, .light-button svg, .card-arrow svg { width: 18px; height: 18px; }
.nav-cta:hover, .primary-button:hover, .light-button:hover { transform: translateY(-2px); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; letter-spacing: .18em; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--color-deep); color: var(--color-on-deep); font-size: 21px; letter-spacing: 0; }
@media (max-width: 900px) {
.nav-links { gap: 20px; }
.nav-right { gap: 16px; }
}
@media (max-width: 650px) {
.nav-wrap { width: calc(100% - 36px); height: 74px; position: relative; z-index: 10; }
.nav-right { gap: 12px; }
.nav-links.open { display: flex; }
.nav-cta { width: 100%; }
.nav-links { display: none; position: absolute; top: 65px; left: 0; right: 0; padding: 24px; flex-direction: column; align-items: stretch; gap: 22px; border-radius: 10px; background: var(--color-canvas-raised); box-shadow: 0 18px 40px rgba(23,53,45,.15); }
html[data-theme="dark"] .nav-links { box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
}
+12
View File
@@ -0,0 +1,12 @@
.section-heading { display: grid; grid-template-columns: 1fr .65fr; align-items: end; margin-bottom: 46px; }
.section-kicker { display: block; margin-bottom: 14px; color: var(--color-coral-text); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 700; }
.section-heading h2, .progress-banner h2 { font-size: clamp(43px, 5vw, 65px); line-height: .96; }
.section-heading > p { max-width: 390px; color: var(--color-muted); font-size: 14px; line-height: 1.7; }
@media (max-width: 900px) {
.section-heading { grid-template-columns: 1fr .8fr; }
}
@media (max-width: 650px) {
.section-heading { grid-template-columns: 1fr; gap: 25px; }
}