Skip to content

Commit 5ffe6f0

Browse files
authored
fix: mobile responsive design (#2)
1 parent aad0d15 commit 5ffe6f0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

bun.lockb

-793 Bytes
Binary file not shown.

src/lib/components/Header.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<li>
2222
<Anchor
2323
href="https://discord.com/invite/qJgv2p9Ebf"
24-
class="bg-discord-200! hover:bg-discord-400!"
24+
class="text-discord-200 hover:text-discord-400 mb-0"
2525
variant={AnchorVariant.Custom}
2626
size={AnchorSize.Small}
2727
icon={Discord}>Discord</Anchor

src/lib/components/News.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747
<h3 class="text-gray-800 text-lg">{entry.title}</h3>
4848
<p class="text-gray-700">{entry.body}</p>
4949
</article>
50-
<footer class="text-gray-600 flex justify-between items-center">
51-
<Anchor href={entry.url} size={AnchorSize.Small}>Read more</Anchor
52-
>
53-
<div class="flex space-x-4 items-center">
50+
<footer class="text-gray-600 flex flex-col md:flex-row items-start md:items-center justify-between">
51+
<Anchor class="text-left" href={entry.url} size={AnchorSize.Small}>Read more</Anchor
52+
>
53+
<div class="flex space-x-4 items-center md:justify-end justify-between md:w-max w-full">
5454
<time class="text-sm" datetime={entry.date.toISOString()}
5555
>{entry.date.toDateString()}</time
5656
>

0 commit comments

Comments
 (0)