Halaman artist
Fans membuka halaman My Loka Link seorang artist lewat ponsel, jadi halaman ini berupa satu kolom selebar 440px. Warna artist datang dari preset aksen tenant, sedangkan bagian lainnya tetap memakai tema My Loka Link.
Kapan dipakai
Section titled “Kapan dipakai”- Pakai untuk halaman publik milik satu artist atau tenant, di My Loka Link dan Ruang Loka Musik.
- Jangan pakai aksen tenant di layar admin.
Anatomi
Section titled “Anatomi”- Hero di atas
tenant-accent-soft: avatar, nama artist dengan font display brand, dan satu kalimat bio. - Ajakan utama di atas
tenant-accent, selebar kolom. - Tautan berupa baris outline selebar kolom, dengan ikon Lucide dan tanda panah.
- Kartu jadwal berisi tanggal dan tempat.
- Footer: “from Sosialoka”.
Aturan
Section titled “Aturan”- Aksen hanya di hero dan ajakan utama. Tautan, kartu, dan teks tetap memakai tema brand.
- Teks di hero memakai
foregroundatautenant-accent-text.muted-foregroundturun di bawah 4.5:1 pada beberapa preset. - Preset: isi
data-tenant-accentdi root halaman denganblue,orange,teal, ataured. Semua preset lolos cek kontras di mode terang dan gelap. Lihat Warna. - Ikon: pakai Lucide untuk antarmuka. Jangan pakai logo platform pihak ketiga.
- Kolom: maksimal 440px dan berada di tengah, juga di desktop.
import { CalendarIcon, ChevronRightIcon, DiscIcon, PlayIcon, ShirtIcon, VideoIcon } from "lucide-react"import { Avatar, AvatarFallback } from "@/components/ui/avatar"import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
const links = [ { label: "Rilis terbaru", icon: DiscIcon }, { label: "Video", icon: VideoIcon }, { label: "Jadwal manggung", icon: CalendarIcon }, { label: "Merchandise", icon: ShirtIcon },]
const shows = [ { date: "Sab, 22 Nov 2026", place: "Kafe Lentera, Bandung" }, { date: "Jum, 5 Des 2026", place: "Ruang Dengar, Yogyakarta" },]
/** * A My Loka Link artist page: a 440px column on the artist's accent (data-tenant-accent). The accent colors * only the hero and the main call to action; everything else stays on the brand theme. */export default function ArtistPageDemo() { return ( <div data-tenant-accent="orange" className="mx-auto min-h-svh max-w-[440px] bg-background text-foreground"> <header className="flex flex-col items-center gap-3 bg-tenant-accent-soft px-6 pt-10 pb-8 text-center"> <Avatar className="size-24"> <AvatarFallback className="bg-tenant-accent text-2xl text-tenant-accent-foreground">NS</AvatarFallback> </Avatar> <h1 className="text-3xl" style={{ fontFamily: "var(--font-brand)", fontWeight: "var(--font-brand-weight)", letterSpacing: "var(--font-brand-tracking)", }} > Nadia Senja </h1> <p className="text-sm text-foreground">Penyanyi folk dari Bandung. Lagu tentang kota dan pulang.</p> <a href="#" className="mt-2 inline-flex h-10 w-full items-center justify-center gap-2 rounded-md bg-tenant-accent px-4 text-sm font-medium text-tenant-accent-foreground outline-none hover:bg-tenant-accent/90 focus-visible:ring-[3px] focus-visible:ring-ring/50" > <PlayIcon className="size-4 fill-current" /> Dengarkan rilis terbaru </a> </header>
<nav aria-label="Tautan" className="grid gap-2 px-4 py-6"> {links.map((link) => ( <a key={link.label} href="#" className="flex h-12 items-center gap-3 rounded-lg border border-border bg-card px-4 text-sm font-medium outline-none hover:bg-muted focus-visible:ring-[3px] focus-visible:ring-ring/50" > <link.icon className="size-4 text-muted-foreground" /> <span className="flex-1">{link.label}</span> <ChevronRightIcon className="size-4 text-muted-foreground" /> </a> ))} </nav>
<div className="px-4"> <Card> <CardHeader> <CardTitle>Jadwal manggung</CardTitle> </CardHeader> <CardContent className="grid gap-3"> {shows.map((show) => ( <div key={show.date} className="grid gap-0.5"> <span className="text-sm font-medium">{show.date}</span> <span className="text-sm text-muted-foreground">{show.place}</span> </div> ))} </CardContent> </Card> </div>
<footer className="flex items-center justify-center gap-1.5 py-8 text-xs text-muted-foreground"> <span>from</span> <img src="/brand/sosialoka.png" alt="" className="size-4" />{" "} <span className="font-semibold text-foreground">Sosialoka</span> </footer> </div> )}<script setup lang="ts">import { Calendar, ChevronRight, Disc, Play, Shirt, Video } from "@lucide/vue"import { Avatar, AvatarFallback } from "@/components/ui/avatar"import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
/** * A My Loka Link artist page: a 440px column on the artist's accent (data-tenant-accent). The accent colors * only the hero and the main call to action; everything else stays on the brand theme. */const links = [ { label: "Rilis terbaru", icon: Disc }, { label: "Video", icon: Video }, { label: "Jadwal manggung", icon: Calendar }, { label: "Merchandise", icon: Shirt },]
/** The Sosialoka mark; a binding, so the SFC compiler leaves the URL alone instead of importing it. */const markSrc = "/brand/sosialoka.png"
const shows = [ { date: "Sab, 22 Nov 2026", place: "Kafe Lentera, Bandung" }, { date: "Jum, 5 Des 2026", place: "Ruang Dengar, Yogyakarta" },]</script>
<template> <div data-tenant-accent="orange" class="mx-auto min-h-svh max-w-[440px] bg-background text-foreground"> <header class="flex flex-col items-center gap-3 bg-tenant-accent-soft px-6 pt-10 pb-8 text-center"> <Avatar class="size-24"> <AvatarFallback class="bg-tenant-accent text-2xl text-tenant-accent-foreground">NS</AvatarFallback> </Avatar> <h1 class="text-3xl" style="font-family: var(--font-brand); font-weight: var(--font-brand-weight); letter-spacing: var(--font-brand-tracking)" > Nadia Senja </h1> <p class="text-sm text-foreground">Penyanyi folk dari Bandung. Lagu tentang kota dan pulang.</p> <a href="#" class="mt-2 inline-flex h-10 w-full items-center justify-center gap-2 rounded-md bg-tenant-accent px-4 text-sm font-medium text-tenant-accent-foreground outline-none hover:bg-tenant-accent/90 focus-visible:ring-[3px] focus-visible:ring-ring/50" > <Play class="size-4 fill-current" /> Dengarkan rilis terbaru </a> </header>
<nav aria-label="Tautan" class="grid gap-2 px-4 py-6"> <a v-for="link in links" :key="link.label" href="#" class="flex h-12 items-center gap-3 rounded-lg border border-border bg-card px-4 text-sm font-medium outline-none hover:bg-muted focus-visible:ring-[3px] focus-visible:ring-ring/50" > <component :is="link.icon" class="size-4 text-muted-foreground" /> <span class="flex-1">{{ link.label }}</span> <ChevronRight class="size-4 text-muted-foreground" /> </a> </nav>
<div class="px-4"> <Card> <CardHeader> <CardTitle>Jadwal manggung</CardTitle> </CardHeader> <CardContent class="grid gap-3"> <div v-for="show in shows" :key="show.date" class="grid gap-0.5"> <span class="text-sm font-medium">{{ show.date }}</span> <span class="text-sm text-muted-foreground">{{ show.place }}</span> </div> </CardContent> </Card> </div>
<footer class="flex items-center justify-center gap-1.5 py-8 text-xs text-muted-foreground"> <span>from</span> <img :src="markSrc" alt="" class="size-4"> <span class="font-semibold text-foreground">Sosialoka</span> </footer> </div></template>// A My Loka Link artist page: a 440 px column on the artist's accent. The accent colors only the hero and// the main call to action. sosialoka_ui has no tenant parameter yet, so read the preset from// SosialokaColors.tenant for the current mode.import 'package:flutter/widgets.dart';import 'package:shadcn_ui/shadcn_ui.dart';import 'package:sosialoka_ui/sosialoka_ui.dart';
const _links = [ ('Rilis terbaru', LucideIcons.disc), ('Video', LucideIcons.video), ('Jadwal manggung', LucideIcons.calendar), ('Merchandise', LucideIcons.shirt),];
class ArtistPageDemo extends StatelessWidget { const ArtistPageDemo({super.key, this.accent = 'orange'});
/// One of the tenant presets: blue, orange, teal or red. final String accent;
@override Widget build(BuildContext context) { final theme = ShadTheme.of(context); final mode = theme.brightness == Brightness.dark ? 'dark' : 'light'; final tenant = SosialokaColors.tenant[accent]![mode]!; return ConstrainedBox( constraints: const BoxConstraints(maxWidth: 440), child: Column( mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.stretch, children: [ ColoredBox( color: tenant['tenant-accent-soft']!, child: Padding( padding: const EdgeInsets.fromLTRB(24, 32, 24, 24), child: Column( children: [ ShadAvatar( '', size: const Size.square(96), backgroundColor: tenant['tenant-accent'], placeholder: Text('NS', style: TextStyle(color: tenant['tenant-accent-foreground'], fontSize: 24)), ), const SizedBox(height: 12), Text('Nadia Senja', style: theme.textTheme.h2), const SizedBox(height: 4), Text( 'Penyanyi folk dari Bandung. Lagu tentang kota dan pulang.', // foreground, not muted: muted text drops under 4.5:1 on some tenant presets. style: theme.textTheme.p.copyWith(color: theme.colorScheme.foreground), textAlign: TextAlign.center, ), const SizedBox(height: 16), ShadButton( width: double.infinity, backgroundColor: tenant['tenant-accent'], foregroundColor: tenant['tenant-accent-foreground'], leading: const Icon(LucideIcons.play, size: 16), onPressed: () {}, child: const Text('Dengarkan rilis terbaru'), ), ], ), ), ), const SizedBox(height: 16), for (final (label, icon) in _links) Padding( padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 4), child: ShadButton.outline( height: 48, mainAxisAlignment: MainAxisAlignment.start, leading: Icon(icon, size: 16), trailing: const Icon(LucideIcons.chevronRight, size: 16), onPressed: () {}, child: Expanded(child: Text(label)), ), ), ], ), ); }}Dibangun dari
Section titled “Dibangun dari”Avatar dan Card, ditambah token aksen tenant.
Flutter
Section titled “Flutter”sosialoka_ui belum punya opsi tenant. Ambil warna preset dari SosialokaColors.tenant[accent][mode], lalu pakai untuk hero dan tombol utama.
