Skip to content

Commit 2ef7314

Browse files
committed
fix(blog): improve hero section styling and layout adjustments
1 parent 947486d commit 2ef7314

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

frontend/src/pages/BlogPostPage.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ const BlogPostPage = () => {
140140
{/* Hero Section */}
141141
<div
142142
ref={setHeroRef}
143-
className="w-full pt-20 md:pt-24 h-96 bg-cover bg-center relative hero-background"
143+
className="w-full md:mt-20 mt-14 pt-24 md:pt-32 min-h-[400px] md:min-h-[500px] bg-cover bg-center relative hero-background"
144144
>
145-
<div className="absolute inset-0 bg-black bg-opacity-50 flex items-end">
146-
<div className="container mx-auto px-4 py-16">
145+
<div className="absolute inset-0 bg-black bg-opacity-50 flex items-center">
146+
<div className="container mx-auto px-4 py-8">
147147
<div className="max-w-4xl">
148-
<div className="flex flex-wrap gap-2 mb-4">
148+
<div className="flex flex-wrap gap-2 mb-6">
149149
{post.categories.map((category: string, index: number) => (
150150
<span
151151
key={index}
@@ -155,7 +155,7 @@ const BlogPostPage = () => {
155155
</span>
156156
))}
157157
</div>
158-
<h1 className="display-1 text-white mb-4">{post.title}</h1>
158+
<h1 className="display-1 text-white mb-6">{post.title}</h1>
159159
<div className="flex items-center text-white">
160160
<div className="flex items-center">
161161
<img

0 commit comments

Comments
 (0)