diff --git a/input.css b/input.css index b483148..a67b4a4 100644 --- a/input.css +++ b/input.css @@ -1,4 +1,5 @@ @import "tailwindcss"; +@import "./internal/ui/views/index/index.css"; @import "./internal/ui/views/shelf/shelf.css"; @import "./internal/ui/views/login/login.css"; @import "./internal/ui/components/header/header.css"; @@ -58,7 +59,7 @@ main { justify-content: center; gap: theme(spacing.2); cursor: pointer; - padding: theme(spacing.3) theme(spacing.2); + padding: theme(spacing.3) theme(spacing.5); font-weight: bold; font-family: var(--font-primary); diff --git a/internal/ui/components/header/header.css b/internal/ui/components/header/header.css index 5aec633..6a82158 100644 --- a/internal/ui/components/header/header.css +++ b/internal/ui/components/header/header.css @@ -3,7 +3,6 @@ header { top: 0; z-index: 50; padding-inline: 1rem; - margin-bottom: 2rem; } .header-nav { @@ -38,6 +37,7 @@ header { display: flex; gap: 0.375rem; align-items: center; + font-family: var(--font-primary); } & > div { @@ -67,6 +67,42 @@ header { height: 1.5rem; border-radius: 9999px; background: var(--color-dim); + + svg { + height: 1rem; + width: 1rem; + } +} + +.header-nav-link { + font-size: 0.75rem; + font-weight: 500; + letter-spacing: 0.08em; + text-transform: uppercase; + text-decoration: none; + color: var(--color-dim); + + &:hover { + color: var(--color-ink); + } +} + +.header-signin { + font-size: 0.8125rem; + font-weight: 600; + letter-spacing: 0.06em; + text-transform: uppercase; + text-decoration: none; + color: var(--color-ink); + + &:hover { + color: var(--color-dim); + } +} + +.header-username { + font-size: 0.875rem; + font-weight: 500; } .header-dropdown-btn { diff --git a/internal/ui/components/header/header.templ b/internal/ui/components/header/header.templ index 1cce332..7fa4c21 100644 --- a/internal/ui/components/header/header.templ +++ b/internal/ui/components/header/header.templ @@ -6,14 +6,20 @@ templ Header(params HeaderParams) {
} diff --git a/internal/ui/layouts/base/base.templ b/internal/ui/layouts/base/base.templ index c2d98fa..c42a91a 100644 --- a/internal/ui/layouts/base/base.templ +++ b/internal/ui/layouts/base/base.templ @@ -6,7 +6,7 @@ templ Base(params BaseParams) { - shlf.space - { params.Title } + { params.Title } - shlf.space diff --git a/internal/ui/views/index/index.css b/internal/ui/views/index/index.css new file mode 100644 index 0000000..25ca295 --- /dev/null +++ b/internal/ui/views/index/index.css @@ -0,0 +1,54 @@ +.hero { + flex: 1; + display: flex; + align-items: center; + justify-content: center; + padding: 4rem 1.5rem 6rem; + position: relative; +} + +.hero-inner { + position: relative; + max-width: 46rem; + width: 100%; + text-align: center; +} + +.hero-headline { + font-size: clamp(3rem, 7vw, 5.5rem); + font-weight: 900; + line-height: 1.05; + letter-spacing: -0.02em; + margin: 0 0 1.25rem; + + span { + display: block; + } +} + +.hero-subtext { + font-size: 1.0625rem; + line-height: 1.7; + color: var(--color-dim); + max-width: 38rem; + margin: 0 auto 2.5rem; +} + +.hero-cta { + padding: 1rem 2rem; + font-size: 0.8125rem; + letter-spacing: 0.1em; + text-transform: uppercase; + text-decoration: none; +} + +.hero-annotation { + position: absolute; + bottom: -2.5rem; + right: 0; + font-family: var(--font-accent); + font-size: 1.375rem; + color: var(--color-dim); + transform: rotate(-2deg); + pointer-events: none; +} diff --git a/internal/ui/views/index/index.templ b/internal/ui/views/index/index.templ index 8128fdc..4f07379 100644 --- a/internal/ui/views/index/index.templ +++ b/internal/ui/views/index/index.templ @@ -8,6 +8,25 @@ import ( templ IndexPage(params IndexPageParams) { @layouts.Base(layouts.BaseParams{Title: "home"}) { @header.Header(header.HeaderParams{User: params.User}) -
+
+
+

+ Your reading journey, +
+ beautifully shelved. +

+

+ A personal space to log your progress, track your milestones, and curate your personal library. +

+
+ + Start your shelf + +
+ +
+
} } diff --git a/internal/ui/views/login/login.templ b/internal/ui/views/login/login.templ index d405a6a..b324b3b 100644 --- a/internal/ui/views/login/login.templ +++ b/internal/ui/views/login/login.templ @@ -55,7 +55,7 @@ templ LoginPage(params LoginPageParams) { aria-label="Login" > - + Login