Skip to content

Commit fffa5dc

Browse files
authored
Merge pull request #103 from AJ-Kulundu/mission-pillar
2 parents 865a942 + 0d05326 commit fffa5dc

6 files changed

Lines changed: 65 additions & 2 deletions

File tree

public/images/community-image.png

75 KB
Loading

public/images/learning-image.png

222 KB
Loading

public/images/mentorship-image.png

197 KB
Loading
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import React from 'react';
2+
import Pillar from '../Pillar/Pillar';
3+
import Image from 'next/image';
4+
5+
export default function MissionPillars() {
6+
return (
7+
<section className="flex flex-col w-full md:justify-center items-center bg-white md:bg-[#CEEDF4] py-12 space-y-10">
8+
<p className="md:uppercase font-bold md:font-light text-2xl md:text-5xl">
9+
Our Mission Pillars
10+
</p>
11+
<div className="flex flex-col md:flex-row md:items-center md:justify-center w-full px-6 space-y-4 md:space-x-6">
12+
<div className="flex">
13+
<Pillar count="01" label="Mentorship" />
14+
</div>
15+
<div className="flex justify-end w-full md:w-2/5 lg:w-1/4">
16+
<div className="flex w-1/2 md:w-full">
17+
<div className="w-full overflow-hidden aspect-w-4 aspect-h-3">
18+
<Image
19+
src={'/images/mentorship-image.png'}
20+
alt="Mentorship Image"
21+
layout="fill"
22+
/>
23+
</div>
24+
</div>
25+
</div>
26+
</div>
27+
<div className="flex flex-col md:flex-row-reverse md:items-center md:justify-center w-full px-6 space-y-4 md:space-x-6 md:space-x-reverse">
28+
<div className="flex justify-end">
29+
<Pillar count="02" label="Learning" />
30+
</div>
31+
<div className="flex md:justify-start w-full md:w-2/5 lg:w-1/4">
32+
<div className="flex w-1/2 md:w-full">
33+
<div className="w-full overflow-hidden aspect-w-4 aspect-h-3">
34+
<Image
35+
src={'/images/learning-image.png'}
36+
alt="Learning Image"
37+
layout="fill"
38+
/>
39+
</div>
40+
</div>
41+
</div>
42+
</div>
43+
<div className="flex flex-col md:flex-row md:items-center md:justify-center w-full px-6 space-y-4 md:space-x-6">
44+
<div className="flex">
45+
<Pillar count="03" label="Community" />
46+
</div>
47+
<div className="flex justify-end w-full md:w-2/5 lg:w-1/4 ">
48+
<div className="flex w-1/2 md:w-full">
49+
<div className="w-full overflow-hidden aspect-w-4 aspect-h-3">
50+
<Image
51+
src={'/images/community-image.png'}
52+
alt="Community Image"
53+
layout="fill"
54+
/>
55+
</div>
56+
</div>
57+
</div>
58+
</div>
59+
</section>
60+
);
61+
}

src/components/Pillar/Pillar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ export default function Pillar({
88
label: string;
99
}) {
1010
return (
11-
<div className="flex max-w-xs md:max-w-sm min-w-[50%] md:min-w-[30%] space-x-4 p-4 border rounded-lg items-center bg-white md:bg-[#09AFC6]">
11+
<div className="flex max-w-xs lg:max-w-sm min-w-[70%] md:min-w-[50%] space-x-4 p-2 md:p-4 lg:p-6 shadow-md md:shadow-none rounded-lg items-center bg-white md:bg-[#09AFC6]">
1212
<p className="text-2xl md:text-4xl font-extrabold md:text-white tracking-wide">
1313
{count}
1414
</p>
15-
<p className=" truncate text-md md:text-xl capitalize md:text-white tracking-wide">
15+
<p className=" truncate text-lg md:text-3xl capitalize md:text-white tracking-wide">
1616
{label}
1717
</p>
1818
</div>

src/pages/index.page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import logo from '../../public/reactdevske.svg';
44
import Events from '../components/Events/Events';
55
import AboutUs from '../components/about-us/about-us';
66
import ContactUs from '../components/ContactUs';
7+
import MissionPillars from '../components/MissionPillars/MissionPillars';
78

89
export default function Home() {
910
return (
@@ -54,6 +55,7 @@ export default function Home() {
5455
<div className="flex flex-col py-12 bg-white">
5556
<AboutUs />
5657
</div>
58+
<MissionPillars />
5759
<Events />
5860
<ContactUs />
5961
</main>

0 commit comments

Comments
 (0)