Skip to content

Commit 862a00b

Browse files
committed
style: make project card responsive
1 parent 0af3d02 commit 862a00b

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/pages/projects.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ export default function Projects({ projectsData }) {
88
<title>Projects | WebXDAO</title>
99
</Head>
1010
<section className="text-white text-center bg-[#00007f]">
11-
<div className="px-20 py-20">
11+
<div className="px-5 py-10 sm:p-20">
1212
<h1 className="font-bold text-3xl md:text-5xl antialiased">
1313
Resources/Projects
1414
</h1>
15-
<div className="mt-6 text-xl font-light text-true-gray-500 antialiased">
15+
<div className="mt-6 text-lg md:text-xl font-light text-true-gray-500 antialiased">
1616
Here you can find a list of good projects and resources to learn
1717
about Blockchain and Web 3.0
1818
</div>
@@ -29,25 +29,24 @@ export default function Projects({ projectsData }) {
2929
<div className="bg-white p-4 rounded-lg flex flex-col justify-between">
3030
<div className="relative mb-6">
3131
<img
32-
className="lg:h-60 xl:h-56 md:h-64 h-72 w-full object-cover object-center rounded-md"
32+
className="h-44 md:h-64 lg:h-60 xl:h-56 w-full object-cover object-center rounded-md"
3333
src={prefix + imgUrl}
3434
alt={name}
3535
/>
3636
</div>
37-
<div className="flex justify-between">
38-
<h2 className="text-xl text-gray-900 font-semibold mb-4">
37+
<div className="flex justify-between items-center md:items-start mb-2 md:mb-4">
38+
<h2 className="text-lg md:text-xl text-gray-900 font-semibold">
3939
{title}
4040
</h2>
4141
<h3
42-
className={`tracking-widest ${
43-
type === 'FREE' ? 'text-green-500' : 'text-yellow-500'
44-
} text-sm font-semibold title-font`}
42+
className={`tracking-widest ${type === 'FREE' ? 'text-green-500' : 'text-yellow-500'
43+
} text-sm font-semibold title-font`}
4544
>
4645
{type}
4746
</h3>
4847
</div>
4948

50-
<p className="leading-relaxed text-base text-gray-800 mb-5">
49+
<p className="leading-relaxed text-sm md:text-base text-gray-800 mb-5">
5150
{text}
5251
</p>
5352

0 commit comments

Comments
 (0)