StealThis .dev

Bokeh Hero Base

Ambient glowing field inspired by cinematic landing pages.

Open in Lab
canvasvanilla-jscss
Targets: JS HTML

Code

:root {
  --bg: #050608;
  --text: #f4f7fa;
  --muted: #b9c2ce;
  --accent: #3dd6ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 50% 20%, #0a1224 0%, var(--bg) 45%);
  color: var(--text);
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero {
  position: relative;
  min-height: 100vh;
  width: min(92%, 720px);
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 0.8rem;
  z-index: 2;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 5rem);
  line-height: 1;
}

.subtitle {
  margin: 0;
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  color: var(--muted);
}

.actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  color: #041a26;
  background: linear-gradient(120deg, #66f7ff, #8ab7ff);
  cursor: pointer;
  text-decoration: none;
}

.btn.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

@media (max-width: 540px) {
  .actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

Bokeh Hero Base

Ambient glowing field inspired by cinematic landing pages.

Source

  • Repository: libs-gen
  • Original demo id: 00-bokeh-hero-base

Notes

Ambient glowing field inspired by cinematic landing pages.