Commit awal: prototipe UI SIAKAD Untan

This commit is contained in:
Ariyutta
2026-10-24 11:45:32 +07:00
commit d9b9cb5c0f
477 changed files with 51958 additions and 0 deletions
@@ -0,0 +1,28 @@
{{-- Satu-satunya tempat yang memancarkan <img> lambang Untan. --}}
@props(['size' => 'md', 'priority' => false])
@php
$px = ['sm' => 32, 'md' => 44, 'lg' => 72, 'xl' => 128][$size] ?? 44;
// Berkas bawaan untuk layar 2x; srcset memilih sisanya sesuai kepadatan layar.
$file = match (true) {
$px <= 32 => 64,
$px <= 64 => 128,
$px <= 128 => 256,
default => 512,
};
$srcset = collect([64, 128, 256, 512])
->map(fn (int $w) => asset("images/logo-untan-{$w}.png")." {$w}w")
->implode(', ');
@endphp
<img
src="{{ asset("images/logo-untan-{$file}.png") }}"
srcset="{{ $srcset }}"
sizes="{{ $px }}px"
alt="Lambang Universitas Tanjungpura"
width="{{ $px }}"
height="{{ $px }}"
decoding="async"
@if ($priority) fetchpriority="high" @endif
{{ $attributes->class('logo') }}
>
@@ -0,0 +1,14 @@
@props(['size' => 'md', 'href' => null])
@php($tag = $href ? 'a' : 'span')
<{{ $tag }}
@if ($href) href="{{ $href }}" aria-label="SIAKAD Universitas Tanjungpura, beranda" @endif
{{ $attributes->class('wordmark') }}
>
<x-brand.logo :size="$size" />
<span class="wordmark__text">
<span class="wordmark__name">SIAKAD</span>
<span class="wordmark__org" x-data="nameMarquee"><span class="wordmark__org-text" x-ref="inner">Universitas Tanjungpura</span></span>
</span>
</{{ $tag }}>