Lewati ke konten
MarkasUI
Ketik untuk mencari

    Panduan

    MarkasUI

    Form

    Feedback

    Overlay

    Navigasi

    Data

    Section

    Animasi

    Latar

    Tombol

    Template

    Halaman

    Background Beams

    Berkas cahaya tipis melengkung yang mengalir, berdenyut, atau jatuh dan memercik di belakang konten. Murni SVG dan CSS, tanpa JavaScript.

    Light up your launch

    Release notes, waitlists, and changelogs that people actually read.

    Light up your launch

    Release notes, waitlists, and changelogs that people actually read.

    Light up your launch

    Release notes, waitlists, and changelogs that people actually read.

    Light up your launch

    Release notes, waitlists, and changelogs that people actually read.

    Light up your launch

    Release notes, waitlists, and changelogs that people actually read.

    <x-markas.background-beams class="rounded-xl border border-line bg-surface px-6 py-16">
      <div class="grid justify-items-center gap-4 text-center">
        <h2 class="text-4xl font-bold tracking-tight text-ink">
          Light up your launch
        </h2>
        <p class="max-w-72 text-sm text-muted">
          Release notes, waitlists, and changelogs that people actually read.
        </p>
        <x-markas.button>Join the waitlist</x-markas.button>
      </div>
    </x-markas.background-beams>
    import { BackgroundBeams } from "@/components/markas/BackgroundBeams";
    import { Button } from "@/components/markas/Button";
    
    export default function BackgroundBeamsExample() {
      return (
        <BackgroundBeams className="rounded-xl border border-line bg-surface px-6 py-16">
          <div className="grid justify-items-center gap-4 text-center">
            <h2 className="text-4xl font-bold tracking-tight text-ink">
              Light up your launch
            </h2>
            <p className="max-w-72 text-sm text-muted">
              Release notes, waitlists, and changelogs that people actually read.
            </p>
            <Button>Join the waitlist</Button>
          </div>
        </BackgroundBeams>
      );
    }
    <script setup lang="ts">
    import BackgroundBeams from "@/components/markas/BackgroundBeams.vue";
    import Button from "@/components/markas/Button.vue";
    </script>
    
    <template>
      <BackgroundBeams class="rounded-xl border border-line bg-surface px-6 py-16">
        <div class="grid justify-items-center gap-4 text-center">
          <h2 class="text-4xl font-bold tracking-tight text-ink">
            Light up your launch
          </h2>
          <p class="max-w-72 text-sm text-muted">
            Release notes, waitlists, and changelogs that people actually read.
          </p>
          <Button>Join the waitlist</Button>
        </div>
      </BackgroundBeams>
    </template>
    <script lang="ts">
      import BackgroundBeams from "$lib/components/markas/BackgroundBeams.svelte";
      import Button from "$lib/components/markas/Button.svelte";
    </script>
    
    <BackgroundBeams class="rounded-xl border border-line bg-surface px-6 py-16">
      <div class="grid justify-items-center gap-4 text-center">
        <h2 class="text-4xl font-bold tracking-tight text-ink">
          Light up your launch
        </h2>
        <p class="max-w-72 text-sm text-muted">
          Release notes, waitlists, and changelogs that people actually read.
        </p>
        <Button>Join the waitlist</Button>
      </div>
    </BackgroundBeams>
    ---
    import BackgroundBeams from "@/components/markas/BackgroundBeams.astro";
    import Button from "@/components/markas/Button.astro";
    ---
    
    <BackgroundBeams class="rounded-xl border border-line bg-surface px-6 py-16">
      <div class="grid justify-items-center gap-4 text-center">
        <h2 class="text-4xl font-bold tracking-tight text-ink">
          Light up your launch
        </h2>
        <p class="max-w-72 text-sm text-muted">
          Release notes, waitlists, and changelogs that people actually read.
        </p>
        <Button>Join the waitlist</Button>
      </div>
    </BackgroundBeams>
    import { Component } from "@angular/core";
    import { BackgroundBeams } from "./markas/background-beams.component";
    import { Button } from "./markas/button.component";
    
    @Component({
      selector: "markas-example",
      imports: [BackgroundBeams, Button],
      template: `
        <div
          markas-background-beams
          class="rounded-xl border border-line bg-surface px-6 py-16"
        >
          <div class="grid justify-items-center gap-4 text-center">
            <h2 class="text-4xl font-bold tracking-tight text-ink">
              Light up your launch
            </h2>
            <p class="max-w-72 text-sm text-muted">
              Release notes, waitlists, and changelogs that people actually read.
            </p>
            <button markas-button>Join the waitlist</button>
          </div>
        </div>
      `,
    })
    export default class BackgroundBeamsFixture {}

    Contoh

    Kartu newsletter berdenyut

    The Friday digest

    One email a week with the best product updates. No spam.

    The Friday digest

    One email a week with the best product updates. No spam.

    The Friday digest

    One email a week with the best product updates. No spam.

    The Friday digest

    One email a week with the best product updates. No spam.

    The Friday digest

    One email a week with the best product updates. No spam.

    Section fitur berkas bertabrakan

    Built for impact

    Every deploy lands safely, no matter how fast you ship.

    • 99.99%

      Uptime

    • 40 ms

      Edge latency

    • 1 click

      Rollback

    Built for impact

    Every deploy lands safely, no matter how fast you ship.

    • 99.99%

      Uptime

    • 40 ms

      Edge latency

    • 1 click

      Rollback

    Built for impact

    Every deploy lands safely, no matter how fast you ship.

    • 99.99%

      Uptime

    • 40 ms

      Edge latency

    • 1 click

      Rollback

    Built for impact

    Every deploy lands safely, no matter how fast you ship.

    • 99.99%

      Uptime

    • 40 ms

      Edge latency

    • 1 click

      Rollback

    Built for impact

    Every deploy lands safely, no matter how fast you ship.

    • 99.99%

      Uptime

    • 40 ms

      Edge latency

    • 1 click

      Rollback

    Hero selalu gelap

    Every signal, one view

    Logs, traces, and alerts flow into a single timeline your team can trust.

    Every signal, one view

    Logs, traces, and alerts flow into a single timeline your team can trust.

    Every signal, one view

    Logs, traces, and alerts flow into a single timeline your team can trust.

    Every signal, one view

    Logs, traces, and alerts flow into a single timeline your team can trust.

    Every signal, one view

    Logs, traces, and alerts flow into a single timeline your team can trust.

    Instalasi

    npx markasui@latest add background-beams

    Pemakaian

    <x-markas.background-beams variant="flow" :count="10" class="rounded-xl bg-surface px-6 py-16">
        <h2 class="text-center text-3xl font-bold text-ink">Luncurkan dengan gemerlap</h2>
    </x-markas.background-beams>

    Tidak butuh JavaScript atau Alpine.js.

    import { BackgroundBeams } from "@/components/markas/BackgroundBeams";
    
    <BackgroundBeams
      variant="flow"
      count={10}
      className="rounded-xl bg-surface px-6 py-16"
    >
      <h2 className="text-center text-3xl font-bold text-ink">
        Luncurkan dengan gemerlap
      </h2>
    </BackgroundBeams>;
    <template>
      <BackgroundBeams
        variant="flow"
        :count="10"
        class="rounded-xl bg-surface px-6 py-16"
      >
        <h2 class="text-center text-3xl font-bold text-ink">
          Luncurkan dengan gemerlap
        </h2>
      </BackgroundBeams>
    </template>
    <script lang="ts">
      import BackgroundBeams from "$lib/components/markas/BackgroundBeams.svelte";
    </script>
    
    <BackgroundBeams
      variant="flow"
      count={10}
      class="rounded-xl bg-surface px-6 py-16"
    >
      <h2 class="text-center text-3xl font-bold text-ink">
        Luncurkan dengan gemerlap
      </h2>
    </BackgroundBeams>
    ---
    import BackgroundBeams from "@/components/markas/BackgroundBeams.astro";
    ---
    
    <BackgroundBeams
      variant="flow"
      count={10}
      class="rounded-xl bg-surface px-6 py-16"
    >
      <h2 class="text-center text-3xl font-bold text-ink">
        Luncurkan dengan gemerlap
      </h2>
    </BackgroundBeams>

    Tanpa JavaScript di browser; markup dirender di server.

    import { Component } from "@angular/core";
    import { BackgroundBeams } from "./markas/background-beams.component";
    
    @Component({
      selector: "app-hero",
      imports: [BackgroundBeams],
      template: `
        <div
          markas-background-beams
          variant="flow"
          [count]="10"
          class="rounded-xl bg-surface px-6 py-16"
        >
          <h2 class="text-center text-3xl font-bold text-ink">
            Luncurkan dengan gemerlap
          </h2>
        </div>
      `,
    })
    export class Hero {}

    Komponen ini berupa atribut pada div, jadi class, style, dan atribut lain tetap di elemen akar.

    • flow mengalirkan kilau di sepanjang kurva, pulse memudarkan kurva bergantian, collide menjatuhkan berkas vertikal yang memercik di tepi bawah.
    • Dengan collide, beri padding bawah (misalnya pb-16) supaya percikan jatuh di bawah konten.
    • Posisi berkas berasal dari rumus, jadi semua framework menghasilkan gambar yang sama.
    • Komponen ini tidak punya teks bawaan, jadi tidak ada prop label yang perlu diterjemahkan.

    Props

    NamaTipeDefaultKeterangan
    variantflow | pulse | collideflowflow mengalirkan kilau di sepanjang kurva, pulse memudarkan kurva bergantian, collide menjatuhkan berkas vertikal yang memercik di dasar.
    countnumber8Jumlah berkas, maksimal 16.
    speedslow | normal | fastnormalPanjang satu siklus animasi: 12s, 7s, atau 4s.
    colormuted | primary | success | warning | dangerprimaryWarna token berkas.
    children / slotslot / ReactNode / snippet-Konten yang tampil di atas berkas.

    Aksesibilitas

    • Lapisan berkas memakai aria-hidden dan mengabaikan pointer.
    • Dengan reduced motion, berkas diam di posisi tetap yang mudah dibaca.
    • Posisi berasal dari rumus, jadi server dan klien merender markup yang sama.

    Komponen terkait

    Komponen latar lain dengan class yang sama di setiap framework.