|
13 | 13 | {#if icon.startsWith("https://")} |
14 | 14 | <!-- Create link with image icon --> |
15 | 15 | <div class={open ? "bg-slate-700/40 border-2 border-slate-600/50 transition-all rounded-xl p-4" : ""}> |
16 | | - <button onclick={() => open = !open} class="gap-1 flex items-center md:items-start text-md px-6 py-2 rounded-full hover:bg-slate-600/40 active:bg-slate-700/60 transition-all hover:scale-105 active:scale-95 text-center md:text-left text-white"> |
| 16 | + <button onclick={() => open = !open} class="gap-1 flex items-center md:items-start text-md px-6 py-2 rounded-full hover:bg-slate-600/40 active:bg-slate-700/60 transition-all hover:scale-105 active:scale-95 text-center md:text-left text-white font-mono"> |
17 | 17 | <img src={icon} alt={text} class="w-6 h-6 inline"> |
18 | | - <span class="ml-1">{text}</span> |
| 18 | + <span class="ml-1 font-mono">{text}</span> |
19 | 19 | {#if open} |
20 | 20 | <i class="ph-bold ph-caret-up"></i> |
21 | 21 | {#if archived} |
22 | | - <div class="flex flex-row items-center gap-2 bg-orange-500/50 rounded-full px-2"> |
23 | | - <p class="text-sm text-white opacity-80 text-center">Archived</p> |
| 22 | + <div class="flex flex-row items-center gap-2 bg-orange-500/50 rounded-full px-2 ml-2"> |
| 23 | + <p class="text-sm text-white opacity-80 text-center font-mono">Archived</p> |
24 | 24 | </div> |
25 | 25 | {/if} |
26 | 26 | {:else} |
|
30 | 30 |
|
31 | 31 | {#if open} |
32 | 32 | <div class="flex flex-col gap-2" transition:slide> |
33 | | - <p class="text-md text-white opacity-80 text-center max-w-128">{description}</p> |
| 33 | + <p class="text-md text-white opacity-80 text-left max-w-128 font-mono">{description}</p> |
34 | 34 | <div class="flex flex-row items-center justify-center gap-2"> |
35 | 35 | <div class="flex flex-row gap-2 items-center justify-center"> |
36 | 36 | {#each buttons as button} |
|
44 | 44 | {:else} |
45 | 45 | <!-- Create link with Phosphor icon --> |
46 | 46 | <div class={open ? "bg-slate-700/40 border-2 border-slate-600/50 transition-all rounded-xl p-4" : ""}> |
47 | | - <button onclick={() => open = !open} class="gap-1 flex items-center md:items-start text-md px-6 py-2 rounded-full hover:bg-slate-600/40 active:bg-slate-700/60 transition-all hover:scale-105 active:scale-95 text-center md:text-left text-white"> |
| 47 | + <button onclick={() => open = !open} class="gap-1 flex items-center md:items-start text-md px-6 py-2 rounded-full hover:bg-slate-600/40 active:bg-slate-700/60 transition-all hover:scale-105 active:scale-95 text-center md:text-left text-white font-mono"> |
48 | 48 | <i class={icon}></i> |
49 | | - <span class="ml-1">{text}</span> |
| 49 | + <span class="ml-1 font-mono">{text}</span> |
50 | 50 | {#if open} |
51 | 51 | <i class="ph-bold ph-caret-up"></i> |
52 | 52 | {#if archived} |
53 | | - <div class="flex flex-row items-center gap-2 bg-orange-500/50 rounded-full px-2"> |
54 | | - <p class="text-sm text-white opacity-80 text-center">Archived</p> |
| 53 | + <div class="flex flex-row items-center gap-2 bg-orange-500/50 rounded-full px-2 ml-2"> |
| 54 | + <p class="text-sm text-white opacity-80 text-center font-mono">Archived</p> |
55 | 55 | </div> |
56 | 56 | {/if} |
57 | 57 | {:else} |
|
61 | 61 |
|
62 | 62 | {#if open} |
63 | 63 | <div class="flex flex-col gap-2" transition:slide> |
64 | | - <p class="text-md text-white opacity-80 text-center">{description}</p> |
| 64 | + <p class="text-md text-white opacity-80 text-left font-mono">{description}</p> |
65 | 65 | <div class="flex flex-row items-center gap-2"> |
66 | 66 | {#each buttons as button} |
67 | 67 | <SmallLink href={button.href} text={button.text} bold={""} icon={button.icon} /> |
|
0 commit comments