Commit awal: prototipe UI SIAKAD Untan
This commit is contained in:
@@ -0,0 +1,128 @@
|
||||
{{-- Cangkang pengguna masuk: sidebar kaca melayang, bilah atas ramping, <main> berisi slot. --}}
|
||||
@props(['title' => null, 'description' => 'Sistem Informasi Akademik Universitas Tanjungpura.', 'menu' => null])
|
||||
|
||||
@php
|
||||
$user = auth()->user();
|
||||
$menuView = $menu ?? $user->role->value.'.partials.menu';
|
||||
$today = now()->locale('id');
|
||||
@endphp
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="id">
|
||||
<head>
|
||||
<x-layouts.head :title="$title" :description="$description" />
|
||||
</head>
|
||||
<body>
|
||||
<a class="skip-link" href="#isi">Lewati ke konten utama</a>
|
||||
|
||||
<x-ui.sky :defs="true" />
|
||||
|
||||
<x-ui.flash />
|
||||
|
||||
<div class="app" x-data="appShell" x-on:keydown.escape.window="close()">
|
||||
<x-glass.panel as="aside" padding="none" :strong="true" id="sidebar" class="sidebar" x-bind:class="{ 'is-open': open }" x-on:touchstart.passive="swipeStart($event)" x-on:touchend.passive="swipeEnd($event)">
|
||||
<div class="sidebar__head">
|
||||
<x-brand.wordmark :href="route('dashboard')" />
|
||||
<x-ui.button
|
||||
variant="ghost"
|
||||
icon="x-mark"
|
||||
:icon-only="true"
|
||||
class="sidebar__close"
|
||||
aria-label="Tutup menu"
|
||||
x-ref="close"
|
||||
x-on:click="close()"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<nav class="sidebar__nav" aria-labelledby="menu-label">
|
||||
<p id="menu-label" class="sidebar__label">Menu {{ $user->role->label() }}</p>
|
||||
<div class="sidebar__list">
|
||||
@include($menuView)
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="sidebar__foot">
|
||||
<div class="sidebar__user">
|
||||
<x-ui.avatar :name="$user->name" />
|
||||
<div class="sidebar__who">
|
||||
<span class="sidebar__name" x-data="nameMarquee" title="{{ $user->name }}"><span class="sidebar__name-text" x-ref="inner">{{ $user->name }}</span></span>
|
||||
<span class="sidebar__role">{{ $user->profile?->nomor_induk ?? $user->role->label() }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form method="POST" action="{{ route('logout') }}">
|
||||
@csrf
|
||||
<x-ui.button type="submit" variant="secondary" icon="arrow-right-on-rectangle" :block="true">Keluar</x-ui.button>
|
||||
</form>
|
||||
</div>
|
||||
</x-glass.panel>
|
||||
|
||||
<div class="scrim" x-bind:class="{ 'is-open': open }" x-on:click="close()" aria-hidden="true"></div>
|
||||
|
||||
<div class="app__col" x-bind:inert="locked">
|
||||
<div class="veil veil--top" aria-hidden="true"><x-ui.sky /></div>
|
||||
<div class="veil veil--bottom" aria-hidden="true"><x-ui.sky /></div>
|
||||
<div class="veil-edge veil-edge--top" aria-hidden="true"></div>
|
||||
<div class="veil-edge veil-edge--bottom" aria-hidden="true"></div>
|
||||
|
||||
<x-glass.panel as="header" padding="none" :strong="true" class="topbar" x-data="{ over: false }" x-on:scroll.window.passive="over = window.scrollY > 4" x-bind:data-over="over || null">
|
||||
<x-ui.button
|
||||
variant="ghost"
|
||||
icon="bars-3"
|
||||
:icon-only="true"
|
||||
class="topbar__menu"
|
||||
aria-label="Buka menu"
|
||||
aria-controls="sidebar"
|
||||
aria-expanded="false"
|
||||
x-ref="menu"
|
||||
x-bind:aria-label="menuLabel"
|
||||
x-bind:aria-expanded="narrow ? open : !collapsed"
|
||||
x-on:click="toggle()"
|
||||
/>
|
||||
@php
|
||||
$tickerLines = [
|
||||
'Selamat Datang di SIAKAD Universitas Tanjungpura',
|
||||
'Sistem Informasi Akademik terpadu untuk mahasiswa, dosen, dan tenaga kependidikan',
|
||||
'Kelola perkuliahan, nilai, dan layanan akademik dalam satu tempat',
|
||||
];
|
||||
@endphp
|
||||
<div class="ticker" role="group" aria-label="{{ $tickerLines[0] }}" x-data="{ i: 0, lines: @js($tickerLines) }">
|
||||
<span class="ticker__badge" aria-hidden="true"><x-heroicon-s-megaphone /></span>
|
||||
<div class="ticker__viewport" aria-hidden="true">
|
||||
<span class="ticker__item" x-text="lines[i]" x-on:animationiteration="i = (i + 1) % lines.length">{{ $tickerLines[0] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<time class="topbar__date" datetime="{{ $today->toDateString() }}">
|
||||
<span class="topbar__date-long">{{ $today->isoFormat('dddd, D MMMM YYYY') }}</span>
|
||||
<span class="topbar__date-short">{{ $today->isoFormat('ddd, D MMM YYYY') }}</span>
|
||||
</time>
|
||||
<x-ui.theme-toggle />
|
||||
<x-ui.role-switch :user="$user" />
|
||||
</x-glass.panel>
|
||||
|
||||
<main id="isi" class="app__main">
|
||||
{{ $slot }}
|
||||
</main>
|
||||
|
||||
<x-glass.panel as="footer" padding="none" :strong="true" class="app-footer" x-data="{ over: false }" x-init="over = (window.innerHeight + window.scrollY) < document.documentElement.scrollHeight - 4" x-on:scroll.window.passive="over = (window.innerHeight + window.scrollY) < document.documentElement.scrollHeight - 4" x-bind:data-over="over || null">
|
||||
<p>© {{ $today->year }} Universitas Tanjungpura. Hak cipta dilindungi.</p>
|
||||
<p>SIAKAD, Sistem Informasi Akademik</p>
|
||||
</x-glass.panel>
|
||||
</div>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="to-top"
|
||||
aria-label="Kembali ke atas"
|
||||
title="Kembali ke atas"
|
||||
x-data="{ show: false }"
|
||||
x-on:scroll.window.passive="show = window.scrollY > 320"
|
||||
x-bind:class="{ 'is-visible': show }"
|
||||
x-bind:inert="!show"
|
||||
x-on:click="window.scrollTo({ top: 0, behavior: window.matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth' })"
|
||||
inert
|
||||
>
|
||||
<x-heroicon-m-arrow-up />
|
||||
</button>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,63 @@
|
||||
{{-- Cangkang masuk: panel merek bergradien di kiri, formulir kaca di kanan. Tanpa DB/sesi. --}}
|
||||
@props(['title' => null, 'description' => 'Sistem Informasi Akademik Universitas Tanjungpura.'])
|
||||
|
||||
@php
|
||||
$points = [
|
||||
['icon' => 'calendar-days', 'title' => 'Jadwal dan kalender', 'text' => 'Kuliah, ujian, dan tenggat akademik terkumpul rapi.'],
|
||||
['icon' => 'clipboard-document-check', 'title' => 'KRS dan nilai', 'text' => 'Pengisian KRS sampai KHS dalam satu alur.'],
|
||||
['icon' => 'megaphone', 'title' => 'Pengumuman kampus', 'text' => 'Kabar resmi universitas sampai langsung ke Anda.'],
|
||||
];
|
||||
@endphp
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="id">
|
||||
<head>
|
||||
<x-layouts.head :title="$title" :description="$description" />
|
||||
</head>
|
||||
<body>
|
||||
<a class="skip-link" href="#isi">Lewati ke konten utama</a>
|
||||
|
||||
<x-ui.sky :defs="true" />
|
||||
|
||||
<x-ui.flash />
|
||||
|
||||
<div class="auth">
|
||||
<x-ui.theme-toggle class="auth__theme" />
|
||||
<aside class="auth__brand" aria-label="Tentang SIAKAD Untan">
|
||||
<div class="auth__brand-top">
|
||||
<span class="auth__logo"><x-brand.logo size="lg" priority /></span>
|
||||
<div class="auth__id">
|
||||
<span class="auth__id-name">SIAKAD Untan</span>
|
||||
<span class="auth__id-sub">Universitas Tanjungpura</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="auth__pitch">
|
||||
<p class="auth__headline">Satu pintu untuk seluruh urusan akademik Anda.</p>
|
||||
<ul class="auth__points">
|
||||
@foreach ($points as $point)
|
||||
<li class="auth__point">
|
||||
<span class="auth__point-icon" aria-hidden="true"><x-dynamic-component :component="'heroicon-o-'.$point['icon']" /></span>
|
||||
<span class="auth__point-text">
|
||||
<span class="auth__point-title">{{ $point['title'] }}</span>
|
||||
<span class="auth__point-desc">{{ $point['text'] }}</span>
|
||||
</span>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<p class="auth__copy">© {{ now()->year }} Universitas Tanjungpura</p>
|
||||
</aside>
|
||||
|
||||
<main id="isi" class="auth__main">
|
||||
<div class="auth__content">
|
||||
<div class="auth__mobile-brand">
|
||||
<x-brand.wordmark :href="url('/')" />
|
||||
</div>
|
||||
{{ $slot }}
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,34 @@
|
||||
{{-- Cangkang publik (login, halaman galat). Tidak butuh DB, sesi, atau pengguna masuk. --}}
|
||||
@props(['title' => null, 'description' => 'Sistem Informasi Akademik Universitas Tanjungpura.', 'width' => 'sm', 'brand' => true])
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="id">
|
||||
<head>
|
||||
<x-layouts.head :title="$title" :description="$description" />
|
||||
</head>
|
||||
<body>
|
||||
<a class="skip-link" href="#isi">Lewati ke konten utama</a>
|
||||
|
||||
<x-ui.sky :defs="true" />
|
||||
|
||||
<x-ui.flash />
|
||||
|
||||
<div class="guest">
|
||||
<header class="guest__header">
|
||||
@if ($brand)
|
||||
<x-brand.wordmark :href="url('/')" />
|
||||
@endif
|
||||
</header>
|
||||
|
||||
<main id="isi" class="guest__main">
|
||||
<div @class(['guest__content', "guest__content--{$width}" => $width !== 'sm'])>
|
||||
{{ $slot }}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="guest__footer">
|
||||
<p>Sistem Informasi Akademik Universitas Tanjungpura</p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,22 @@
|
||||
@props(['title' => null, 'description' => 'Sistem Informasi Akademik Universitas Tanjungpura.'])
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||
<title>{{ $title ? $title.' | SIAKAD Untan' : 'SIAKAD Untan' }}</title>
|
||||
<meta name="description" content="{{ $description }}">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<link rel="icon" type="image/png" sizes="64x64" href="{{ asset('images/logo-untan-64.png') }}">
|
||||
<link rel="apple-touch-icon" href="{{ asset('images/logo-untan-256.png') }}">
|
||||
<script>
|
||||
document.documentElement.classList.add('js');
|
||||
(function () {
|
||||
var mode = null;
|
||||
try { mode = localStorage.getItem('siakad-theme'); } catch (e) {}
|
||||
if (mode !== 'light' && mode !== 'dark') {
|
||||
mode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
||||
}
|
||||
document.documentElement.dataset.theme = mode;
|
||||
try { if (localStorage.getItem('siakad-sidebar') === 'collapsed') document.documentElement.classList.add('sidebar-collapsed'); } catch (e) {}
|
||||
})();
|
||||
</script>
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
Reference in New Issue
Block a user