mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-28 07:43:18 +00:00
🎨 Add new Flux icons: implement multiple reusable icon components (e.g., hand-raised, hand-thumb-up, heart, hashtag, home) with variant support for improved UI consistency.
This commit is contained in:
42
resources/views/flux/heading.blade.php
Normal file
42
resources/views/flux/heading.blade.php
Normal file
@@ -0,0 +1,42 @@
|
||||
@blaze
|
||||
|
||||
@props([
|
||||
'size' => 'base',
|
||||
'accent' => false,
|
||||
'level' => null,
|
||||
])
|
||||
|
||||
@php
|
||||
$classes = Flux::classes()
|
||||
->add('font-medium')
|
||||
->add(match ($accent) {
|
||||
true => 'text-orange-primary',
|
||||
default => '[:where(&)]:text-text-primary',
|
||||
})
|
||||
->add(match ($size) {
|
||||
'xl' => 'text-2xl [&:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&]:mt-2',
|
||||
'lg' => 'text-base [&:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&]:mt-2',
|
||||
default => 'text-sm [&:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&]:mt-2',
|
||||
})
|
||||
;
|
||||
@endphp
|
||||
|
||||
<?php switch ((int) $level): case(1): ?>
|
||||
<h1 {{ $attributes->class($classes) }} data-flux-heading>{{ $slot }}</h1>
|
||||
|
||||
@break
|
||||
<?php case(2): ?>
|
||||
<h2 {{ $attributes->class($classes) }} data-flux-heading>{{ $slot }}</h2>
|
||||
|
||||
@break
|
||||
<?php case(3): ?>
|
||||
<h3 {{ $attributes->class($classes) }} data-flux-heading>{{ $slot }}</h3>
|
||||
|
||||
@break
|
||||
<?php case(4): ?>
|
||||
<h4 {{ $attributes->class($classes) }} data-flux-heading>{{ $slot }}</h4>
|
||||
|
||||
@break
|
||||
<?php default: ?>
|
||||
<div {{ $attributes->class($classes) }} data-flux-heading>{{ $slot }}</div>
|
||||
<?php endswitch; ?>
|
||||
Reference in New Issue
Block a user