Skip to content

Commit e06f4d7

Browse files
resolve mobile view issues and increase performance of webiste
1 parent 5e85dd3 commit e06f4d7

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/components/BlogsSection.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const slicedPosts = posts.slice(0, 3);
3131
<!-- Blog Grid -->
3232
<div class="grid gap-8 md:grid-cols-2 lg:grid-cols-3">
3333
{
34-
slicedPosts.map((post) => (
34+
slicedPosts.map((post, index) => (
3535
<BlogCard
3636
url={`/blogs/${post.id}`}
3737
title={post.data.title}
@@ -40,6 +40,7 @@ const slicedPosts = posts.slice(0, 3);
4040
author={post.data.author}
4141
date={post.data.date.toLocaleDateString()}
4242
tags={post.data.tags}
43+
priority={index === 0}
4344
/>
4445
))
4546
}

src/components/Header.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const isCurrentPage = (path: string) => {
9898
<button
9999
id="mobileMenuBtn"
100100
type="button"
101-
class="border-foreground/15 text-foreground flex h-14 w-14 items-center justify-center rounded-3xl border text-4xl"
101+
class="border-foreground/15 text-foreground flex h-12 w-12 items-center justify-center rounded-3xl border text-4xl"
102102
>
103103
104104
</button>
@@ -127,7 +127,7 @@ const isCurrentPage = (path: string) => {
127127
<button
128128
id="closeMenuBtn"
129129
type="button"
130-
class="border-foreground/15 text-foreground flex h-14 w-14 items-center justify-center rounded-3xl border text-4xl"
130+
class="border-foreground/15 text-foreground flex h-12 w-12 items-center justify-center rounded-3xl border text-4xl"
131131
>
132132
133133
</button>

src/pages/about.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const founders = [
9898
</p>
9999

100100

101-
<div class="mt-10 grid grid-cols-1 gap-4 sm:grid-cols-3">a
101+
<div class="mt-10 grid grid-cols-1 gap-4 sm:grid-cols-3">
102102
<div
103103
class="border-foreground/10 bg-background dark:bg-foreground/[0.04] rounded-3xl border p-6 text-center shadow-sm backdrop-blur-sm"
104104
>

0 commit comments

Comments
 (0)