Add initial project setup with static files and configuration
- Create robots.txt to allow all user agents and specify sitemap location - Add site.webmanifest for PWA support with app details - Initialize sitemap.xml with the homepage URL and metadata - Set up svelte.config.js for SvelteKit with static adapter and prerendering - Configure TypeScript with tsconfig.json for strict type checking and module resolution - Establish Vite configuration in vite.config.ts for SvelteKit integration
This commit is contained in:
+253
@@ -0,0 +1,253 @@
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
--color-bg-deep: #070014;
|
||||
--color-bg-space: #160030;
|
||||
--color-purple-dark: #2a0f56;
|
||||
--color-purple: #6b3fb3;
|
||||
--color-purple-light: #b58cff;
|
||||
--color-lavender: #f1e7ff;
|
||||
--color-white: #ffffff;
|
||||
--color-cyan-accent: #43d8ff;
|
||||
--glow-purple: 0 0 32px rgba(159, 95, 255, 0.45);
|
||||
--border-purple: rgba(190, 143, 255, 0.42);
|
||||
font-family:
|
||||
Atkinson Hyperlegible,
|
||||
Lexend,
|
||||
Nunito Sans,
|
||||
Inter,
|
||||
ui-sans-serif,
|
||||
system-ui,
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
Segoe UI,
|
||||
sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-width: 320px;
|
||||
background: var(--color-bg-deep);
|
||||
color: var(--color-white);
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
img,
|
||||
video {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.landing-page {
|
||||
min-height: 100svh;
|
||||
overflow: hidden;
|
||||
background:
|
||||
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)),
|
||||
url('/assets/squiggleverse-bg.webp');
|
||||
background-attachment: fixed;
|
||||
background-position: center top;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.hero {
|
||||
width: min(1120px, 100%);
|
||||
min-height: 100svh;
|
||||
margin-inline: auto;
|
||||
padding: clamp(1.25rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 6vw, 4rem);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.hero-logo {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hero-logo img {
|
||||
width: min(720px, 88vw);
|
||||
height: auto;
|
||||
filter: drop-shadow(0 0 28px rgba(159, 95, 255, 0.45));
|
||||
}
|
||||
|
||||
.video-card {
|
||||
width: min(940px, 92vw);
|
||||
margin: clamp(0.75rem, 2vw, 1.35rem) auto clamp(1.6rem, 3vw, 2.25rem);
|
||||
padding: clamp(0.45rem, 1vw, 0.75rem);
|
||||
border: 1px solid var(--border-purple);
|
||||
border-radius: 24px;
|
||||
background: linear-gradient(180deg, rgba(28, 10, 72, 0.78), rgba(12, 4, 38, 0.84));
|
||||
box-shadow:
|
||||
var(--glow-purple),
|
||||
inset 0 0 38px rgba(255, 255, 255, 0.05);
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
.video-card video {
|
||||
display: block;
|
||||
width: 100%;
|
||||
aspect-ratio: 16 / 9;
|
||||
border-radius: 16px;
|
||||
background: #090019;
|
||||
}
|
||||
|
||||
.intro {
|
||||
width: min(820px, 88vw);
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.intro p {
|
||||
margin: 0;
|
||||
color: var(--color-lavender);
|
||||
font-size: clamp(1.2rem, 2.2vw, 2rem);
|
||||
line-height: 1.45;
|
||||
letter-spacing: 0;
|
||||
text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.cta-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 0.8rem;
|
||||
margin-top: clamp(1.4rem, 3vw, 2rem);
|
||||
}
|
||||
|
||||
.button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 2.8rem;
|
||||
padding: 0.78rem 1.15rem;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 999px;
|
||||
font-size: 1rem;
|
||||
font-weight: 750;
|
||||
line-height: 1;
|
||||
letter-spacing: 0;
|
||||
text-decoration: none;
|
||||
transition:
|
||||
transform 160ms ease,
|
||||
border-color 160ms ease,
|
||||
background-color 160ms ease,
|
||||
box-shadow 160ms ease;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.button-primary {
|
||||
color: #06121a;
|
||||
background: var(--color-cyan-accent);
|
||||
box-shadow: 0 0 24px rgba(67, 216, 255, 0.28);
|
||||
}
|
||||
|
||||
.button-secondary {
|
||||
color: var(--color-lavender);
|
||||
border-color: rgba(241, 231, 255, 0.34);
|
||||
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 {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
clip-path: inset(50%);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 3px solid var(--color-cyan-accent);
|
||||
outline-offset: 4px;
|
||||
}
|
||||
|
||||
.error-page {
|
||||
min-height: 100svh;
|
||||
display: grid;
|
||||
place-content: center;
|
||||
gap: 1rem;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
background: var(--color-bg-space);
|
||||
}
|
||||
|
||||
.error-page h1,
|
||||
.error-page p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.landing-page {
|
||||
background-attachment: scroll;
|
||||
}
|
||||
|
||||
.hero {
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.hero-logo img {
|
||||
width: min(86vw, 520px);
|
||||
}
|
||||
|
||||
.video-card {
|
||||
width: 92vw;
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
.video-card video {
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.intro {
|
||||
width: min(34rem, 88vw);
|
||||
}
|
||||
|
||||
.intro p {
|
||||
font-size: clamp(1.12rem, 5vw, 1.5rem);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 440px) {
|
||||
.cta-row {
|
||||
width: min(19rem, 92vw);
|
||||
}
|
||||
|
||||
.button {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.001ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
scroll-behavior: auto !important;
|
||||
transition-duration: 0.001ms !important;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user