Skip to content

Commit 10db26d

Browse files
authored
🔖 - Version 1.2.2 (#29)
2 parents c1221fe + 3ec059c commit 10db26d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

‎src/app/layout.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ export default function RootLayout({
1616
return (
1717
<html lang='es'>
1818
<body className={_roboto.className}>
19-
<div className='my-4 sm:p-5 sm:pl-5 h-screen'>
20-
<div className='flex flex-col sm:flex-row column w-full'>
21-
<div className='w-full sm:w-1/5 flex justify-center mb-8'>
19+
<div className='my-4 lg:p-5 lg:pl-5 h-screen'>
20+
<div className='flex flex-col lg:flex-row column w-full'>
21+
<div className='w-full lg:w-1/5 flex justify-center mb-4'>
2222
<ProfileContainer />
2323
</div>
24-
<div className='w-full sm:w-4/5 flex justify-center sm:justify-start'>
24+
<div className='w-full lg:w-4/5 flex justify-center lg:justify-start'>
2525
<div className='w-[100%]'>{children}</div>
2626
</div>
2727
</div>

‎src/app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ export default function Home() {
1818

1919
return (
2020
<>
21-
<div className='sm:m-8 mx-4'>
21+
<div className='sm:m-8 mx-4 my-2'>
2222
<h1 className='mb-6 sm:mb-8 text-3xl font-black'>Blog</h1>
23-
<div className='flex flex-wrap gap-5'>
23+
<div className='flex flex-wrap gap-5 m-auto'>
2424
{posts.map((post, idx) => (
2525
<PostCard key={idx} {...post} />
2626
))}

‎src/components/PostCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { _roboto } from '@/utils/fonts'
66

77
const PostCard = (post: Blog) => {
88
return (
9-
<div className='w-[100%] sm:w-[40%] shadow-[0_5px_15px_rgba(0,0,0,0.35)] rounded-md flex items-center bg-slate-50 rounded-l-lg'>
9+
<div className='w-[100%] md:w-[80%] lg:w-[60%] shadow-[0_5px_15px_rgba(0,0,0,0.35)] rounded-md flex items-center bg-slate-50 rounded-l-lg max-h-[180px]'>
1010
<div className='rounded-l-lg'>
1111
<Image
1212
width={180}
@@ -16,9 +16,9 @@ const PostCard = (post: Blog) => {
1616
className='rounded-l-lg'
1717
/>
1818
</div>
19-
<div className='flex flex-col items-start px-3'>
19+
<div className='flex flex-col items-start justify-between px-3 w-full h-full'>
2020
<h2
21-
className={`${_roboto.className} mb-5 text-base sm:text-xl font-bold w-full text-left`}
21+
className={`${_roboto.className} my-5 text-base sm:text-xl font-bold w-full text-left`}
2222
>
2323
<Link href={post.slug}>{post.title}</Link>
2424
</h2>

0 commit comments

Comments
 (0)