Skip to content

Commit 84e72e0

Browse files
authored
Merge pull request #14 from milan-codes/dev
Make index page responsive
2 parents b6a23e9 + f69b85a commit 84e72e0

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/components/BlogPostCard.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { post } = Astro.props;
99
---
1010

1111
<div
12-
class="my-2 flex items-center justify-between text-gray-600 dark:text-gray-400"
12+
class="my-2 flex flex-col items-start justify-between text-gray-600 md:flex-row md:items-center dark:text-gray-400"
1313
>
1414
<a class="hover:underline" href={`/blog/${post.id}`}>
1515
{post.data.title}

src/components/ProjectCard.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ const { project } = Astro.props;
1010
const { name, tags, link } = project;
1111
---
1212

13-
<div class="my-2 flex justify-between text-gray-600 dark:text-gray-400">
13+
<div
14+
class="my-2 flex flex-col justify-between text-gray-600 md:flex-row dark:text-gray-400"
15+
>
1416
<a
1517
class="inline-flex items-center hover:underline"
1618
href={link}

0 commit comments

Comments
 (0)