Skip to content

Commit 535de0a

Browse files
authored
Merge pull request #219 from void-ness/#216-Responsive-projects-page
#216 responsive projects page
2 parents fb5da97 + 131dfa0 commit 535de0a

File tree

3 files changed

+18
-19
lines changed

3 files changed

+18
-19
lines changed

src/components/Global/Footer.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const Footer = () => {
4646
<a href="#">
4747
<span className="sr-only">WebX DAO</span>
4848
<img
49-
className="w-auto h-8 sm:h-10"
49+
className="w-auto h-16 sm:h-10"
5050
src="/images/logo/white_logo.png"
5151
alt=""
5252
/>
@@ -63,13 +63,13 @@ const Footer = () => {
6363
<>
6464
<div
6565
key={item.name + "_footer"}
66-
className="text-center sm:text-left"
66+
className="sm:text-left"
6767
>
68-
<p className="text-sm font-medium text-white/90">
68+
<p className="text-lg sm:text-sm font-medium text-white/90">
6969
{item.name}
7070
</p>
7171

72-
<nav className="mt-8" aria-label={item.name}>
72+
<nav className="mt-4 sm:mt-8" aria-label={item.name}>
7373
<ul className="space-y-4 text-sm">
7474
{item.children.map((child) => (
7575
<li key={child.name}>
@@ -89,13 +89,13 @@ const Footer = () => {
8989
</div>
9090
</div>
9191

92-
<div className="pt-6 mt-12">
92+
<div className="pt-6 mt-5 sm:mt-12">
9393
<div className="text-center sm:flex sm:justify-between sm:text-left">
9494
<p className="text-sm text-gray-500">
9595
<span className="block sm:inline">All rights reserved.</span>
9696
</p>
9797

98-
<p className="mt-4 text-sm text-gray-500 sm:order-first sm:mt-0">
98+
<p className="mt-1 text-sm text-gray-500 sm:order-first sm:mt-0">
9999
<span className="flex items-center justify-center">
100100
&copy; {new Date().getFullYear()} Made with
101101
<SiGithubsponsors

src/components/Global/Navbar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ const navigation = [
1515
const Navbar = () => {
1616
return (
1717
<Popover as="header" className="relative">
18-
<div className="pt-6 bg-transparent">
18+
<div className="bg-transparent pt-4 sm:pt-6">
1919
{/* NAVIGATION BAR */}
2020
<nav
21-
className="relative flex items-center justify-between px-4 mx-auto max-w-7xl sm:px-6"
21+
className="relative mx-auto mb-4 flex max-w-7xl items-center justify-between px-4 sm:px-6"
2222
aria-label="Global"
2323
>
2424
<div className="flex items-center flex-1">
@@ -27,7 +27,7 @@ const Navbar = () => {
2727
<>
2828
<span className="sr-only ">WebX DAO</span>
2929
<img
30-
className="w-auto h-8 cursor-pointer sm:h-10"
30+
className="h-10 w-auto sm:h-10 cursor-pointer"
3131
src="/images/logo/white_logo.png"
3232
alt="WebX DAO White Logo"
3333
/>

src/pages/projects.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ 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>
1919
</div>
2020
</section>
2121

22-
<div className="container max-w-screen-xl mx-auto my-8 grid pb-8 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 mb-8 gap-6 px-8">
22+
<div className="container max-w-screen-xl mx-auto my-8 grid pb-8 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 mb-0 sm:mb-8 gap-6 px-8">
2323
{projectsData.map(
2424
({ name, imgUrl, type, title, text, tags }, index) => (
2525
<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)