Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions resources/views/components/code.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@
'letters'
])

<div {{ $attributes->class(['text-center flex flex-wrap gap-8 mt-auto']) }}>
@foreach(array_filter(explode(' ', trim($message))) as $word)
<div class="word flex flex-wrap gap-2">
@foreach(str_split($word) as $character)
<div>
<span class="material-symbols-outlined character !text-4xl">
{{ $letters[strtolower($character)] ?? $character }}
</span>
<div {{ $attributes->class(['text-center mt-auto flex flex-wrap flex-col gap-8']) }}>
@foreach(array_filter(explode("\n", trim($message))) as $line)
<div class="line flex flex-wrap gap-8">
@foreach(explode(' ', trim($line)) as $word)
<div class="word flex flex-wrap gap-2">
@foreach(str_split($word) as $character)
<div>
<span class="material-symbols-outlined character !text-4xl">
{{ $letters[strtolower($character)] ?? $character }}
</span>

<div class="bg-gray-200 w-12 h-12"></div>
<div class="bg-gray-200 w-12 h-12"></div>
</div>
@endforeach
</div>
@endforeach
</div>
Expand Down