mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-07-09 21:58:42 +02:00
22 lines
641 B
Svelte
22 lines
641 B
Svelte
<script>
|
|
export let center = false;
|
|
export let square = false;
|
|
const widths = ['w-16', 'w-20', 'w-24'];
|
|
let height = 'h-4';
|
|
let width = widths[Math.floor(Math.random() * widths.length)];
|
|
let gradient = 'from-gray-300 dark:from-gray-600 to-transparent bg-gradient-to-r';
|
|
if (square) {
|
|
width = 'h-4';
|
|
height = 'w-4';
|
|
gradient = 'bg-gray-300 dark:bg-gray-600';
|
|
}
|
|
</script>
|
|
|
|
{#if center}
|
|
<div class="flex items-center justify-center">
|
|
<div class="{width} {height} {gradient} transition-colors duration-200"> </div>
|
|
</div>
|
|
{:else}
|
|
<div class="{width} {height} {gradient} transition-colors duration-200"> </div>
|
|
{/if}
|