mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
* feat: general-purpose skills with @-mention composition and user import
Lift skills from "one mode-bound skill per project" to a generic capability
the user can compose per turn:
- Daemon: scan multiple skill roots (user-skills under runtime data, then
the bundled `skills/`); user-imported skills can shadow built-ins by id.
- New `POST /api/skills/import` and `DELETE /api/skills/:id` endpoints,
with CONFLICT/BAD_REQUEST/NOT_FOUND error codes and built-in delete
protection.
- ChatRequest gains `skillIds: string[]`; the chat run concatenates each
picked skill's body (and merges craftRequires) into the system prompt
for that turn only — the project's persistent `skillId` is untouched.
- Web composer: `@` popover now lists skills alongside project files;
picks render as removable chips above the textarea and ride along with
the request as `skillIds`.
- Settings → Library: import form (name/description/triggers/body),
per-card delete for user skills, "user" origin badge.
* chore(web): drop welcome pet teaser + add ds→prompt-template mapping util
- SettingsDialog: remove the inline pet adoption teaser from the welcome
panel so the first-run modal stays focused on configuration.
- New `inferPromptTemplateCategoriesForDs(ds)` helper that maps a design
system's authored metadata to prompt-template gallery categories.
Imported by the design-system gallery wiring on a sibling branch; no
callers in this branch yet.
* feat: split skills/design-templates and add finalize-design API
Phase 0 of the skills/design-templates refactor (specs/current/
skills-and-design-templates.md):
- Move ~104 rendering catalogue entries from skills/ to design-templates/
and keep skills/ for the small set of functional skills that *do work*
on user input (utilities, briefs, packagers).
- Add design-templates/AGENTS.md and skills/AGENTS.md describing the
contract, and a brand-agnostic craft/ surface for opt-in craft rules.
- Daemon: add DESIGN_TEMPLATES_DIR / USER_DESIGN_TEMPLATES_DIR roots and
an /api/design-templates surface mirroring /api/skills. Asset/example
routes still span both registries so existing srcdoc URLs keep
resolving across the rename.
- Web: split LibrarySection into SkillsSection + DesignSystemsSection,
rename the EntryView "Examples" tab to "Templates", and update locales
+ the New-project picker accordingly.
Adds the finalize-design endpoint:
- New apps/daemon/src/finalize-design.ts and packages/contracts/src/api/
finalize.ts — one-shot synthesis of a project's transcript + active
design system + current artifact into <projectDir>/DESIGN.md via the
Anthropic Messages API. Per-project .finalize.lock mirrors the
transcript-export hygiene from PR #493; provider credentials are not
persisted by the daemon.
Other supporting changes:
- README + AGENTS.md updates to document the new directory split and
craft/ surface, plus i18n strings across 13 locales.
- Test refactors and new coverage (finalize-design, runs, sidecar
server, plus refreshed daemon integration tests).
- .gitignore: scope the *.exe ignore to /OpenDesign.exe so legitimate
vendor binaries are no longer hidden.
* fix(merge): move clinical-case-report to design-templates/
Origin/main added the clinical-case-report skill under skills/ before
the skills/design-templates split landed. Its od.mode is prototype, so
per specs/current/skills-and-design-templates.md it is a design template
and belongs alongside the other rendering catalogue entries — not under
the slimmed-down functional skills/ root. Moving it keeps the EntryView
Templates tab consistent with origin/main's intent.
* feat(skills): curated design/creative catalogue + collapsible Settings rows
Seed ~100 curated design/creative skill stubs under skills/ sourced from
awesome-claude-skills (ComposioHQ) and awesome-agent-skills (VoltAgent).
Each stub carries an od.category tag so the new filter pill row in
Settings -> Skills can group them. The seed script
(scripts/seed-curated-design-skills.ts, pnpm seed:curated-design-skills)
is idempotent: it only creates folders that don't already exist, so
hand-edited stubs are never overwritten.
- Daemon: parse and surface od.category on SkillInfo with a strict slug
normaliser; mirror the field on SkillSummary in @open-design/contracts.
Category is purely a UI hint — system-prompt composition is unchanged.
- Web: rewrite SkillsSection from a left-list / right-detail grid into a
vertical stack of collapsible rows mirroring the External MCP panel
(header always visible with name + mode/source/category pills + per-row
enable toggle; SKILL.md preview, file tree and inline edit form expand
on demand). Add a Category filter row above the list. Reorder Settings
nav so Skills + External MCP sit above the Composio/MCP cluster. Update
composer placeholder/hint across 17 locales to advertise '@ files or
skills · / for commands'.
- Docs: extend skills/AGENTS.md with the curated catalogue rules
(idempotency, category vocabulary, no upstream vendoring).
Co-authored-by: Cursor <cursoragent@cursor.com>
* test(skills): teach localized-content + system-prompt tests about the skills/design-templates split
mrcfps blocking review on PR #955: the skills/design-templates split
(b5993385) moved ~110 SKILL.md entries out of `skills/` and into
`design-templates/`, but two repo-level tests still hard-coded the
single-root layout, so CI gates went red on the merged branch:
- `e2e/tests/localized-content.test.ts` only scanned `<repo>/skills`
while the locale `skillCopy` map keeps id-keyed entries spanning
both roots (ExamplesTab/Templates uses one lookup regardless of
origin). Teach the helper to read both `skills/` and
`design-templates/`, deduplicating ids so the union matches the
localized claim.
- `apps/daemon/tests/prompts/system.test.ts` read
`skills/live-artifact/SKILL.md`, which now lives under
`design-templates/live-artifact/`. Update the absolute path so
composeSystemPrompt's coverage of the live-artifact preamble is
exercised again.
Also enroll the curated design/creative catalogue (PR #955, ~91
stubs sourced from awesome-claude-skills / awesome-agent-skills) in
the DE / FR / RU `_SKILL_IDS_WITH_EN_FALLBACK` lists. The stubs are
English-only by design (frontmatter advertises an upstream URL); the
fallback list is exactly the place to acknowledge "we know this id
exists, English copy is fine here" so the localized-content coverage
gate passes without forcing a translation task per locale.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(skills): always quote frontmatter name so importUserSkill round-trips numeric / boolean ids
mrcfps PR #955 review: `buildSkillMarkdown` emitted `name:
${escapeYamlString(name)}` without quotes, so YAML coerced names
like `123`, `true`, `false`, or `null` into non-string scalars on
re-parse. listSkills() then read `data.name` as a number/boolean
and the import flow's follow-up `findSkillById(skills, result.id)`
missed it, falling into `/api/skills/import`'s "imported skill
could not be re-read" 500 path for those ids.
Switch the emitter to a quoted scalar (`name: "..."`) — the
double-escape already in `escapeYamlString` makes the quoted form
safe — and add a round-trip test covering `123`, `true`, `false`,
`null`, and `0` to lock in the contract.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(web): drop staged-skill chips when the matching @<id> token leaves the draft
mrcfps PR #955 review: `submit()` always forwarded every id in
`stagedSkills`, but that state was only mutated on picker click and
chip removal. Hand-deleting an `@<id>` token from the textarea left
the chip staged, so the request still carried `skillIds: [<id>]` and
the daemon composed a skill the prompt no longer referenced.
Sync the chips with the draft inside `handleChange()` by pruning
`stagedSkills` whenever the new value no longer contains the
`@<id>` token (using the same whitespace boundary as
`removeStagedSkill`'s strip regex). Comment explains why this
prune does not run for `staged` file attachments — users frequently
add files via the upload button without leaving an `@<path>` token,
so a symmetric prune there would erase legitimate uploads.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(daemon): stage @-composed skills' side files alongside the active skill
codex PR #955 review: composing a per-turn `@`-picked skill into the
system prompt appended its body (with the `withSkillRootPreamble`
guidance pointing at relative paths under `<cwd>/.od-skills/<folder>/`)
but never staged the actual folder. `startChatRun` only copied
`activeSkillDir`, so when the project's primary skill was different
(or absent) the composed skill's references/, examples/, and scripts/
files lived only at their absolute repo path — agents that honour
the cwd-relative form (or that don't get `--add-dir`, e.g. Codex with
allowlisted gpt-image projects) couldn't reach them.
Thread the composed skills' dirs out of `composeDaemonSystemPrompt`
as `extraSkillDirs` and stage each one through the same
`stageActiveSkill` API used for the primary skill. Dedupe by folder
basename so a project whose primary skill is also `@`-composed isn't
copied twice. Each preamble already advertises its own folder, so the
prompt and the staged tree stay aligned without further changes.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(web): respect the Library disable toggle in the project @-mention picker
codex PR #955 review: only `EntryView` received `enabledSkills`
(filtered against `config.disabledSkills`); active projects still
got `skills={skills}` raw, so a skill the user disabled in Settings
kept appearing in the project's `@`-mention popover and could ride
along to the daemon via `skillIds`. That broke the Library toggle
for any project opened on the post-split branch.
Compute a functional-skills-only enabled subset
(`enabledFunctionalSkills`) and pass it into `<ProjectView>` instead.
Templates stay separate — design-templates are filtered through their
own `enabledDesignTemplates` memo for the Templates gallery — so
ProjectView's chat composer still only sees skills, never templates,
matching the pre-split prop surface.
Co-authored-by: Cursor <cursoragent@cursor.com>
* test(e2e): mock /api/design-templates for example-use-prompt flow
The Templates tab in EntryView fetches from /api/design-templates after
the skills/design-templates split (specs/current/skills-and-design-templates.md).
The example-use-prompt Playwright scenario only mocked /api/skills, so the
gallery card never appeared and the test timed out waiting on
example-card-warm-utility-example. Serve the same fixture summary on both
endpoints so the templates gallery renders the card the test clicks.
Co-authored-by: Cursor <cursoragent@cursor.com>
* test(tools-pack): create design-templates fixture for resources test
The packaging resources copy now bundles the new design-templates tree
alongside skills (see resources.ts BUNDLED_RESOURCE_TREES). The
copyBundledResourceTrees fixture only created skills, design-systems,
craft, etc., so the recursive copy crashed with ENOENT on
design-templates before it could check the prompt-templates assertion.
Add the missing fixture directory so the test exercises the same set
of resource trees the packaged build does.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(skills): clone built-in side files into the shadow on first edit
mrcfps PR #955 review: editing a built-in skill wrote a USER_SKILLS_DIR
shadow folder that contained only a new SKILL.md. The next listSkills()
pass surfaced the shadow as the active dir, but every side-file resolver
(/api/skills/:id/files, /example, /assets/*, the system-prompt preamble,
and the per-turn cwd staging) reads through skill.dir. With nothing but
SKILL.md in the shadow, the bundled assets/, references/, scripts/, and
examples/ disappeared the moment the user hit save — a built-in like
last30days or live-artifact would break immediately after edit instead
of just having its body overridden.
Teach updateUserSkill() to take a `sourceDir` and clone every entry
except SKILL.md / dotfiles into the shadow on the very first edit. The
shadow stays self-contained, so all the resolvers keep working without
fallback bookkeeping. Subsequent edits detect the existing shadow and
skip the clone, so user tweaks under the side tree survive a re-save.
Wire `sourceDir: skill.dir` from server.ts's PUT /api/skills/:id handler
and add two regression tests:
- 'clones built-in side files into the shadow on the first edit' walks
the file tree after save and asserts assets/template.html, references/
notes.md, and scripts/helper.sh all round-trip from the built-in.
- 'preserves user-edited side files on subsequent edits' edits the
staged assets/template.html, re-saves, and confirms the user content
is still there.
Co-authored-by: Cursor <cursoragent@cursor.com>
* test(e2e): rename home tab from Examples to Templates
The Examples tab was renamed to Templates in EntryView (b5993385's
skills/design-templates split — entry.tabExamples became entry.tabTemplates
and the tab value moved from 'examples' to 'templates'), but
entry-chrome-flows still asserted the old label and testId. Update both.
* fix(skills+web): preserve template body in API mode and dir-based skill delete
Two follow-ups from PR #955 review:
1. ProjectView only received `enabledFunctionalSkills`, but
`composedSystemPrompt()` still resolved `project.skillId` through that
prop and `fetchSkill()`. Projects created from the new
`/api/design-templates` surface keep a template id in `project.skillId`,
so opening one in API mode dropped the template body from the system
prompt and the upstream request ran without the project's primary
template instructions. Now ProjectView takes a separate
`designTemplates` prop (the unfiltered template list, so a
later-disabled template still loads for projects already created from
it) and `composedSystemPrompt()` plus the metadata / `isDeck` lookups
fall back to that list, with `fetchDesignTemplate()` as the body-fetch
fallback to `fetchSkill()`. The chat composer's `@`-picker keeps
receiving only the enabled functional skills.
2. `DELETE /api/skills/:id` used `deleteUserSkill(USER_SKILLS_DIR, skill.id)`
which re-slugified the frontmatter id and removed
`<userSkillsDir>/<slug>/`. That matched the import shape but missed the
install shape — `installFromTarget` writes the folder at
`sanitizeRepoName(url)` (GitHub) or `path.basename(realpath)` (local
symlink), neither of which is guaranteed to equal the slugified
frontmatter `name`. A duplicate `app.delete('/api/skills/:id', ...)`
handler at the install routes never fired because Express resolved the
earlier registration first, leaving the install/uninstall path without
working teardown. The handler now removes `skill.dir` (the absolute
path listSkills already discovered) under a USER_SKILLS_DIR safety
check, using `lstat` + `unlinkSync` so symlinked local installs unlink
cleanly without recursing into the user's source tree. The dead
duplicate handler is removed; `deleteUserSkill` is dropped from the
server.ts import set (still exported and unit-tested in skills.ts).
Regression coverage in `apps/daemon/tests/skills-delete-route.test.ts`
pins both shapes plus the symlink-preserves-source case.
* test(daemon): point hyperframes system-prompt test at design-templates
The merge with main brought in a hyperframes system-prompt test that
reads `skills/hyperframes/SKILL.md`, but this branch's split moved
`hyperframes` into `design-templates/` (same migration as `live-artifact`
already handled above in this file). CI was failing with ENOENT on the
old path.
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
1640 lines
48 KiB
HTML
1640 lines
48 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>8-BIT ORBIT | Pixel Art Presentation Template</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Space+Mono:wght@400;700&family=Tektur:wght@400;500;600;700;800;900&display=swap" rel="stylesheet">
|
|
<style>
|
|
:root {
|
|
--neon-pink: #F0A6CA;
|
|
--neon-cyan: #5EDCF4;
|
|
--neon-yellow: #F4D03F;
|
|
--deep-navy: #0F1B3D;
|
|
--dark-void: #0A0E27;
|
|
--soft-lavender: #E2D5F2;
|
|
--pixel-size: 4px;
|
|
--font-display: 'Tektur', cursive;
|
|
--font-body: 'Chakra Petch', sans-serif;
|
|
--font-mono: 'Space Mono', monospace;
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
html, body {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
font-family: var(--font-body);
|
|
color: var(--dark-void);
|
|
background: var(--dark-void);
|
|
}
|
|
|
|
/* Scroll behavior for slide navigation */
|
|
.deck {
|
|
width: 100%;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.slides-container {
|
|
width: 100%;
|
|
height: 100%;
|
|
transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
|
|
}
|
|
|
|
.slide {
|
|
width: 100%;
|
|
height: 100vh;
|
|
min-height: 100vh;
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 3vh 4vw;
|
|
}
|
|
|
|
/* === GLOBAL ATMOSPHERIC OVERLAYS === */
|
|
|
|
/* Scanlines */
|
|
.scanlines::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
background: repeating-linear-gradient(
|
|
0deg,
|
|
transparent 0px,
|
|
transparent 2px,
|
|
rgba(10, 14, 39, 0.04) 2px,
|
|
rgba(10, 14, 39, 0.04) 4px
|
|
);
|
|
pointer-events: none;
|
|
z-index: 50;
|
|
mix-blend-mode: multiply;
|
|
}
|
|
|
|
/* Grain / Noise */
|
|
.grain::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
|
opacity: 0.035;
|
|
pointer-events: none;
|
|
z-index: 49;
|
|
}
|
|
|
|
/* CRT vignette glow */
|
|
.crt-glow::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
background: radial-gradient(ellipse at center, transparent 50%, rgba(10, 14, 39, 0.25) 100%);
|
|
pointer-events: none;
|
|
z-index: 51;
|
|
}
|
|
|
|
/* Pixel grid background pattern */
|
|
.bg-grid {
|
|
background-color: var(--dark-void);
|
|
background-image:
|
|
linear-gradient(rgba(94, 220, 244, 0.07) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(94, 220, 244, 0.07) 1px, transparent 1px);
|
|
background-size: 40px 40px;
|
|
}
|
|
|
|
.bg-grid-pink {
|
|
background-color: var(--neon-pink);
|
|
background-image:
|
|
linear-gradient(rgba(15, 27, 61, 0.06) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(15, 27, 61, 0.06) 1px, transparent 1px);
|
|
background-size: 40px 40px;
|
|
}
|
|
|
|
.bg-grid-cyan {
|
|
background-color: var(--neon-cyan);
|
|
background-image:
|
|
linear-gradient(rgba(15, 27, 61, 0.08) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(15, 27, 61, 0.08) 1px, transparent 1px);
|
|
background-size: 40px 40px;
|
|
}
|
|
|
|
.bg-grid-lavender {
|
|
background-color: var(--soft-lavender);
|
|
background-image:
|
|
linear-gradient(rgba(15, 27, 61, 0.05) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(15, 27, 61, 0.05) 1px, transparent 1px);
|
|
background-size: 40px 40px;
|
|
}
|
|
|
|
/* Moving starfield for dark slides */
|
|
.starfield {
|
|
position: absolute;
|
|
inset: 0;
|
|
overflow: hidden;
|
|
z-index: 1;
|
|
}
|
|
|
|
.starfield .star {
|
|
position: absolute;
|
|
width: 4px;
|
|
height: 4px;
|
|
background: var(--neon-cyan);
|
|
opacity: 0.6;
|
|
animation: twinkle 3s infinite ease-in-out;
|
|
}
|
|
|
|
.starfield .star:nth-child(2n) { background: var(--neon-yellow); }
|
|
.starfield .star:nth-child(3n) { background: var(--neon-pink); }
|
|
.starfield .star:nth-child(4n) { width: 6px; height: 6px; }
|
|
|
|
@keyframes twinkle {
|
|
0%, 100% { opacity: 0.3; transform: scale(1); }
|
|
50% { opacity: 0.9; transform: scale(1.3); }
|
|
}
|
|
|
|
/* Floating pixel particles */
|
|
.pixel-particles {
|
|
position: absolute;
|
|
inset: 0;
|
|
overflow: hidden;
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.pixel-particles .p {
|
|
position: absolute;
|
|
width: 8px;
|
|
height: 8px;
|
|
opacity: 0.4;
|
|
animation: float 8s infinite ease-in-out;
|
|
}
|
|
|
|
@keyframes float {
|
|
0%, 100% { transform: translateY(0) rotate(0deg); }
|
|
50% { transform: translateY(-30px) rotate(90deg); }
|
|
}
|
|
|
|
/* === PIXEL UI COMPONENTS === */
|
|
|
|
/* Pixel border effect */
|
|
.pixel-box {
|
|
position: relative;
|
|
background: var(--deep-navy);
|
|
color: white;
|
|
}
|
|
|
|
.pixel-box::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: -4px;
|
|
background: var(--neon-cyan);
|
|
z-index: -1;
|
|
clip-path: polygon(
|
|
0 4px, 4px 4px, 4px 0,
|
|
calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
|
|
100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
|
|
4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)
|
|
);
|
|
}
|
|
|
|
.pixel-box.yellow::before { background: var(--neon-yellow); }
|
|
.pixel-box.pink::before { background: var(--neon-pink); }
|
|
|
|
/* Pixel button */
|
|
.pixel-btn {
|
|
display: inline-block;
|
|
font-family: var(--font-display);
|
|
font-weight: 700;
|
|
font-size: 1rem;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
padding: 16px 36px;
|
|
background: var(--neon-cyan);
|
|
color: var(--deep-navy);
|
|
border: none;
|
|
cursor: pointer;
|
|
position: relative;
|
|
box-shadow:
|
|
4px 0 0 0 var(--deep-navy),
|
|
0 4px 0 0 var(--deep-navy),
|
|
4px 4px 0 0 var(--deep-navy),
|
|
8px 4px 0 0 var(--neon-yellow),
|
|
4px 8px 0 0 var(--neon-yellow),
|
|
8px 8px 0 0 var(--neon-yellow);
|
|
transition: transform 0.1s, box-shadow 0.1s;
|
|
}
|
|
|
|
.pixel-btn:hover {
|
|
transform: translate(2px, 2px);
|
|
box-shadow:
|
|
2px 0 0 0 var(--deep-navy),
|
|
0 2px 0 0 var(--deep-navy),
|
|
2px 2px 0 0 var(--deep-navy),
|
|
4px 2px 0 0 var(--neon-yellow),
|
|
2px 4px 0 0 var(--neon-yellow),
|
|
4px 4px 0 0 var(--neon-yellow);
|
|
}
|
|
|
|
.pixel-btn.pink-btn {
|
|
background: var(--neon-pink);
|
|
box-shadow:
|
|
4px 0 0 0 var(--deep-navy),
|
|
0 4px 0 0 var(--deep-navy),
|
|
4px 4px 0 0 var(--deep-navy),
|
|
8px 4px 0 0 var(--neon-cyan),
|
|
4px 8px 0 0 var(--neon-cyan),
|
|
8px 8px 0 0 var(--neon-cyan);
|
|
}
|
|
|
|
/* Pixel text shadow like the reference image */
|
|
.pixel-hero-text {
|
|
font-family: var(--font-display);
|
|
font-weight: 900;
|
|
font-size: clamp(3rem, 10vw, 8rem);
|
|
line-height: 1.05;
|
|
color: var(--neon-cyan);
|
|
text-shadow:
|
|
4px 4px 0 var(--neon-yellow),
|
|
8px 8px 0 var(--deep-navy);
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
/* Decorative pixel corners */
|
|
.pixel-corners {
|
|
position: relative;
|
|
}
|
|
|
|
.pixel-corners::before,
|
|
.pixel-corners::after {
|
|
content: "";
|
|
position: absolute;
|
|
width: 24px;
|
|
height: 24px;
|
|
border: 4px solid var(--neon-cyan);
|
|
}
|
|
|
|
.pixel-corners::before {
|
|
top: -8px;
|
|
left: -8px;
|
|
border-right: none;
|
|
border-bottom: none;
|
|
}
|
|
|
|
.pixel-corners::after {
|
|
bottom: -8px;
|
|
right: -8px;
|
|
border-left: none;
|
|
border-top: none;
|
|
}
|
|
|
|
.pixel-corners.yellow-corners::before,
|
|
.pixel-corners.yellow-corners::after { border-color: var(--neon-yellow); }
|
|
|
|
.pixel-corners.pink-corners::before,
|
|
.pixel-corners.pink-corners::after { border-color: var(--neon-pink); }
|
|
|
|
/* Section labels */
|
|
.pixel-label {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.2em;
|
|
text-transform: uppercase;
|
|
color: var(--neon-yellow);
|
|
background: var(--deep-navy);
|
|
padding: 6px 14px;
|
|
display: inline-block;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
/* === SLIDE CONTENT LAYOUTS === */
|
|
|
|
.slide-content {
|
|
position: relative;
|
|
z-index: 10;
|
|
width: 100%;
|
|
max-width: 1200px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
h1, h2, h3, h4 {
|
|
font-family: var(--font-display);
|
|
font-weight: 700;
|
|
line-height: 1.15;
|
|
}
|
|
|
|
h1 { font-size: clamp(2rem, 5vw, 4rem); }
|
|
h2 { font-size: clamp(1.5rem, 3.5vw, 2.8rem); }
|
|
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
|
|
p, li {
|
|
font-family: var(--font-body);
|
|
font-size: clamp(0.9rem, 1.2vw, 1.15rem);
|
|
line-height: 1.7;
|
|
font-weight: 400;
|
|
}
|
|
|
|
/* === NAVIGATION === */
|
|
.nav-dots {
|
|
position: fixed;
|
|
right: 24px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
z-index: 100;
|
|
}
|
|
|
|
.nav-dot {
|
|
width: 12px;
|
|
height: 12px;
|
|
border: 2px solid var(--neon-cyan);
|
|
background: transparent;
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.nav-dot::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 2px;
|
|
background: var(--neon-cyan);
|
|
opacity: 0;
|
|
transition: opacity 0.3s;
|
|
}
|
|
|
|
.nav-dot.active::after { opacity: 1; }
|
|
.nav-dot:hover { border-color: var(--neon-yellow); }
|
|
|
|
.slide-counter {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
font-family: var(--font-mono);
|
|
font-size: 0.8rem;
|
|
color: var(--neon-cyan);
|
|
background: rgba(10, 14, 39, 0.8);
|
|
padding: 8px 20px;
|
|
z-index: 100;
|
|
letter-spacing: 0.15em;
|
|
}
|
|
|
|
/* === CUSTOM CURSOR AREA === */
|
|
.deck {
|
|
cursor: crosshair;
|
|
}
|
|
|
|
/* === SPECIFIC SLIDE STYLES === */
|
|
|
|
/* Slide 1: Hero */
|
|
.hero-subtitle {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.85rem;
|
|
letter-spacing: 0.3em;
|
|
color: var(--neon-pink);
|
|
text-transform: uppercase;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.hero-tagline {
|
|
font-family: var(--font-body);
|
|
font-size: clamp(0.9rem, 1.5vw, 1.2rem);
|
|
color: rgba(255,255,255,0.7);
|
|
max-width: 500px;
|
|
text-align: center;
|
|
margin-top: 2rem;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.hero-badges {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-top: 3rem;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
.hero-badge {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
padding: 8px 16px;
|
|
border: 2px solid var(--neon-yellow);
|
|
color: var(--neon-yellow);
|
|
}
|
|
|
|
/* Slide 2: Split Intro */
|
|
.split-layout {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 4vw;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
max-width: 1100px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.split-layout { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
.pixel-avatar-zone {
|
|
width: 100%;
|
|
aspect-ratio: 1;
|
|
max-width: 380px;
|
|
margin: 0 auto;
|
|
background: var(--deep-navy);
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.pixel-avatar-zone::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
background:
|
|
repeating-linear-gradient(
|
|
45deg,
|
|
transparent,
|
|
transparent 10px,
|
|
rgba(94, 220, 244, 0.1) 10px,
|
|
rgba(94, 220, 244, 0.1) 20px
|
|
);
|
|
}
|
|
|
|
.pixel-face {
|
|
width: 120px;
|
|
height: 120px;
|
|
position: relative;
|
|
}
|
|
|
|
.pixel-face .eye {
|
|
position: absolute;
|
|
width: 24px;
|
|
height: 24px;
|
|
background: var(--neon-cyan);
|
|
top: 30px;
|
|
}
|
|
|
|
.pixel-face .eye.left { left: 16px; }
|
|
.pixel-face .eye.right { right: 16px; }
|
|
|
|
.pixel-face .mouth {
|
|
position: absolute;
|
|
width: 60px;
|
|
height: 16px;
|
|
background: var(--neon-pink);
|
|
bottom: 24px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
/* Slide 3: Feature Grid */
|
|
.feature-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 24px;
|
|
width: 100%;
|
|
max-width: 1000px;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.feature-grid { grid-template-columns: repeat(2, 1fr); }
|
|
}
|
|
|
|
@media (max-width: 500px) {
|
|
.feature-grid { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
.feature-card {
|
|
background: rgba(255,255,255,0.15);
|
|
backdrop-filter: blur(8px);
|
|
padding: 32px 24px;
|
|
text-align: center;
|
|
position: relative;
|
|
border: 2px solid rgba(15, 27, 61, 0.2);
|
|
}
|
|
|
|
.feature-card::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: -2px;
|
|
left: -2px;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-top: 4px solid var(--deep-navy);
|
|
border-left: 4px solid var(--deep-navy);
|
|
}
|
|
|
|
.feature-card::after {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: -2px;
|
|
right: -2px;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-bottom: 4px solid var(--deep-navy);
|
|
border-right: 4px solid var(--deep-navy);
|
|
}
|
|
|
|
.feature-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
margin: 0 auto 16px;
|
|
position: relative;
|
|
}
|
|
|
|
.feature-icon.cube {
|
|
background: var(--deep-navy);
|
|
box-shadow: 6px 6px 0 var(--neon-yellow);
|
|
}
|
|
|
|
.feature-icon.diamond {
|
|
background: var(--neon-cyan);
|
|
transform: rotate(45deg);
|
|
width: 36px;
|
|
height: 36px;
|
|
margin-bottom: 22px;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.feature-icon.cross {
|
|
background: var(--neon-pink);
|
|
position: relative;
|
|
}
|
|
|
|
.feature-icon.cross::before,
|
|
.feature-icon.cross::after {
|
|
content: "";
|
|
position: absolute;
|
|
background: var(--deep-navy);
|
|
}
|
|
|
|
.feature-icon.cross::before { inset: 10px 4px; }
|
|
.feature-icon.cross::after { inset: 4px 10px; }
|
|
|
|
.feature-icon.circle {
|
|
border: 6px solid var(--neon-yellow);
|
|
border-radius: 0; /* pixel circle = square with careful shading? actually keep square for pixel aesthetic */
|
|
background: transparent;
|
|
position: relative;
|
|
}
|
|
|
|
.feature-icon.circle::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 8px;
|
|
background: var(--neon-yellow);
|
|
}
|
|
|
|
.feature-card h3 {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 8px;
|
|
color: var(--deep-navy);
|
|
}
|
|
|
|
.feature-card p {
|
|
font-size: 0.85rem;
|
|
color: rgba(15, 27, 61, 0.75);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Slide 4 & 5: Charts */
|
|
.chart-slide-layout {
|
|
width: 100%;
|
|
max-width: 900px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.pixel-chart-title {
|
|
text-align: center;
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.pixel-chart-title h2 {
|
|
color: var(--neon-cyan);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.pixel-chart-title .subtitle {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.8rem;
|
|
color: var(--neon-pink);
|
|
letter-spacing: 0.15em;
|
|
}
|
|
|
|
/* Bar Chart */
|
|
.pixel-bar-chart {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
gap: 24px;
|
|
height: 320px;
|
|
padding: 0 20px;
|
|
position: relative;
|
|
}
|
|
|
|
.pixel-bar-chart::before {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: var(--neon-cyan);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.chart-bar-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex: 1;
|
|
max-width: 100px;
|
|
}
|
|
|
|
.chart-bar {
|
|
width: 100%;
|
|
background: var(--neon-cyan);
|
|
position: relative;
|
|
box-shadow: 4px 0 0 0 var(--deep-navy), 0 4px 0 0 var(--deep-navy), 4px 4px 0 0 var(--deep-navy);
|
|
transition: height 1s cubic-bezier(0.22, 1, 0.36, 1);
|
|
}
|
|
|
|
.chart-bar.alt { background: var(--neon-pink); }
|
|
.chart-bar.alt2 { background: var(--neon-yellow); }
|
|
|
|
.chart-bar-label {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.7rem;
|
|
color: rgba(255,255,255,0.8);
|
|
text-align: center;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.chart-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
color: var(--neon-yellow);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* Horizontal Bar Chart */
|
|
.pixel-hbar-chart {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.hbar-row {
|
|
display: grid;
|
|
grid-template-columns: 120px 1fr 50px;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.hbar-label {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.75rem;
|
|
color: var(--deep-navy);
|
|
text-align: right;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.hbar-track {
|
|
height: 32px;
|
|
background: rgba(15, 27, 61, 0.1);
|
|
position: relative;
|
|
}
|
|
|
|
.hbar-fill {
|
|
height: 100%;
|
|
background: var(--deep-navy);
|
|
position: relative;
|
|
box-shadow: 4px 4px 0 var(--neon-yellow);
|
|
transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
|
|
}
|
|
|
|
.hbar-fill.alt { background: var(--neon-cyan); box-shadow: 4px 4px 0 var(--deep-navy); }
|
|
.hbar-fill.alt2 { background: var(--neon-pink); box-shadow: 4px 4px 0 var(--deep-navy); }
|
|
|
|
.hbar-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.8rem;
|
|
font-weight: 700;
|
|
color: var(--deep-navy);
|
|
}
|
|
|
|
/* Slide 6: Timeline */
|
|
.timeline-container {
|
|
width: 100%;
|
|
max-width: 900px;
|
|
position: relative;
|
|
}
|
|
|
|
.timeline-line {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 4px;
|
|
background: repeating-linear-gradient(
|
|
to bottom,
|
|
var(--deep-navy) 0px,
|
|
var(--deep-navy) 16px,
|
|
transparent 16px,
|
|
transparent 24px
|
|
);
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.timeline-events {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 32px;
|
|
position: relative;
|
|
}
|
|
|
|
.timeline-event {
|
|
display: grid;
|
|
grid-template-columns: 1fr 60px 1fr;
|
|
align-items: center;
|
|
gap: 24px;
|
|
}
|
|
|
|
.timeline-event:nth-child(even) .timeline-text { grid-column: 3; text-align: left; }
|
|
.timeline-event:nth-child(even) .timeline-spacer { grid-column: 2; }
|
|
.timeline-event:nth-child(even) .timeline-empty { grid-column: 1; }
|
|
|
|
.timeline-event:nth-child(odd) .timeline-text { grid-column: 1; text-align: right; }
|
|
.timeline-event:nth-child(odd) .timeline-spacer { grid-column: 2; }
|
|
.timeline-event:nth-child(odd) .timeline-empty { grid-column: 3; }
|
|
|
|
.timeline-node {
|
|
width: 24px;
|
|
height: 24px;
|
|
background: var(--neon-cyan);
|
|
border: 4px solid var(--deep-navy);
|
|
justify-self: center;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.timeline-node.active { background: var(--neon-yellow); }
|
|
|
|
.timeline-text h4 {
|
|
font-size: 1rem;
|
|
color: var(--deep-navy);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.timeline-text p {
|
|
font-size: 0.85rem;
|
|
color: rgba(15, 27, 61, 0.7);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.timeline-text .date {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.7rem;
|
|
color: var(--neon-cyan);
|
|
background: var(--deep-navy);
|
|
display: inline-block;
|
|
padding: 2px 10px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
.timeline-event {
|
|
grid-template-columns: 40px 1fr !important;
|
|
}
|
|
.timeline-event .timeline-empty { display: none; }
|
|
.timeline-event .timeline-text { grid-column: 2 !important; text-align: left !important; }
|
|
.timeline-line { left: 20px; }
|
|
.timeline-node { justify-self: start; }
|
|
}
|
|
|
|
/* Slide 7: Stats */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 32px;
|
|
width: 100%;
|
|
max-width: 900px;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
.stats-grid { grid-template-columns: repeat(2, 1fr); }
|
|
}
|
|
|
|
@media (max-width: 400px) {
|
|
.stats-grid { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
.stat-block {
|
|
text-align: center;
|
|
padding: 32px 16px;
|
|
background: rgba(94, 220, 244, 0.08);
|
|
border: 2px solid rgba(94, 220, 244, 0.2);
|
|
position: relative;
|
|
}
|
|
|
|
.stat-block::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: -2px;
|
|
left: -2px;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-top: 4px solid var(--neon-cyan);
|
|
border-left: 4px solid var(--neon-cyan);
|
|
}
|
|
|
|
.stat-block::after {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: -2px;
|
|
right: -2px;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-bottom: 4px solid var(--neon-cyan);
|
|
border-right: 4px solid var(--neon-cyan);
|
|
}
|
|
|
|
.stat-number {
|
|
font-family: var(--font-display);
|
|
font-size: clamp(2rem, 4vw, 3.5rem);
|
|
font-weight: 900;
|
|
color: var(--neon-cyan);
|
|
line-height: 1;
|
|
margin-bottom: 8px;
|
|
text-shadow: 3px 3px 0 var(--deep-navy);
|
|
}
|
|
|
|
.stat-label {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: var(--neon-pink);
|
|
}
|
|
|
|
/* Slide 8: Quote */
|
|
.quote-container {
|
|
max-width: 700px;
|
|
text-align: center;
|
|
position: relative;
|
|
padding: 48px;
|
|
}
|
|
|
|
.quote-mark {
|
|
font-family: var(--font-display);
|
|
font-size: 8rem;
|
|
line-height: 1;
|
|
color: var(--deep-navy);
|
|
opacity: 0.15;
|
|
position: absolute;
|
|
top: -20px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.quote-text {
|
|
font-family: var(--font-body);
|
|
font-size: clamp(1.1rem, 2.2vw, 1.6rem);
|
|
font-weight: 500;
|
|
font-style: italic;
|
|
color: var(--deep-navy);
|
|
line-height: 1.8;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.quote-author {
|
|
margin-top: 2rem;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.8rem;
|
|
color: rgba(15, 27, 61, 0.7);
|
|
letter-spacing: 0.1em;
|
|
}
|
|
|
|
.quote-line {
|
|
width: 60px;
|
|
height: 4px;
|
|
background: var(--neon-yellow);
|
|
margin: 1.5rem auto 0;
|
|
box-shadow: 4px 4px 0 var(--deep-navy);
|
|
}
|
|
|
|
/* Slide 9: Comparison / Cards */
|
|
.tier-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 24px;
|
|
width: 100%;
|
|
max-width: 900px;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
.tier-grid { grid-template-columns: 1fr; max-width: 400px; }
|
|
}
|
|
|
|
.tier-card {
|
|
background: white;
|
|
padding: 36px 28px;
|
|
position: relative;
|
|
text-align: center;
|
|
}
|
|
|
|
.tier-card.featured {
|
|
background: var(--deep-navy);
|
|
color: white;
|
|
transform: translateY(-12px);
|
|
box-shadow: 8px 8px 0 var(--neon-yellow);
|
|
}
|
|
|
|
.tier-card:not(.featured) {
|
|
box-shadow: 6px 6px 0 rgba(15, 27, 61, 0.15);
|
|
}
|
|
|
|
.tier-name {
|
|
font-family: var(--font-display);
|
|
font-size: 1.2rem;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.tier-price {
|
|
font-family: var(--font-mono);
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: var(--neon-cyan);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.tier-price span {
|
|
font-size: 0.8rem;
|
|
color: rgba(15, 27, 61, 0.5);
|
|
}
|
|
|
|
.tier-card.featured .tier-price span { color: rgba(255,255,255,0.5); }
|
|
|
|
.tier-desc {
|
|
font-size: 0.8rem;
|
|
color: rgba(15, 27, 61, 0.6);
|
|
margin-bottom: 20px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.tier-card.featured .tier-desc { color: rgba(255,255,255,0.6); }
|
|
|
|
.tier-features {
|
|
list-style: none;
|
|
text-align: left;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.tier-features li {
|
|
font-size: 0.8rem;
|
|
padding: 6px 0;
|
|
border-bottom: 1px dashed rgba(15, 27, 61, 0.15);
|
|
position: relative;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.tier-features li::before {
|
|
content: "+";
|
|
position: absolute;
|
|
left: 0;
|
|
font-family: var(--font-mono);
|
|
color: var(--neon-cyan);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.tier-card.featured .tier-features li { border-color: rgba(255,255,255,0.1); }
|
|
|
|
/* Slide 10: CTA */
|
|
.cta-content {
|
|
text-align: center;
|
|
max-width: 600px;
|
|
}
|
|
|
|
.cta-content h2 {
|
|
font-size: clamp(2rem, 5vw, 3.5rem);
|
|
color: var(--neon-cyan);
|
|
margin-bottom: 1rem;
|
|
text-shadow: 4px 4px 0 var(--deep-navy), 8px 8px 0 var(--neon-yellow);
|
|
}
|
|
|
|
.cta-content p {
|
|
color: rgba(255,255,255,0.7);
|
|
margin-bottom: 2.5rem;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.cta-buttons {
|
|
display: flex;
|
|
gap: 20px;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Decorative pixel landscape at bottom of CTA */
|
|
.pixel-landscape {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 120px;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
gap: 0;
|
|
z-index: 2;
|
|
opacity: 0.3;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.mountain {
|
|
background: var(--deep-navy);
|
|
width: 80px;
|
|
position: relative;
|
|
}
|
|
|
|
/* Arrow hints */
|
|
.nav-hint {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
right: 24px;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.65rem;
|
|
color: var(--neon-cyan);
|
|
opacity: 0.5;
|
|
z-index: 100;
|
|
letter-spacing: 0.1em;
|
|
}
|
|
|
|
/* Reduced motion */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.slides-container { transition: none; }
|
|
.starfield .star, .pixel-particles .p { animation: none; }
|
|
.chart-bar, .hbar-fill { transition: none; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="deck" id="deck">
|
|
|
|
<!-- Navigation Dots -->
|
|
<div class="nav-dots" id="navDots"></div>
|
|
|
|
<!-- Slide Counter -->
|
|
<div class="slide-counter" id="slideCounter">01 / 10</div>
|
|
|
|
<!-- Keyboard hint -->
|
|
<div class="nav-hint">USE KEYS ↑ ↓</div>
|
|
|
|
<div class="slides-container" id="slidesContainer">
|
|
|
|
<!-- ========== SLIDE 1: HERO ========== -->
|
|
<section class="slide bg-grid scanlines grain crt-glow" data-slide="1">
|
|
<div class="starfield" id="starfield1"></div>
|
|
<div class="pixel-particles" id="particles1"></div>
|
|
<div class="slide-content" style="z-index:10;">
|
|
<div class="hero-subtitle">Pixel Perfect Presentation System</div>
|
|
<h1 class="pixel-hero-text" style="text-align:center;">8-BIT<br>ORBIT</h1>
|
|
<p class="hero-tagline">A retro-futuristic deck engine for bold storytellers. Built for arcades, engineered for boardrooms.</p>
|
|
<div class="hero-badges">
|
|
<span class="hero-badge">10 Slides</span>
|
|
<span class="hero-badge">CSS Native</span>
|
|
<span class="hero-badge">Zero Dependencies</span>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ========== SLIDE 2: SPLIT INTRO ========== -->
|
|
<section class="slide bg-grid-pink scanlines grain" data-slide="2">
|
|
<div class="slide-content">
|
|
<div class="split-layout">
|
|
<div class="pixel-avatar-zone pixel-corners yellow-corners">
|
|
<div class="pixel-face">
|
|
<div class="eye left"></div>
|
|
<div class="eye right"></div>
|
|
<div class="mouth"></div>
|
|
</div>
|
|
</div>
|
|
<div style="max-width: 460px;">
|
|
<span class="pixel-label">Mission Brief</span>
|
|
<h2 style="color: var(--deep-navy); margin-bottom: 1.2rem; font-size: clamp(1.6rem, 3vw, 2.4rem);">Rewiring How We Share Ideas</h2>
|
|
<p style="color: rgba(15,27,61,0.75); margin-bottom: 1rem;">
|
|
Every presentation is an opportunity to transport your audience. This template fuses the tactile nostalgia of 16-bit aesthetics with modern typographic discipline.
|
|
</p>
|
|
<p style="color: rgba(15,27,61,0.75);">
|
|
No canvas limits. No cookie-cutter layouts. Just pure CSS architecture delivering cinematic slide transitions and atmospheric depth through scanlines, grain, and glowing grids.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ========== SLIDE 3: FEATURE GRID ========== -->
|
|
<section class="slide bg-grid-cyan scanlines grain" data-slide="3">
|
|
<div class="slide-content">
|
|
<div style="text-align: center; margin-bottom: 2.5rem;">
|
|
<span class="pixel-label" style="background: var(--deep-navy); color: var(--neon-cyan);">Core Systems</span>
|
|
<h2 style="color: var(--deep-navy);">Four Engines Running</h2>
|
|
</div>
|
|
<div class="feature-grid">
|
|
<div class="feature-card">
|
|
<div class="feature-icon cube"></div>
|
|
<h3>Modular Blocks</h3>
|
|
<p>Swap components without breaking the grid. Every element is containerized and responsive by default.</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<div class="feature-icon diamond"></div>
|
|
<h3>Crisp Vectors</h3>
|
|
<p>All visual effects are native CSS. No image assets required for borders, shadows, or patterns.</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<div class="feature-icon cross"></div>
|
|
<h3>Live Data</h3>
|
|
<p>Chart slides accept dynamic values. Bars grow with CSS transitions triggered on navigation.</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<div class="feature-icon circle"></div>
|
|
<h3>Retro Atmosphere</h3>
|
|
<p>Scanlines, CRT vignettes, starfields, and noise layers create an immersive viewing environment.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ========== SLIDE 4: VERTICAL BAR CHART ========== -->
|
|
<section class="slide bg-grid scanlines grain crt-glow" data-slide="4">
|
|
<div class="starfield" id="starfield4"></div>
|
|
<div class="slide-content">
|
|
<div class="chart-slide-layout">
|
|
<div class="pixel-chart-title">
|
|
<span class="pixel-label">Analytics Core</span>
|
|
<h2>Quarterly Growth Metrics</h2>
|
|
<p class="subtitle">Fiscal performance across four sectors — normalized index</p>
|
|
</div>
|
|
<div class="pixel-bar-chart" id="barChart">
|
|
<div class="chart-bar-group">
|
|
<div class="chart-value" data-value="78">0</div>
|
|
<div class="chart-bar" data-height="78" style="height: 0%;"></div>
|
|
<div class="chart-bar-label">Alpha</div>
|
|
</div>
|
|
<div class="chart-bar-group">
|
|
<div class="chart-value" data-value="92">0</div>
|
|
<div class="chart-bar alt" data-height="92" style="height: 0%;"></div>
|
|
<div class="chart-bar-label">Beta</div>
|
|
</div>
|
|
<div class="chart-bar-group">
|
|
<div class="chart-value" data-value="64">0</div>
|
|
<div class="chart-bar alt2" data-height="64" style="height: 0%;"></div>
|
|
<div class="chart-bar-label">Gamma</div>
|
|
</div>
|
|
<div class="chart-bar-group">
|
|
<div class="chart-value" data-value="85">0</div>
|
|
<div class="chart-bar" data-height="85" style="height: 0%;"></div>
|
|
<div class="chart-bar-label">Delta</div>
|
|
</div>
|
|
<div class="chart-bar-group">
|
|
<div class="chart-value" data-value="56">0</div>
|
|
<div class="chart-bar alt" data-height="56" style="height: 0%;"></div>
|
|
<div class="chart-bar-label">Epsilon</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ========== SLIDE 5: HORIZONTAL BAR CHART ========== -->
|
|
<section class="slide bg-grid-lavender scanlines grain" data-slide="5">
|
|
<div class="slide-content">
|
|
<div class="chart-slide-layout">
|
|
<div class="pixel-chart-title" style="margin-bottom: 2.5rem;">
|
|
<span class="pixel-label" style="background: var(--deep-navy); color: var(--neon-yellow);">System Load</span>
|
|
<h2 style="color: var(--deep-navy);">Resource Allocation</h2>
|
|
<p class="subtitle" style="color: rgba(15,27,61,0.6);">Percentage distribution across operational units</p>
|
|
</div>
|
|
<div class="pixel-hbar-chart" id="hbarChart">
|
|
<div class="hbar-row">
|
|
<div class="hbar-label">Compute</div>
|
|
<div class="hbar-track">
|
|
<div class="hbar-fill" data-width="88" style="width: 0%;"></div>
|
|
</div>
|
|
<div class="hbar-value">88%</div>
|
|
</div>
|
|
<div class="hbar-row">
|
|
<div class="hbar-label">Storage</div>
|
|
<div class="hbar-track">
|
|
<div class="hbar-fill alt" data-width="72" style="width: 0%;"></div>
|
|
</div>
|
|
<div class="hbar-value">72%</div>
|
|
</div>
|
|
<div class="hbar-row">
|
|
<div class="hbar-label">Network</div>
|
|
<div class="hbar-track">
|
|
<div class="hbar-fill alt2" data-width="95" style="width: 0%;"></div>
|
|
</div>
|
|
<div class="hbar-value">95%</div>
|
|
</div>
|
|
<div class="hbar-row">
|
|
<div class="hbar-label">Memory</div>
|
|
<div class="hbar-track">
|
|
<div class="hbar-fill" data-width="61" style="width: 0%;"></div>
|
|
</div>
|
|
<div class="hbar-value">61%</div>
|
|
</div>
|
|
<div class="hbar-row">
|
|
<div class="hbar-label">Graphics</div>
|
|
<div class="hbar-track">
|
|
<div class="hbar-fill alt" data-width="44" style="width: 0%;"></div>
|
|
</div>
|
|
<div class="hbar-value">44%</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ========== SLIDE 6: TIMELINE ========== -->
|
|
<section class="slide bg-grid-pink scanlines grain" data-slide="6">
|
|
<div class="slide-content">
|
|
<div style="text-align: center; margin-bottom: 2.5rem;">
|
|
<span class="pixel-label">Chronology</span>
|
|
<h2 style="color: var(--deep-navy);">Development Roadmap</h2>
|
|
</div>
|
|
<div class="timeline-container">
|
|
<div class="timeline-line"></div>
|
|
<div class="timeline-events">
|
|
<div class="timeline-event">
|
|
<div class="timeline-text">
|
|
<span class="date">Q1 2026</span>
|
|
<h4>Concept & Architecture</h4>
|
|
<p>Wireframes, palette selection, and core grid system established.</p>
|
|
</div>
|
|
<div class="timeline-spacer">
|
|
<div class="timeline-node active"></div>
|
|
</div>
|
|
<div class="timeline-empty"></div>
|
|
</div>
|
|
<div class="timeline-event">
|
|
<div class="timeline-empty"></div>
|
|
<div class="timeline-spacer">
|
|
<div class="timeline-node active"></div>
|
|
</div>
|
|
<div class="timeline-text">
|
|
<span class="date">Q2 2026</span>
|
|
<h4>Asset Generation</h4>
|
|
<p>Pixel components, iconography, and atmospheric effects coded.</p>
|
|
</div>
|
|
</div>
|
|
<div class="timeline-event">
|
|
<div class="timeline-text">
|
|
<span class="date">Q3 2026</span>
|
|
<h4>Data Integration</h4>
|
|
<p>Charting engine, animated counters, and dynamic state binding.</p>
|
|
</div>
|
|
<div class="timeline-spacer">
|
|
<div class="timeline-node"></div>
|
|
</div>
|
|
<div class="timeline-empty"></div>
|
|
</div>
|
|
<div class="timeline-event">
|
|
<div class="timeline-empty"></div>
|
|
<div class="timeline-spacer">
|
|
<div class="timeline-node"></div>
|
|
</div>
|
|
<div class="timeline-text">
|
|
<span class="date">Q4 2026</span>
|
|
<h4>Global Launch</h4>
|
|
<p>Public release with full documentation and community support.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ========== SLIDE 7: STATS / COUNTERS ========== -->
|
|
<section class="slide bg-grid scanlines grain crt-glow" data-slide="7">
|
|
<div class="starfield" id="starfield7"></div>
|
|
<div class="slide-content">
|
|
<div style="text-align: center; margin-bottom: 2.5rem;">
|
|
<span class="pixel-label">Live Telemetry</span>
|
|
<h2 style="color: var(--neon-cyan);">Platform Vitals</h2>
|
|
<p style="color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 0.5rem;">Real-time aggregate figures from active deployments</p>
|
|
</div>
|
|
<div class="stats-grid" id="statsGrid">
|
|
<div class="stat-block">
|
|
<div class="stat-number" data-target="847">0</div>
|
|
<div class="stat-label">Active Worlds</div>
|
|
</div>
|
|
<div class="stat-block">
|
|
<div class="stat-number" data-target="12.4" data-suffix="M">0</div>
|
|
<div class="stat-label">Pixels Rendered</div>
|
|
</div>
|
|
<div class="stat-block">
|
|
<div class="stat-number" data-target="99.9" data-suffix="%">0</div>
|
|
<div class="stat-label">Uptime Score</div>
|
|
</div>
|
|
<div class="stat-block">
|
|
<div class="stat-number" data-target="2048">0</div>
|
|
<div class="stat-label">Max Resolution</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ========== SLIDE 8: QUOTE ========== -->
|
|
<section class="slide bg-grid-cyan scanlines grain" data-slide="8">
|
|
<div class="slide-content">
|
|
<div class="quote-container pixel-corners">
|
|
<div class="quote-mark">"</div>
|
|
<p class="quote-text">
|
|
The best presentations do not merely inform. They immerse. They transform the conference room into an arcade cabinet where every slide is a new level waiting to be unlocked.
|
|
</p>
|
|
<div class="quote-line"></div>
|
|
<div class="quote-author">— Lead Creative Technologist, Studio Orbital</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ========== SLIDE 9: PRICING TIERS ========== -->
|
|
<section class="slide bg-grid-lavender scanlines grain" data-slide="9">
|
|
<div class="slide-content">
|
|
<div style="text-align: center; margin-bottom: 2.5rem;">
|
|
<span class="pixel-label" style="background: var(--deep-navy); color: var(--neon-pink);">Access Tiers</span>
|
|
<h2 style="color: var(--deep-navy);">Choose Your Loadout</h2>
|
|
</div>
|
|
<div class="tier-grid">
|
|
<div class="tier-card">
|
|
<div class="tier-name">Rookie</div>
|
|
<div class="tier-price">$0<span>/mo</span></div>
|
|
<div class="tier-desc">For solo explorers testing the waters.</div>
|
|
<ul class="tier-features">
|
|
<li>5 slide maximum</li>
|
|
<li>Standard grid themes</li>
|
|
<li>Community support</li>
|
|
<li>Static export only</li>
|
|
</ul>
|
|
<button class="pixel-btn" style="font-size: 0.8rem; padding: 12px 24px;">Select</button>
|
|
</div>
|
|
<div class="tier-card featured">
|
|
<div class="tier-name" style="color: var(--neon-yellow);">Arcade</div>
|
|
<div class="tier-price" style="color: var(--neon-pink);">$29<span>/mo</span></div>
|
|
<div class="tier-desc">Serious builders need serious tooling.</div>
|
|
<ul class="tier-features">
|
|
<li>Unlimited slides</li>
|
|
<li>All atmospheric packs</li>
|
|
<li>Live data binding</li>
|
|
<li>Priority rendering</li>
|
|
<li>Custom cursor sets</li>
|
|
</ul>
|
|
<button class="pixel-btn pink-btn" style="font-size: 0.8rem; padding: 12px 24px;">Select</button>
|
|
</div>
|
|
<div class="tier-card">
|
|
<div class="tier-name">Boss</div>
|
|
<div class="tier-price">$79<span>/mo</span></div>
|
|
<div class="tier-desc">Enterprise-grade control and compliance.</div>
|
|
<ul class="tier-features">
|
|
<li>Everything in Arcade</li>
|
|
<li>White-label export</li>
|
|
<li>SSO & audit logs</li>
|
|
<li>Dedicated pipeline</li>
|
|
</ul>
|
|
<button class="pixel-btn" style="font-size: 0.8rem; padding: 12px 24px;">Select</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ========== SLIDE 10: CLOSING CTA ========== -->
|
|
<section class="slide bg-grid scanlines grain crt-glow" data-slide="10">
|
|
<div class="starfield" id="starfield10"></div>
|
|
<div class="pixel-particles" id="particles10"></div>
|
|
<div class="pixel-landscape" id="landscape10"></div>
|
|
<div class="slide-content" style="z-index:10;">
|
|
<div class="cta-content">
|
|
<h2>Ready Player<br>One?</h2>
|
|
<p>Deploy your first 8-BIT ORBIT deck in under sixty seconds. No dependencies. No friction. Just pure presentation power.</p>
|
|
<div class="cta-buttons">
|
|
<button class="pixel-btn">Initialize Deck</button>
|
|
<button class="pixel-btn pink-btn">View Documentation</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
(function() {
|
|
const totalSlides = 10;
|
|
let currentSlide = 0;
|
|
const container = document.getElementById('slidesContainer');
|
|
const counter = document.getElementById('slideCounter');
|
|
const dotsContainer = document.getElementById('navDots');
|
|
|
|
// Generate nav dots
|
|
for (let i = 0; i < totalSlides; i++) {
|
|
const dot = document.createElement('div');
|
|
dot.className = 'nav-dot' + (i === 0 ? ' active' : '');
|
|
dot.addEventListener('click', () => goToSlide(i));
|
|
dotsContainer.appendChild(dot);
|
|
}
|
|
|
|
const dots = document.querySelectorAll('.nav-dot');
|
|
|
|
function updateUI() {
|
|
container.style.transform = `translateY(-${currentSlide * 100}vh)`;
|
|
counter.textContent = String(currentSlide + 1).padStart(2, '0') + ' / ' + totalSlides;
|
|
dots.forEach((d, i) => d.classList.toggle('active', i === currentSlide));
|
|
triggerAnimations(currentSlide);
|
|
}
|
|
|
|
function goToSlide(index) {
|
|
if (index < 0 || index >= totalSlides) return;
|
|
currentSlide = index;
|
|
updateUI();
|
|
}
|
|
|
|
function nextSlide() { goToSlide(currentSlide + 1); }
|
|
function prevSlide() { goToSlide(currentSlide - 1); }
|
|
|
|
document.addEventListener('keydown', (e) => {
|
|
if (e.key === 'ArrowDown' || e.key === 'ArrowRight' || e.key === ' ') {
|
|
e.preventDefault();
|
|
nextSlide();
|
|
} else if (e.key === 'ArrowUp' || e.key === 'ArrowLeft') {
|
|
e.preventDefault();
|
|
prevSlide();
|
|
} else if (e.key === 'Home') {
|
|
e.preventDefault();
|
|
goToSlide(0);
|
|
} else if (e.key === 'End') {
|
|
e.preventDefault();
|
|
goToSlide(totalSlides - 1);
|
|
}
|
|
});
|
|
|
|
// Touch / swipe support
|
|
let touchStartY = 0;
|
|
document.addEventListener('touchstart', (e) => { touchStartY = e.touches[0].clientY; });
|
|
document.addEventListener('touchend', (e) => {
|
|
const diff = touchStartY - e.changedTouches[0].clientY;
|
|
if (Math.abs(diff) > 50) {
|
|
diff > 0 ? nextSlide() : prevSlide();
|
|
}
|
|
});
|
|
|
|
// Wheel support with debounce
|
|
let wheelLock = false;
|
|
document.addEventListener('wheel', (e) => {
|
|
if (wheelLock) return;
|
|
wheelLock = true;
|
|
e.deltaY > 0 ? nextSlide() : prevSlide();
|
|
setTimeout(() => wheelLock = false, 800);
|
|
}, { passive: true });
|
|
|
|
// ===== ANIMATION TRIGGERS =====
|
|
function triggerAnimations(slideIndex) {
|
|
// Slide 4: Vertical bar chart
|
|
if (slideIndex === 3) {
|
|
document.querySelectorAll('#barChart .chart-bar').forEach((bar, i) => {
|
|
const h = bar.dataset.height;
|
|
setTimeout(() => {
|
|
bar.style.height = h + '%';
|
|
}, i * 120);
|
|
});
|
|
document.querySelectorAll('#barChart .chart-value').forEach((val, i) => {
|
|
const target = parseInt(val.dataset.value);
|
|
setTimeout(() => animateNumber(val, target, '', 800), i * 120);
|
|
});
|
|
} else {
|
|
document.querySelectorAll('#barChart .chart-bar').forEach(bar => bar.style.height = '0%');
|
|
}
|
|
|
|
// Slide 5: Horizontal bar chart
|
|
if (slideIndex === 4) {
|
|
document.querySelectorAll('#hbarChart .hbar-fill').forEach((fill, i) => {
|
|
const w = fill.dataset.width;
|
|
setTimeout(() => { fill.style.width = w + '%'; }, i * 100);
|
|
});
|
|
} else {
|
|
document.querySelectorAll('#hbarChart .hbar-fill').forEach(fill => fill.style.width = '0%');
|
|
}
|
|
|
|
// Slide 7: Stats counters
|
|
if (slideIndex === 6) {
|
|
document.querySelectorAll('#statsGrid .stat-number').forEach((el, i) => {
|
|
const target = parseFloat(el.dataset.target);
|
|
const suffix = el.dataset.suffix || '';
|
|
const isFloat = target % 1 !== 0;
|
|
setTimeout(() => animateNumber(el, target, suffix, 1200, isFloat), i * 150);
|
|
});
|
|
} else {
|
|
document.querySelectorAll('#statsGrid .stat-number').forEach(el => el.textContent = '0');
|
|
}
|
|
}
|
|
|
|
function animateNumber(el, target, suffix, duration, isFloat = false) {
|
|
const start = performance.now();
|
|
function tick(now) {
|
|
const progress = Math.min((now - start) / duration, 1);
|
|
const eased = 1 - Math.pow(1 - progress, 3);
|
|
const current = eased * target;
|
|
el.textContent = (isFloat ? current.toFixed(1) : Math.floor(current)) + suffix;
|
|
if (progress < 1) requestAnimationFrame(tick);
|
|
else el.textContent = (isFloat ? target.toFixed(1) : target) + suffix;
|
|
}
|
|
requestAnimationFrame(tick);
|
|
}
|
|
|
|
// ===== GENERATE STARFIELD =====
|
|
function generateStars(containerId, count = 40) {
|
|
const container = document.getElementById(containerId);
|
|
if (!container) return;
|
|
container.innerHTML = '';
|
|
for (let i = 0; i < count; i++) {
|
|
const star = document.createElement('div');
|
|
star.className = 'star';
|
|
star.style.left = Math.random() * 100 + '%';
|
|
star.style.top = Math.random() * 100 + '%';
|
|
star.style.animationDelay = Math.random() * 3 + 's';
|
|
container.appendChild(star);
|
|
}
|
|
}
|
|
|
|
generateStars('starfield1', 50);
|
|
generateStars('starfield4', 30);
|
|
generateStars('starfield7', 35);
|
|
generateStars('starfield10', 45);
|
|
|
|
// ===== GENERATE FLOATING PARTICLES =====
|
|
function generateParticles(containerId, colors, count = 12) {
|
|
const container = document.getElementById(containerId);
|
|
if (!container) return;
|
|
container.innerHTML = '';
|
|
for (let i = 0; i < count; i++) {
|
|
const p = document.createElement('div');
|
|
p.className = 'p';
|
|
const color = colors[i % colors.length];
|
|
p.style.background = color;
|
|
p.style.left = Math.random() * 100 + '%';
|
|
p.style.top = Math.random() * 100 + '%';
|
|
p.style.animationDelay = Math.random() * 5 + 's';
|
|
p.style.animationDuration = (6 + Math.random() * 6) + 's';
|
|
container.appendChild(p);
|
|
}
|
|
}
|
|
|
|
generateParticles('particles1', ['var(--neon-cyan)', 'var(--neon-pink)', 'var(--neon-yellow)'], 16);
|
|
generateParticles('particles10', ['var(--neon-cyan)', 'var(--neon-pink)', 'var(--neon-yellow)'], 20);
|
|
|
|
// ===== GENERATE PIXEL LANDSCAPE FOR CTA =====
|
|
function generateLandscape() {
|
|
const container = document.getElementById('landscape10');
|
|
if (!container) return;
|
|
const heights = [30, 50, 70, 40, 60, 35, 55, 45, 80, 25, 50, 40];
|
|
heights.forEach((h, i) => {
|
|
const mtn = document.createElement('div');
|
|
mtn.className = 'mountain';
|
|
mtn.style.height = h + 'px';
|
|
mtn.style.width = (60 + (i % 3) * 20) + 'px';
|
|
container.appendChild(mtn);
|
|
});
|
|
}
|
|
generateLandscape();
|
|
|
|
// Initialize
|
|
updateUI();
|
|
})();
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|