feat: gunakan font Roboto dan Playfair Display di halaman publik

This commit is contained in:
2026-04-03 09:20:29 +07:00
parent 2b0ac071a7
commit fb0e32da1b
10 changed files with 29 additions and 11 deletions
@@ -17,7 +17,7 @@ class ActivityResource extends Resource
protected static ?string $model = Activity::class;
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-calendar-days';
protected static string|\UnitEnum|null $navigationGroup = 'Kegiatan';
protected static ?string $modelLabel = 'Kegiatan';
protected static ?string $navigationLabel = 'Kegiatan';
public static function form(Schema $form): Schema
{
@@ -17,7 +17,7 @@ class AuditResource extends Resource
protected static ?string $model = Audit::class;
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-magnifying-glass';
protected static string|\UnitEnum|null $navigationGroup = 'Audit';
protected static ?string $modelLabel = 'Temuan Audit';
protected static ?string $navigationLabel = 'Temuan Audit';
public static function form(Schema $form): Schema
{
@@ -17,7 +17,7 @@ class CashCategoryResource extends Resource
protected static ?string $model = CashCategory::class;
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-tag';
protected static string|\UnitEnum|null $navigationGroup = 'Keuangan';
protected static ?string $modelLabel = 'Kategori Kas';
protected static ?string $navigationLabel = 'Kategori';
public static function form(Schema $form): Schema
{
@@ -17,7 +17,8 @@ class CashRecordResource extends Resource
protected static ?string $model = CashRecord::class;
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-banknotes';
protected static string|\UnitEnum|null $navigationGroup = 'Keuangan';
protected static ?string $modelLabel = 'Transaksi Kas';
protected static ?string $navigationLabel = 'Transaksi';
public static function form(Schema $form): Schema
{
@@ -19,8 +19,8 @@ class ContactMessageResource extends Resource
{
protected static ?string $model = ContactMessage::class;
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-envelope';
protected static string|\UnitEnum|null $navigationGroup = 'Konten';
protected static ?string $modelLabel = 'Pesan Masuk';
protected static string|\UnitEnum|null $navigationGroup = 'Kontak';
protected static ?string $navigationLabel = 'Pesan Masuk';
public static function form(Schema $form): Schema
{
@@ -17,7 +17,7 @@ class DivisionResource extends Resource
protected static ?string $model = Division::class;
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-rectangle-group';
protected static string|\UnitEnum|null $navigationGroup = 'Organisasi';
protected static ?string $modelLabel = 'Divisi';
protected static ?string $navigationLabel = 'Divisi';
public static function form(Schema $form): Schema
{
@@ -18,6 +18,7 @@ class PostResource extends Resource
protected static ?string $model = Post::class;
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-newspaper';
protected static string|\UnitEnum|null $navigationGroup = 'Konten';
protected static ?string $navigationLabel = 'Post';
// Label dinamis sesuai role
public static function getModelLabel(): string
@@ -17,7 +17,8 @@ class UserResource extends Resource
protected static ?string $model = User::class;
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-users';
protected static string|\UnitEnum|null $navigationGroup = 'Organisasi';
protected static ?string $modelLabel = 'Anggota';
protected static ?string $navigationLabel = 'Anggota';
public static function form(Schema $form): Schema
{
@@ -17,8 +17,7 @@ class VoteResource extends Resource
{
protected static ?string $model = Vote::class;
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-check-badge';
protected static string|\UnitEnum|null $navigationGroup = 'Keputusan';
protected static ?string $modelLabel = 'Voting';
protected static ?string $navigationLabel = 'Voting';
public static function form(Schema $form): Schema
{
+17 -1
View File
@@ -5,6 +5,21 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@yield('title', 'Persegi') Organisasi Pemuda Desa Karangdadap</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
sans: ['Roboto', 'sans-serif'],
heading: ['Playfair Display', 'serif'],
}
}
}
}
</script>
<style>
[x-cloak] { display: none; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@@ -13,9 +28,10 @@
.skew-top { clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%); margin-top: -2rem; padding-top: 5rem; }
.skew-bottom { clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%); padding-bottom: 5rem; }
.skew-both { clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%); margin-top: -2rem; padding-top: 5rem; padding-bottom: 5rem; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; }
</style>
</head>
<body class="bg-white text-gray-900 font-sans antialiased">
<body class="bg-white text-gray-900 font-sans antialiased" style="font-family: 'Roboto', sans-serif;">
{{-- Navbar --}}
<nav class="fixed top-0 left-0 right-0 z-50 bg-white border-b border-gray-100" x-data="{open: false}">