Lewati ke konten
MarkasUI
Ketik untuk mencari

    Panduan

    MarkasUI

    Form

    Feedback

    Overlay

    Navigasi

    Data

    Section

    Animasi

    Latar

    Tombol

    Template

    Halaman

    Retro Grid

    Lantai grid perspektif 3D yang bergerak ke arah penonton, untuk hero dan section peluncuran yang berani.

    Ship the future

    A launch platform for teams who move fast and like it that way.

    Ship the future

    A launch platform for teams who move fast and like it that way.

    Ship the future

    A launch platform for teams who move fast and like it that way.

    Ship the future

    A launch platform for teams who move fast and like it that way.

    Ship the future

    A launch platform for teams who move fast and like it that way.

    <x-markas.retro-grid 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">Ship the future</h2>
            <p class="max-w-72 text-sm text-muted">A launch platform for teams who move fast and like it that way.</p>
            <x-markas.button>Join the beta</x-markas.button>
        </div>
    </x-markas.retro-grid>
    import { Button } from "@/components/markas/Button";
    import { RetroGrid } from "@/components/markas/RetroGrid";
    
    export default function RetroGridExample() {
      return (
        <RetroGrid 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">
              Ship the future
            </h2>
            <p className="max-w-72 text-sm text-muted">
              A launch platform for teams who move fast and like it that way.
            </p>
            <Button>Join the beta</Button>
          </div>
        </RetroGrid>
      );
    }
    <script setup lang="ts">
    import Button from "@/components/markas/Button.vue";
    import RetroGrid from "@/components/markas/RetroGrid.vue";
    </script>
    
    <template>
      <RetroGrid 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">
            Ship the future
          </h2>
          <p class="max-w-72 text-sm text-muted">
            A launch platform for teams who move fast and like it that way.
          </p>
          <Button>Join the beta</Button>
        </div>
      </RetroGrid>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import RetroGrid from "$lib/components/markas/RetroGrid.svelte";
    </script>
    
    <RetroGrid 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">Ship the future</h2>
        <p class="max-w-72 text-sm text-muted">
          A launch platform for teams who move fast and like it that way.
        </p>
        <Button>Join the beta</Button>
      </div>
    </RetroGrid>
    ---
    import Button from "@/components/markas/Button.astro";
    import RetroGrid from "@/components/markas/RetroGrid.astro";
    ---
    
    <RetroGrid 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">
          Ship the future
        </h2>
        <p class="max-w-72 text-sm text-muted">
          A launch platform for teams who move fast and like it that way.
        </p>
        <Button>Join the beta</Button>
      </div>
    </RetroGrid>
    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { RetroGrid } from "./markas/retro-grid.component";
    
    @Component({
      selector: "markas-example",
      imports: [Button, RetroGrid],
      template: `
        <div
          markas-retro-grid
          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">
              Ship the future
            </h2>
            <p class="max-w-72 text-sm text-muted">
              A launch platform for teams who move fast and like it that way.
            </p>
            <button markas-button>Join the beta</button>
          </div>
        </div>
      `,
    })
    export default class RetroGridExample {}

    Contoh

    Halaman 404

    404

    This page drifted off the grid

    The link may be broken, or the page was moved.

    404

    This page drifted off the grid

    The link may be broken, or the page was moved.

    404

    This page drifted off the grid

    The link may be broken, or the page was moved.

    404

    This page drifted off the grid

    The link may be broken, or the page was moved.

    404

    This page drifted off the grid

    The link may be broken, or the page was moved.

    CTA acara

    Online conference, December 4

    Build Day 2026

    Twelve talks, two workshops, and a live launch at the end.

    Online conference, December 4

    Build Day 2026

    Twelve talks, two workshops, and a live launch at the end.

    Online conference, December 4

    Build Day 2026

    Twelve talks, two workshops, and a live launch at the end.

    Online conference, December 4

    Build Day 2026

    Twelve talks, two workshops, and a live launch at the end.

    Online conference, December 4

    Build Day 2026

    Twelve talks, two workshops, and a live launch at the end.

    Hero selalu gelap

    Arcade mode

    Turn your sprint into a game with streaks, points, and a weekly leaderboard.

    Arcade mode

    Turn your sprint into a game with streaks, points, and a weekly leaderboard.

    Arcade mode

    Turn your sprint into a game with streaks, points, and a weekly leaderboard.

    Arcade mode

    Turn your sprint into a game with streaks, points, and a weekly leaderboard.

    Arcade mode

    Turn your sprint into a game with streaks, points, and a weekly leaderboard.

    Instalasi

    npx markasui@latest add retro-grid

    Pemakaian

    <x-markas.retro-grid :cell-size="48" color="primary" class="rounded-xl border border-line bg-surface px-6 py-12">
        <h2 class="text-2xl font-semibold text-ink">Rilis masa depan</h2>
        <x-markas.button>Mulai sekarang</x-markas.button>
    </x-markas.retro-grid>

    Tidak butuh JavaScript atau Alpine.js.

    import { Button } from "@/components/markas/Button";
    import { RetroGrid } from "@/components/markas/RetroGrid";
    
    <RetroGrid
      cellSize={48}
      color="primary"
      className="rounded-xl border border-line bg-surface px-6 py-12"
    >
      <h2 className="text-2xl font-semibold text-ink">Rilis masa depan</h2>
      <Button>Mulai sekarang</Button>
    </RetroGrid>;
    <template>
      <RetroGrid
        :cell-size="48"
        color="primary"
        class="rounded-xl border border-line bg-surface px-6 py-12"
      >
        <h2 class="text-2xl font-semibold text-ink">Rilis masa depan</h2>
        <Button>Mulai sekarang</Button>
      </RetroGrid>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import RetroGrid from "$lib/components/markas/RetroGrid.svelte";
    </script>
    
    <RetroGrid
      cellSize={48}
      color="primary"
      class="rounded-xl border border-line bg-surface px-6 py-12"
    >
      <h2 class="text-2xl font-semibold text-ink">Ship the future</h2>
      <Button>Get started</Button>
    </RetroGrid>
    ---
    import Button from "@/components/markas/Button.astro";
    import RetroGrid from "@/components/markas/RetroGrid.astro";
    ---
    
    <RetroGrid
      cellSize={48}
      color="primary"
      class="rounded-xl border border-line bg-surface px-6 py-12"
    >
      <h2 class="text-2xl font-semibold text-ink">Ship the future</h2>
      <Button>Get started</Button>
    </RetroGrid>
    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { RetroGrid } from "./markas/retro-grid.component";
    
    @Component({
      selector: "app-beta",
      imports: [Button, RetroGrid],
      template: `
        <div
          markas-retro-grid
          cellSize="48"
          color="primary"
          class="rounded-xl border border-line bg-surface px-6 py-12"
        >
          <h2 class="text-2xl font-semibold text-ink">Ship the future</h2>
          <button markas-button>Get started</button>
        </div>
      `,
    })
    export class Beta {}

    Angular memakai attribute selector pada div native, jadi class, aria-*, dan atribut lain tetap di elemen akar.

    • Beri komponen tinggi yang cukup (minimal 240px) supaya perspektif punya ruang.
    • Grid bergerak satu sel per detik ke arah penonton. Dengan reduced motion grid berhenti.
    • Komponen ini tidak punya teks bawaan, jadi tidak ada prop label yang perlu diterjemahkan.

    Props

    NamaTipeDefaultKeterangan
    cellSizenumber60Ukuran satu sel grid dalam piksel sebelum perspektif. Grid bergerak satu sel per detik.
    anglenumber65Kemiringan lantai grid dalam derajat. Nilai lebih besar terlihat lebih datar.
    colormuted | primary | success | warning | dangermutedWarna token garis grid, sudah dilembutkan dengan opacity.
    children / slotslot / ReactNode-Konten yang tampil di atas grid.

    Aksesibilitas

    • Lapisan grid memakai aria-hidden dan mengabaikan pointer.
    • Dengan reduced motion, grid berhenti bergerak.

    Komponen terkait

    Komponen latar lain dengan class yang sama di setiap framework.