Lewati ke konten
MarkasUI
Ketik untuk mencari

    Panduan

    MarkasUI

    Form

    Feedback

    Overlay

    Navigasi

    Data

    Section

    Animasi

    Latar

    Tombol

    Template

    Halaman

    Aurora Background

    Bidang warna bercahaya yang bergeser pelan di belakang konten, dari token primary dan satu token aksen.

    Meet your calmer workspace

    Notes, tasks, and docs in one quiet place, synced across every device.

    Meet your calmer workspace

    Notes, tasks, and docs in one quiet place, synced across every device.

    Meet your calmer workspace

    Notes, tasks, and docs in one quiet place, synced across every device.

    Meet your calmer workspace

    Notes, tasks, and docs in one quiet place, synced across every device.

    Meet your calmer workspace

    Notes, tasks, and docs in one quiet place, synced across every device.

    <x-markas.aurora-background class="rounded-xl border border-line bg-surface px-6 py-14">
        <div class="grid justify-items-center gap-4 text-center">
            <h2 class="text-2xl font-semibold text-balance text-ink">Meet your calmer workspace</h2>
            <p class="max-w-80 text-sm text-muted">Notes, tasks, and docs in one quiet place, synced across every device.</p>
            <div class="flex gap-2">
                <x-markas.button>Try it free</x-markas.button>
                <x-markas.button variant="ghost">See how it works</x-markas.button>
            </div>
        </div>
    </x-markas.aurora-background>
    import { Button } from "@/components/markas/Button";
    import { AuroraBackground } from "@/components/markas/AuroraBackground";
    
    export default function AuroraBackgroundExample() {
      return (
        <AuroraBackground className="rounded-xl border border-line bg-surface px-6 py-14">
          <div className="grid justify-items-center gap-4 text-center">
            <h2 className="text-2xl font-semibold text-balance text-ink">
              Meet your calmer workspace
            </h2>
            <p className="max-w-80 text-sm text-muted">
              Notes, tasks, and docs in one quiet place, synced across every device.
            </p>
            <div className="flex gap-2">
              <Button>Try it free</Button>
              <Button variant="ghost">See how it works</Button>
            </div>
          </div>
        </AuroraBackground>
      );
    }
    <script setup lang="ts">
    import AuroraBackground from "@/components/markas/AuroraBackground.vue";
    import Button from "@/components/markas/Button.vue";
    </script>
    
    <template>
      <AuroraBackground class="rounded-xl border border-line bg-surface px-6 py-14">
        <div class="grid justify-items-center gap-4 text-center">
          <h2 class="text-2xl font-semibold text-balance text-ink">
            Meet your calmer workspace
          </h2>
          <p class="max-w-80 text-sm text-muted">
            Notes, tasks, and docs in one quiet place, synced across every device.
          </p>
          <div class="flex gap-2">
            <Button>Try it free</Button>
            <Button variant="ghost">See how it works</Button>
          </div>
        </div>
      </AuroraBackground>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import AuroraBackground from "$lib/components/markas/AuroraBackground.svelte";
    </script>
    
    <AuroraBackground class="rounded-xl border border-line bg-surface px-6 py-14">
      <div class="grid justify-items-center gap-4 text-center">
        <h2 class="text-2xl font-semibold text-balance text-ink">
          Meet your calmer workspace
        </h2>
        <p class="max-w-80 text-sm text-muted">
          Notes, tasks, and docs in one quiet place, synced across every device.
        </p>
        <div class="flex gap-2">
          <Button>Try it free</Button>
          <Button variant="ghost">See how it works</Button>
        </div>
      </div>
    </AuroraBackground>
    ---
    import Button from "@/components/markas/Button.astro";
    import AuroraBackground from "@/components/markas/AuroraBackground.astro";
    ---
    
    <AuroraBackground class="rounded-xl border border-line bg-surface px-6 py-14">
      <div class="grid justify-items-center gap-4 text-center">
        <h2 class="text-2xl font-semibold text-balance text-ink">
          Meet your calmer workspace
        </h2>
        <p class="max-w-80 text-sm text-muted">
          Notes, tasks, and docs in one quiet place, synced across every device.
        </p>
        <div class="flex gap-2">
          <Button>Try it free</Button>
          <Button variant="ghost">See how it works</Button>
        </div>
      </div>
    </AuroraBackground>
    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { AuroraBackground } from "./markas/aurora-background.component";
    
    @Component({
      selector: "markas-example",
      imports: [Button, AuroraBackground],
      template: `
        <div
          markas-aurora-background
          class="rounded-xl border border-line bg-surface px-6 py-14"
        >
          <div class="grid justify-items-center gap-4 text-center">
            <h2 class="text-2xl font-semibold text-balance text-ink">
              Meet your calmer workspace
            </h2>
            <p class="max-w-80 text-sm text-muted">
              Notes, tasks, and docs in one quiet place, synced across every device.
            </p>
            <div class="flex gap-2">
              <button markas-button>Try it free</button>
              <button markas-button variant="ghost">See how it works</button>
            </div>
          </div>
        </div>
      `,
    })
    export default class AuroraBackgroundFixture {}

    Contoh

    Kartu harga

    Pro plan

    $24 per seat / month

    Unlimited projects, priority support, and audit logs.

    Pro plan

    $24per seat / month

    Unlimited projects, priority support, and audit logs.

    Pro plan

    $24per seat / month

    Unlimited projects, priority support, and audit logs.

    Pro plan

    $24 per seat / month

    Unlimited projects, priority support, and audit logs.

    Pro plan

    $24per seat / month

    Unlimited projects, priority support, and audit logs.

    Layar masuk

    Welcome back

    Sign in to continue to your workspace.

    Welcome back

    Sign in to continue to your workspace.

    Welcome back

    Sign in to continue to your workspace.

    Welcome back

    Sign in to continue to your workspace.

    Welcome back

    Sign in to continue to your workspace.

    Bilah pengumuman

    New: AI summaries for every meeting

    New: AI summaries for every meeting

    New: AI summaries for every meeting

    New: AI summaries for every meeting

    New: AI summaries for every meeting

    Instalasi

    npx markasui@latest add aurora-background

    Pemakaian

    <x-markas.aurora-background color="success" speed="slow" class="rounded-xl border border-line bg-surface px-6 py-12">
        <h2 class="text-2xl font-semibold text-ink">Kenalan dengan ruang kerja yang lebih tenang</h2>
        <x-markas.button>Mulai sekarang</x-markas.button>
    </x-markas.aurora-background>

    Tidak butuh JavaScript atau Alpine.js.

    import { Button } from "@/components/markas/Button";
    import { AuroraBackground } from "@/components/markas/AuroraBackground";
    
    <AuroraBackground
      color="success"
      speed="slow"
      className="rounded-xl border border-line bg-surface px-6 py-12"
    >
      <h2 className="text-2xl font-semibold text-ink">
        Kenalan dengan ruang kerja yang lebih tenang
      </h2>
      <Button>Mulai sekarang</Button>
    </AuroraBackground>;
    <template>
      <AuroraBackground
        color="success"
        speed="slow"
        class="rounded-xl border border-line bg-surface px-6 py-12"
      >
        <h2 class="text-2xl font-semibold text-ink">
          Kenalan dengan ruang kerja yang lebih tenang
        </h2>
        <Button>Mulai sekarang</Button>
      </AuroraBackground>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import AuroraBackground from "$lib/components/markas/AuroraBackground.svelte";
    </script>
    
    <AuroraBackground
      color="success"
      speed="slow"
      class="rounded-xl border border-line bg-surface px-6 py-12"
    >
      <h2 class="text-2xl font-semibold text-ink">
        Kenalan dengan ruang kerja yang lebih tenang
      </h2>
      <Button>Mulai sekarang</Button>
    </AuroraBackground>
    ---
    import Button from "@/components/markas/Button.astro";
    import AuroraBackground from "@/components/markas/AuroraBackground.astro";
    ---
    
    <AuroraBackground
      color="success"
      speed="slow"
      class="rounded-xl border border-line bg-surface px-6 py-12"
    >
      <h2 class="text-2xl font-semibold text-ink">
        Kenalan dengan ruang kerja yang lebih tenang
      </h2>
      <Button>Mulai sekarang</Button>
    </AuroraBackground>

    Tanpa JavaScript di browser; markup dirender di server.

    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { AuroraBackground } from "./markas/aurora-background.component";
    
    @Component({
      selector: "app-hero",
      imports: [Button, AuroraBackground],
      template: `
        <div
          markas-aurora-background
          color="success"
          speed="slow"
          class="rounded-xl border border-line bg-surface px-6 py-12"
        >
          <h2 class="text-2xl font-semibold text-ink">
            Kenalan dengan ruang kerja yang lebih tenang
          </h2>
          <button markas-button>Mulai sekarang</button>
        </div>
      `,
    })
    export class Hero {}

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

    • Cahaya mencampur primary dengan token color, jadi ikut mode terang dan gelap.
    • Keyframes ikut di dalam komponen lewat tag <style> kecil. Dengan reduced motion cahaya diam.
    • Komponen ini tidak punya teks bawaan, jadi tidak ada prop label yang perlu diterjemahkan.

    Props

    NamaTipeDefaultKeterangan
    colormuted | primary | success | warning | dangersuccessToken aksen yang dicampur dengan primary di cahaya.
    speedslow | normal | fastnormalKecepatan gerak cahaya: 24s, 14s, atau 8s per siklus.
    children / slotslot / ReactNode / snippet-Konten yang tampil di atas cahaya.

    Aksesibilitas

    • Lapisan cahaya memakai aria-hidden dan mengabaikan pointer.
    • Dengan reduced motion, cahaya berhenti dan tetap di posisi awal.
    • Cahaya cukup tipis sehingga teks ink dan muted tetap kontras.

    Komponen terkait

    Komponen latar lain dengan class yang sama di setiap framework.