Skip to content

Artist page

Download .md

Fans open an artist’s My Loka Link page on their phones, so the page is one 440px column. The artist’s color comes from a tenant accent preset, and everything else stays on the My Loka Link theme.

  • Use it for public pages that belong to one artist or tenant, in My Loka Link and Ruang Loka Musik.
  • Don’t use a tenant accent in admin screens.
  1. Hero on tenant-accent-soft: the avatar, the artist’s name in the brand display font, and one sentence of bio.
  2. Main call to action on tenant-accent, as wide as the column.
  3. Links as full-width outline rows with a Lucide icon and a chevron.
  4. Schedule card with dates and places.
  5. Footer: “from Sosialoka”.
  • Accent only on the hero and the main call to action. Links, cards and text use the brand theme.
  • Text on the hero uses foreground or tenant-accent-text. muted-foreground drops under 4.5:1 on some presets.
  • Presets: set data-tenant-accent to blue, orange, teal or red on the page root. Every preset passes the contrast checks in light and dark. See Color.
  • Icons: Lucide for the interface. Don’t use third-party platform logos.
  • Column: max 440px, centered, also on 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>
)
}

Avatar and Card, with the tenant accent tokens.

sosialoka_ui has no tenant option yet. Read the preset from SosialokaColors.tenant[accent][mode], and pass its colors to the hero and the main button.