You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate a one-shot single-file HTML website -- cinematic, self-contained, CodePen/Vercel-ready
build
One-Shot Website Generator
Load the oneshot-website skill for the full generation instructions, theme repertoire, and techniques reference:
skill({ name: "oneshot-website" })
Theme
$ARGUMENTS
If a theme was provided above, use it. It can be one of the preset themes (restaurant, perfume, bookshop, deep-sea, jazz, botanical, mineral, observatory, night-market, distillery, architecture) or any custom concept.
If no theme was provided, pick one from the skill's theme repertoire that would make a strong showcase. Prefer Tier 1 themes for maximum visual impact.
Instructions
Generate the PROMPT.md -- the reproducible one-shot prompt
Follow ALL instructions from PROMPT.md to generate a SINGLE index.html
After generating, open the index.html file for local preview:
Generate immersive, one-shot single-file HTML websites with embedded CSS and JS. No external images. Hostable on CodePen or Vercel. Use for writeup showcases, AI capability demos, and portfolio pieces.
Oneshot Website
Generate a stunning, self-contained single-file HTML website -- fully immersive, scroll-driven, cinematic. No external images, no build step. Drop into CodePen or push to Vercel as-is.
Inspired by high-end digital brand experiences and the kind of creative coding that makes people say "this was done in one shot?"
When to invoke
Use when:
Demonstrating an LLM's creative + technical range for writeups or articles
Creating a stunning demo to embed in a CodePen
Producing a portfolio piece or proof-of-concept landing page
Showing off one-shot generation capabilities
The Generation Prompt
When this skill is invoked, generate the full HTML file using this master approach:
Write complete HTML, CSS, and JavaScript in a single self-contained file for an immersive, cinematic website about [THEME].
The site must feel like a living brand experience -- sections that breathe as you scroll, typography that has weight and presence, and atmosphere you can almost feel.
Theme Selection
If no theme is specified, choose one from the repertoire in references/themes.md that hasn't been recently used. Never default to clockwork, clocks, or time-perception themes.
Recommended defaults (rotate through these):
Elegant restaurant storefront -- dark marble, candlelight, menu sections appearing like courses being served
Luxury perfume house -- mist particles, scent notes drifting, amber and obsidian palette
Antiquarian bookshop at night -- warm amber light, floating text fragments, vellum textures in CSS
Deep sea research station -- bioluminescent creatures via canvas, pressure gauge UI, midnight blue
Jazz club and vinyl lounge -- smoke rings via SVG, waveform visualizations, sepia and amber
Technical Constraints (NON-NEGOTIABLE)
Single file: All HTML, CSS, JS in one .html file
No external images: Use CSS gradients, SVG inline art, Canvas API, or unicode/emoji symbols only
No CDN dependencies for core visuals (Google Fonts via @import is acceptable)
No frameworks: Vanilla JS only. No React, Vue, Alpine, etc.
Static: Must work as a static file (no server-side logic)
Self-hostable: Drop into Vercel as index.html or paste into CodePen
Quality Bar
This is NOT a simple landing page. It should feel like it was commissioned by a world-class brand agency. Include:
Visual craft:
Scroll-triggered reveals with Intersection Observer (not scroll events -- use IO for performance)
Parallax depth on at least 2 layers (background moves slower than foreground)
Typography that has character -- mix of serif and sans, large display type with tight tracking
Color palette of 3-4 tones maximum, applied with intention (not rainbow)
Subtle animated texture or grain overlay via CSS (repeating SVG noise, pseudo-element with opacity)
Interaction:
Cursor that responds subtly (not gimmicky -- a small dot or trail at most)
Hover states that feel intentional (transforms, not just color changes)
At least one section with a scrolling marquee or horizontal text ticker
Navigation that changes opacity/style on scroll
Atmosphere:
Hero section with large, centered typographic statement
At minimum 5 distinct sections with scroll transitions between them
Footer with subtle details (coordinates, a fictional address, a motto in a second language)
A moment of surprise -- one section that does something unexpected (inverted colors, a canvas animation, text that rearranges)
Polish details:
font-display: swap on any web fonts
will-change: transform on animated elements
Smooth scroll behavior on html
Mobile-responsive (flexbox/grid, no fixed px widths on containers)
prefers-reduced-motion media query to disable animations for accessibility
Output Format
Produce two files:
1. PROMPT.md -- the exact one-shot prompt that will be used to generate this site.
2. index.html -- the complete single-file website. Start with <!DOCTYPE html> and end with </html>. No explanation before or after the HTML.
Format of PROMPT.md:
# One-Shot Prompt**Theme**: [theme name]**Generated**: [date]**Model**: [model name and version]## Prompt[The complete verbatim prompt that would reproduce this exact site if fed to any capable LLM fresh]## Notes-[Any notable techniques used]-[Hosting: CodePen / Vercel / local]
Name fictional brands with restraint: evocative, not punny. Think: "Maison Vorieux", "Sublevel 7", "The Meridian Press", not "Tasty Bistro" or "Cool Restaurant".
Hosting
CodePen
Create new Pen
Paste entire contents into the HTML panel
Enable "Full Page" view
Vercel
mkdir my-site &&cd my-site
# save as index.html
vercel --prod
Local preview
open index.html # macOS# or
python3 -m http.server 3000
Example Output Names
The generated site should have a real name. Examples by theme:
A curated set of concepts for oneshot website generation. Each has a distinct visual language, emotional register, and CSS/JS approach.
Tier 1: Highest Visual Impact
Elegant Restaurant (default)
Concept: Fine dining storefront for a Michelin-starred restaurant
Palette: Near-black (#0d0d0d), warm cream (#f5f0e8), gold (#c9a84c), deep burgundy accent
Typography: Cormorant Garamond (display), Inter (body)
Key techniques:
Menu items revealed one by one with IO
A parallax hero with a CSS grain overlay simulating candlelight warmth
Horizontal scroll section for the "tasting menu"
Animated SVG flame or candle in the footer
Luxury Perfume House
Concept: Niche fragrance atelier -- think Diptyque meets A Lab on Fire
Palette: Obsidian (#0a0a0f), amber (#d4a853), mist white (#f0ede8), faint rose
Typography: Playfair Display (display), Raleway (body)
Key techniques:
Canvas particle system simulating mist/smoke drifting upward
Scent "notes" (top/heart/base) revealed on scroll as floating pills
Section that inverts colors when fully in viewport
CSS blurs that shift as you scroll (backdrop-filter manipulation)
Antiquarian Bookshop at Night
Concept: A rare books dealer operating since the 1880s, website as an old leather ledger
Palette: Deep ink (#1a1410), parchment (#e8d9bb), sepia (#8b6340), aged red (#8b2020)
Typography: IM Fell English (display), Literata or Georgia (body)
Key techniques:
CSS texture via repeating SVG paper grain pattern
Book spines as CSS-drawn rectangles in a horizontal ticker
Ink-bleed text reveal animation (clip-path wipe)
Footnote-style hover definitions on certain words
Deep Sea Research Station
Concept: A fictional oceanographic institute operating below the thermocline
Palette: Midnight navy (#050d1a), bioluminescent cyan (#00f5c4), abyssal purple (#1a0a2e), surface foam white
Typography: Space Mono or IBM Plex Mono (monospace UI feel), Lato (body)
Key techniques:
Canvas with slow-drifting bioluminescent particles (sine wave paths)
"Depth meter" sidebar that updates as you scroll
Sonar ping animation using CSS concentric rings
ASCII art section for the "specimen log"
Jazz Club & Vinyl Lounge
Concept: A legendary late-night jazz venue with a curated vinyl collection
Palette: Near-black, bourbon amber (#c17f24), faded cream, a single electric blue accent
Typography: Bebas Neue or Alfa Slab (display), Libre Baskerville (body)
Key techniques:
Canvas waveform visualizer (static, not real audio -- drawn procedurally)
CSS smoke rings via border-radius morph animation
Vinyl record CSS drawing that spins on hover
Set list section with animated "playing now" indicator
Grain/noise texture simulating old film stock
Tier 2: Strong Visual Language
Living Botanical Garden
Concept: A studio selling rare and architectural indoor plants
Palette: Moss (#3d5a3e), cream (#f7f4ed), terracotta (#c47a3d), dark soil (#1f1a14)
Typography: Canela or DM Serif Display (display), DM Sans (body)
Key techniques:
SVG leaf/frond shapes used as dividers, not images
Growth animation -- stems "grow" into viewport using stroke-dashoffset
Earthy color palette transitions between sections
Grid layout for plant specimens with tilt on hover
Crystal & Mineral Specimen House
Concept: A collector's market for rare geological specimens and crystals
Palette: Deep slate (#1a1a2e), amethyst (#7b2d8b), pyrite gold (#c9b03c), rose quartz (#e8b4b8)
Typography: Josefin Sans (display), Nunito (body)
Key techniques:
CSS conic-gradient to simulate crystal facets
Rotating 3D CSS transforms on specimen "cards"
Refraction effect using layered backdrop-filter
Animated shimmer sweep across text headings
Night Sky Observatory
Concept: A remote astronomical observatory turned educational retreat
Palette: Deep space (#080810), constellation silver (#c8d8e8), nebula rose (#8b3a6b), horizon amber
Typography: Orbitron or Exo 2 (display), Source Sans Pro (body)
Key techniques:
Canvas starfield with twinkling (random opacity oscillation)
SVG constellation lines drawn via path animation
"Observation log" section styled as a research journal
Moon phase indicator drawn in CSS
Southeast Asian Night Market
Concept: A hawker market guide and food culture magazine hybrid
Palette: Lantern red (#d4380d), turmeric yellow (#f0a500), night charcoal (#1a1410), white steam
Typography: Noto Sans (multilingual support), Oswald (display)
Key techniques:
Canvas steam particles rising from food sections
Lantern string CSS drawings at the top
Dish cards with a "rating" in a non-English script (CSS-drawn stars)
Scroll-triggered map section using CSS grid to simulate a market layout
Distillery & Whisky House
Concept: A small-batch spirits producer from the Scottish Highlands (or Appalachia)
Palette: Peat dark (#1c120a), copper (#b55a1a), aged oak (#8b6340), water clear
Typography: Freight Display (display), Garamond or EB Garamond (body)
Key techniques:
Copper still drawn entirely in SVG/CSS
Liquid "pour" animation on scroll (clip-path liquid curve)
Flavor wheel drawn as SVG polar chart
Age statement typography -- huge numerals as background texture
Modernist Architecture Studio
Concept: A boutique architecture practice known for light and materiality
Palette: Concrete white (#f0eeec), graphite (#2d2d2d), a single warm accent (clay or brass)
Typography: Helvetica Neue or Inter (everything -- pure modernist)
Key techniques:
Grid-heavy layout with deliberate whitespace
Section dividers as single-pixel horizontal lines
Project cards that expand on hover using CSS grid tricks
Floor plan aesthetics -- thin lines, precise spacing
constio=newIntersectionObserver((entries)=>{entries.forEach(e=>{if(e.isIntersecting){e.target.classList.add('visible');io.unobserve(e.target);// fire once}});},{threshold: 0.15});document.querySelectorAll('.reveal').forEach(el=>io.observe(el));
If you find these types of OpenCode tips handy, please subscribe to https://jpcaparas.medium.com/ for more technical guides in the future.