Add Nunito font, update styles, and remove CTAButtons component

This commit is contained in:
ben
2026-07-09 09:35:03 -07:00
parent 2e28e6db05
commit f5c26993fd
7 changed files with 102 additions and 67 deletions
+11
View File
@@ -8,6 +8,7 @@
"name": "squiggleverse", "name": "squiggleverse",
"version": "0.1.0", "version": "0.1.0",
"devDependencies": { "devDependencies": {
"@fontsource/nunito": "^5.2.7",
"@sveltejs/adapter-static": "^3.0.10", "@sveltejs/adapter-static": "^3.0.10",
"@sveltejs/kit": "^2.69.2", "@sveltejs/kit": "^2.69.2",
"@sveltejs/vite-plugin-svelte": "^7.2.0", "@sveltejs/vite-plugin-svelte": "^7.2.0",
@@ -51,6 +52,16 @@
"tslib": "^2.4.0" "tslib": "^2.4.0"
} }
}, },
"node_modules/@fontsource/nunito": {
"version": "5.2.7",
"resolved": "https://registry.npmjs.org/@fontsource/nunito/-/nunito-5.2.7.tgz",
"integrity": "sha512-pmtBq0H9ex9nk+RtJYEJOD9pag393iHETnl/PVKleF4i06cd0ttngK5ZCTgYb5eOqR3Xdlrjtev8m7bmgYprew==",
"dev": true,
"license": "OFL-1.1",
"funding": {
"url": "https://github.com/sponsors/ayuhito"
}
},
"node_modules/@jridgewell/gen-mapping": { "node_modules/@jridgewell/gen-mapping": {
"version": "0.3.13", "version": "0.3.13",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
+1
View File
@@ -13,6 +13,7 @@
"cookie": "0.7.2" "cookie": "0.7.2"
}, },
"devDependencies": { "devDependencies": {
"@fontsource/nunito": "^5.2.7",
"@sveltejs/adapter-static": "^3.0.10", "@sveltejs/adapter-static": "^3.0.10",
"@sveltejs/kit": "^2.69.2", "@sveltejs/kit": "^2.69.2",
"@sveltejs/vite-plugin-svelte": "^7.2.0", "@sveltejs/vite-plugin-svelte": "^7.2.0",
+72 -60
View File
@@ -8,6 +8,7 @@
--color-lavender: #f1e7ff; --color-lavender: #f1e7ff;
--color-white: #ffffff; --color-white: #ffffff;
--color-cyan-accent: #43d8ff; --color-cyan-accent: #43d8ff;
--font-copy: Nunito, Lexend, ui-sans-serif, system-ui, sans-serif;
--glow-purple: 0 0 32px rgba(159, 95, 255, 0.45); --glow-purple: 0 0 32px rgba(159, 95, 255, 0.45);
--border-purple: rgba(190, 143, 255, 0.42); --border-purple: rgba(190, 143, 255, 0.42);
font-family: font-family:
@@ -50,14 +51,25 @@ a {
.landing-page { .landing-page {
min-height: 100svh; min-height: 100svh;
overflow: hidden; position: relative;
isolation: isolate;
overflow: clip;
background: background:
radial-gradient(circle at 50% 0%, rgba(181, 140, 255, 0.22), transparent 34rem), radial-gradient(circle at 50% 0%, rgba(181, 140, 255, 0.22), transparent 34rem),
linear-gradient(to bottom, rgba(7, 0, 20, 0.18), rgba(54, 0, 95, 0.38)), linear-gradient(to bottom, rgba(7, 0, 20, 0.18), rgba(54, 0, 95, 0.38));
url('/assets/squiggleverse-bg.webp'); }
background-attachment: fixed;
.landing-page::before {
content: '';
position: absolute;
z-index: -1;
inset: -8svh 0;
background-image: url('/assets/squiggleverse-bg.webp');
background-position: center top; background-position: center top;
background-size: cover; background-size: cover;
transform: translate3d(0, calc(var(--parallax-y, 0px) * -0.16), 0) scale(1.08);
transform-origin: center top;
will-change: transform;
} }
.hero { .hero {
@@ -70,6 +82,24 @@ a {
align-items: center; align-items: center;
} }
.site-footer {
position: relative;
width: min(1120px, 100%);
margin-inline: auto;
padding: 0 clamp(1rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2rem);
text-align: center;
}
.site-footer p {
margin: 0;
color: rgba(241, 231, 255, 0.74);
font-family: var(--font-copy);
font-size: clamp(0.85rem, 1.3vw, 1rem);
font-weight: 500;
letter-spacing: 0;
text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
}
.hero-logo { .hero-logo {
display: flex; display: flex;
justify-content: center; justify-content: center;
@@ -112,59 +142,50 @@ a {
.intro p { .intro p {
margin: 0; margin: 0;
color: var(--color-lavender); color: var(--color-lavender);
font-family: var(--font-copy);
font-size: clamp(1.2rem, 2.2vw, 2rem); font-size: clamp(1.2rem, 2.2vw, 2rem);
font-weight: 500;
line-height: 1.45; line-height: 1.45;
letter-spacing: 0; letter-spacing: 0;
text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
} }
.cta-row { .star-divider {
display: flex; width: min(24rem, 72vw);
flex-wrap: wrap; margin: clamp(1.45rem, 3vw, 2.1rem) auto 0;
justify-content: center; display: grid;
gap: 0.8rem; grid-template-columns: 1fr auto 1fr;
margin-top: clamp(1.4rem, 3vw, 2rem);
}
.button {
display: inline-flex;
align-items: center; align-items: center;
justify-content: center; gap: 1.1rem;
min-height: 2.8rem; color: var(--color-purple-light);
padding: 0.78rem 1.15rem; }
border: 1px solid transparent;
border-radius: 999px; .star-divider span {
font-size: 1rem; height: 2px;
font-weight: 750; background: linear-gradient(90deg, transparent, rgba(181, 140, 255, 0.9), transparent);
filter: drop-shadow(0 0 8px rgba(181, 140, 255, 0.7));
}
.star-divider strong {
font-size: clamp(1.65rem, 3vw, 2.15rem);
line-height: 1; line-height: 1;
letter-spacing: 0; font-weight: 900;
text-decoration: none; text-shadow:
transition: 0 0 12px rgba(181, 140, 255, 0.9),
transform 160ms ease, 0 0 28px rgba(159, 95, 255, 0.58);
border-color 160ms ease,
background-color 160ms ease,
box-shadow 160ms ease;
} }
.button:hover { .star-divider span:first-child {
transform: translateY(-1px); background: linear-gradient(90deg, transparent, rgba(181, 140, 255, 0.9));
} }
.button-primary { .star-divider span:last-child {
color: #06121a; background: linear-gradient(90deg, rgba(181, 140, 255, 0.9), transparent);
background: var(--color-cyan-accent);
box-shadow: 0 0 24px rgba(67, 216, 255, 0.28);
} }
.button-secondary { :focus-visible {
color: var(--color-lavender); outline: 3px solid var(--color-cyan-accent);
border-color: rgba(241, 231, 255, 0.34); outline-offset: 4px;
background: rgba(10, 0, 28, 0.46);
}
.button-secondary:hover {
border-color: rgba(241, 231, 255, 0.6);
background: rgba(42, 15, 86, 0.62);
} }
.sr-only { .sr-only {
@@ -180,11 +201,6 @@ a {
border: 0; border: 0;
} }
:focus-visible {
outline: 3px solid var(--color-cyan-accent);
outline-offset: 4px;
}
.error-page { .error-page {
min-height: 100svh; min-height: 100svh;
display: grid; display: grid;
@@ -201,8 +217,9 @@ a {
} }
@media (max-width: 768px) { @media (max-width: 768px) {
.landing-page { .landing-page::before {
background-attachment: scroll; inset: -4svh 0;
transform: translate3d(0, calc(var(--parallax-y, 0px) * -0.1), 0) scale(1.08);
} }
.hero { .hero {
@@ -231,16 +248,6 @@ a {
} }
} }
@media (max-width: 440px) {
.cta-row {
width: min(19rem, 92vw);
}
.button {
width: 100%;
}
}
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {
*, *,
*::before, *::before,
@@ -250,4 +257,9 @@ a {
scroll-behavior: auto !important; scroll-behavior: auto !important;
transition-duration: 0.001ms !important; transition-duration: 0.001ms !important;
} }
.landing-page::before {
transform: none;
will-change: auto;
}
} }
-4
View File
@@ -1,4 +0,0 @@
<div class="cta-row" aria-label="Squiggleverse actions">
<a class="button button-primary" href="#demo">Watch Demo</a>
<a class="button button-secondary" href="mailto:hello@squiggleverse.com">Contact Us</a>
</div>
+5
View File
@@ -5,4 +5,9 @@
grammar, usage, and style through innovative gameplay, whimsical characters, and creative grammar, usage, and style through innovative gameplay, whimsical characters, and creative
narratives co-authored by the player. narratives co-authored by the player.
</p> </p>
<div class="star-divider" aria-hidden="true">
<span></span>
<strong></strong>
<span></span>
</div>
</section> </section>
+1
View File
@@ -1,4 +1,5 @@
<script lang="ts"> <script lang="ts">
import '@fontsource/nunito/latin-500.css';
import '../app.css'; import '../app.css';
let { children } = $props(); let { children } = $props();
+12 -3
View File
@@ -1,10 +1,11 @@
<script lang="ts"> <script lang="ts">
import CTAButtons from '$lib/components/CTAButtons.svelte';
import HeroLogo from '$lib/components/HeroLogo.svelte'; import HeroLogo from '$lib/components/HeroLogo.svelte';
import IntroText from '$lib/components/IntroText.svelte'; import IntroText from '$lib/components/IntroText.svelte';
import VideoCard from '$lib/components/VideoCard.svelte'; import VideoCard from '$lib/components/VideoCard.svelte';
import logo from '$lib/assets/squiggleverse-logo.webp'; import logo from '$lib/assets/squiggleverse-logo.webp';
let scrollY = $state(0);
const description = const description =
'Squiggleverse is a modular, multi-platform, game-based stealth learning system that teaches grammar, usage, and style through whimsical gameplay.'; 'Squiggleverse is a modular, multi-platform, game-based stealth learning system that teaches grammar, usage, and style through whimsical gameplay.';
@@ -34,17 +35,25 @@
<meta name="twitter:description" content="A whimsical game-based learning system for grammar, usage, and style." /> <meta name="twitter:description" content="A whimsical game-based learning system for grammar, usage, and style." />
<meta name="twitter:image" content="https://squiggleverse.com/og-image.webp" /> <meta name="twitter:image" content="https://squiggleverse.com/og-image.webp" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="manifest" href="/site.webmanifest" />
<meta name="theme-color" content="#160030" />
<link rel="preload" as="image" href={logo} type="image/webp" /> <link rel="preload" as="image" href={logo} type="image/webp" />
{@html `<script type="application/ld+json">${JSON.stringify(structuredData)}</script>`} {@html `<script type="application/ld+json">${JSON.stringify(structuredData)}</script>`}
</svelte:head> </svelte:head>
<main class="landing-page"> <svelte:window bind:scrollY />
<main class="landing-page" style={`--parallax-y: ${Math.min(scrollY, 1200)}px;`}>
<h1 class="sr-only">Squiggleverse</h1> <h1 class="sr-only">Squiggleverse</h1>
<section class="hero" aria-label="Squiggleverse landing page"> <section class="hero" aria-label="Squiggleverse landing page">
<HeroLogo /> <HeroLogo />
<VideoCard /> <VideoCard />
<IntroText /> <IntroText />
<CTAButtons />
</section> </section>
<footer class="site-footer">
<p>&copy; 2026 Squiggleverse. All rights reserved.</p>
</footer>
</main> </main>