Files
siakad/resources/views/components/ui/sky.blade.php
T
2026-10-24 11:45:32 +07:00

27 lines
1.8 KiB
PHP

{{-- Hiasan latar: garis awan bergerak (tema terang) dan bintang berkedip (tema gelap). Murni dekoratif, hanya opacity/transform. --}}
@props(['defs' => false])
<div class="sky" aria-hidden="true">
@if ($defs)
<svg class="sky__defs" width="0" height="0" focusable="false">
<symbol id="sky-cloud" viewBox="0 0 200 92">
<path d="M40 70 H150 C175 70 190 56 190 42 C190 28 176 18 160 20 C156 8 142 0 126 0 C108 0 94 10 90 24 C86 22 82 22 78 22 C62 22 50 33 50 46 C34 46 22 56 22 64 C22 68 28 70 40 70 Z M12 82 H74 M92 82 H168 M30 90 H120" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" vector-effect="non-scaling-stroke" />
</symbol>
</svg>
@endif
<div class="sky__clouds">
<svg class="sky__cloud" viewBox="0 0 200 92" style="--y: 9vh; --w: 15rem; --d: 170s; --t: -20s; --o: 1"><use href="#sky-cloud" /></svg>
<svg class="sky__cloud" viewBox="0 0 200 92" style="--y: 24vh; --w: 10rem; --d: 210s; --t: -130s; --o: 0.8"><use href="#sky-cloud" /></svg>
<svg class="sky__cloud" viewBox="0 0 200 92" style="--y: 46vh; --w: 18rem; --d: 240s; --t: -60s; --o: 0.9"><use href="#sky-cloud" /></svg>
<svg class="sky__cloud" viewBox="0 0 200 92" style="--y: 68vh; --w: 12rem; --d: 190s; --t: -170s; --o: 0.75"><use href="#sky-cloud" /></svg>
<svg class="sky__cloud" viewBox="0 0 200 92" style="--y: 86vh; --w: 16rem; --d: 260s; --t: -100s; --o: 0.85"><use href="#sky-cloud" /></svg>
</div>
<div class="sky__stars">
<i class="sky__star-layer sky__star-layer--1"></i>
<i class="sky__star-layer sky__star-layer--2"></i>
<i class="sky__star-layer sky__star-layer--3"></i>
<i class="sky__star-layer sky__star-layer--4"></i>
<i class="sky__star-layer sky__star-layer--5"></i>
</div>
</div>