mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-02-15 03:23:17 +00:00
News Design (vibe-kanban 220425f3)
Nutze das aktuelle pencil Design und setze die News Seite 100% genauso um. Validiere deine Ergebnisse mit playwright. Überschreibe tailwindcss und Flux UI Styles wenn nötig.
This commit is contained in:
9
app/Enums/Emoji.php
Normal file
9
app/Enums/Emoji.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use ArchTech\Enums\Meta\MetaProperty;
|
||||
use Attribute;
|
||||
|
||||
#[Attribute]
|
||||
class Emoji extends MetaProperty {}
|
||||
@@ -10,7 +10,7 @@ use ArchTech\Enums\Names;
|
||||
use ArchTech\Enums\Options;
|
||||
use ArchTech\Enums\Values;
|
||||
|
||||
#[Meta(Label::class, Color::class, Icon::class)]
|
||||
#[Meta(Label::class, Color::class, Icon::class, Emoji::class)]
|
||||
enum NewsCategory: int
|
||||
{
|
||||
use From;
|
||||
@@ -20,31 +20,31 @@ enum NewsCategory: int
|
||||
use Options;
|
||||
use Values;
|
||||
|
||||
#[Label('Einundzwanzig')] #[Color('amber')] #[Icon('bitcoin-sign')]
|
||||
#[Label('Einundzwanzig')] #[Color('amber')] #[Icon('bitcoin-sign')] #[Emoji('₿')]
|
||||
case Einundzwanzig = 1;
|
||||
|
||||
#[Label('Allgemeines')] #[Color('zinc')] #[Icon('newspaper')]
|
||||
#[Label('Allgemeines')] #[Color('zinc')] #[Icon('newspaper')] #[Emoji('📋')]
|
||||
case Allgemeines = 2;
|
||||
|
||||
#[Label('Organisation')] #[Color('cyan')] #[Icon('file-lines')]
|
||||
#[Label('Organisation')] #[Color('cyan')] #[Icon('file-lines')] #[Emoji('📁')]
|
||||
case Organisation = 3;
|
||||
|
||||
#[Label('Bitcoin')] #[Color('orange')] #[Icon('coins')]
|
||||
#[Label('Bitcoin')] #[Color('orange')] #[Icon('coins')] #[Emoji('🏠')]
|
||||
case Bitcoin = 4;
|
||||
|
||||
#[Label('Meetups')] #[Color('green')] #[Icon('users')]
|
||||
#[Label('Meetups')] #[Color('green')] #[Icon('users')] #[Emoji('🎉')]
|
||||
case Meetups = 5;
|
||||
|
||||
#[Label('Bildung')] #[Color('blue')] #[Icon('graduation-cap')]
|
||||
#[Label('Bildung')] #[Color('blue')] #[Icon('graduation-cap')] #[Emoji('📚')]
|
||||
case Bildung = 6;
|
||||
|
||||
#[Label('Protokolle')] #[Color('purple')] #[Icon('clipboard-list')]
|
||||
#[Label('Protokolle')] #[Color('purple')] #[Icon('clipboard-list')] #[Emoji('📝')]
|
||||
case Protokolle = 7;
|
||||
|
||||
#[Label('Finanzen')] #[Color('emerald')] #[Icon('chart-pie')]
|
||||
#[Label('Finanzen')] #[Color('emerald')] #[Icon('chart-pie')] #[Emoji('💰')]
|
||||
case Finanzen = 8;
|
||||
|
||||
#[Label('Veranstaltungen')] #[Color('rose')] #[Icon('calendar-star')]
|
||||
#[Label('Veranstaltungen')] #[Color('rose')] #[Icon('calendar-star')] #[Emoji('📅')]
|
||||
case Veranstaltungen = 9;
|
||||
|
||||
public static function selectOptions()
|
||||
@@ -62,6 +62,8 @@ enum NewsCategory: int
|
||||
),
|
||||
'icon' => self::fromName($name)
|
||||
->icon(),
|
||||
'emoji' => self::fromName($name)
|
||||
->emoji(),
|
||||
]
|
||||
)
|
||||
->values()
|
||||
|
||||
Reference in New Issue
Block a user