Commit awal: prototipe UI SIAKAD Untan
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
{{-- Kepala halaman: satu-satunya <h1>, kalimat pengantar, jejak halaman, dan slot aksi (<x-slot:actions>). Blok polos, bukan kaca. --}}
|
||||
@props(['title', 'description' => null, 'breadcrumbs' => []])
|
||||
|
||||
<header {{ $attributes->class('page-header') }}>
|
||||
@if ($breadcrumbs)
|
||||
<nav aria-label="Breadcrumb">
|
||||
<div class="crumbs" x-data="nameMarquee">
|
||||
<ol class="crumbs__list" x-ref="inner">
|
||||
@foreach ($breadcrumbs as $text => $url)
|
||||
<li class="crumbs__item">
|
||||
@if ($loop->last || blank($url))
|
||||
<span class="crumbs__text" @if ($loop->last) aria-current="page" @endif>{{ $text }}</span>
|
||||
@else
|
||||
<a class="crumbs__link" href="{{ $url }}">
|
||||
@if ($loop->first) <x-heroicon-o-home class="crumbs__home" aria-hidden="true" /> @endif
|
||||
{{ $text }}
|
||||
</a>
|
||||
@endif
|
||||
@unless ($loop->last)
|
||||
<x-heroicon-m-chevron-right class="crumbs__sep" aria-hidden="true" />
|
||||
@endunless
|
||||
</li>
|
||||
@endforeach
|
||||
</ol>
|
||||
</div>
|
||||
</nav>
|
||||
@endif
|
||||
|
||||
<div class="page-header__row">
|
||||
<div class="page-header__text">
|
||||
<h1>{{ $title }}</h1>
|
||||
@if ($description) <p class="lede">{{ $description }}</p> @endif
|
||||
</div>
|
||||
|
||||
@isset($actions)
|
||||
@if (trim((string) $actions) !== '')
|
||||
<div class="page-header__actions">{{ $actions }}</div>
|
||||
@endif
|
||||
@endisset
|
||||
</div>
|
||||
</header>
|
||||
Reference in New Issue
Block a user