Skip to content

Commit ee7cc4a

Browse files
committed
Added fade animation feature on MissionPillar, About, and Event. Text border bottom in componenets headers
1 parent 31e383e commit ee7cc4a

5 files changed

Lines changed: 27 additions & 6 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"next": "12.3.1",
2020
"react": "18.1.0",
2121
"react-dom": "18.1.0",
22-
"react-google-recaptcha": "^2.1.0"
22+
"react-google-recaptcha": "^2.1.0",
23+
"react-reveal": "^1.2.2"
2324
},
2425
"devDependencies": {
2526
"@formspree/react": "^2.4.1",

src/components/AboutUs/AboutUs.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
import { Fade } from "react-reveal"
2+
13
export default function AboutUs() {
24
return (
35
<section
46
id="about-us"
57
className="flex flex-col max-w-2xl justify-center items-center self-center space-y-4 px-4"
68
>
7-
<h2 className="text-3xl md:text-6xl tracking-wide md:font-light uppercase">
9+
<Fade right>
10+
<h2 className="text-3xl border-b-2 border-slate-400 md:text-6xl tracking-wide md:font-light uppercase">
811
About Us
912
</h2>
1013
<p className="hidden md:inline-block text-4xl font-bold ">
@@ -16,6 +19,7 @@ export default function AboutUs() {
1619
it&apos;s ecosystem. We are a community of full-stack developers,
1720
frontend developers and so much more
1821
</p>
22+
</Fade>
1923
</section>
2024
);
2125
}

src/components/ContactUs/DesktopVersion.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import ReCAPTCHA from 'react-google-recaptcha';
88
export default function DesktopVersion() {
99
const [captchaComplete, setCaptchaComplete] = useState<boolean>(false);
1010

11-
const [state, handleSubmit] = useForm(process.env.NEXT_PUBLIC_FORMSPREE_ID!);
11+
const [state, handleSubmit] = useForm("process.env.NEXT_PUBLIC_FORMSPREE_ID!");
1212

1313
const handleRecaptchaResult = (result: string | null) => {
1414
if (result) {
@@ -84,7 +84,7 @@ export default function DesktopVersion() {
8484
/>
8585

8686
<ReCAPTCHA
87-
sitekey={process.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY!}
87+
sitekey={"process.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY!"}
8888
onChange={handleRecaptchaResult}
8989
/>
9090

src/components/Events/Events.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Link from 'next/link';
22
import type { EventData } from '../../types/index';
33
import DisplayRC from './DisplayRC';
4+
import {Fade} from "react-reveal"
45

56
const events: EventData[] = [
67
{
@@ -60,10 +61,12 @@ export default function Events() {
6061
id="events"
6162
className="relative flex flex-col items-center justify-center w-full py-16 bg-white md:py-20 gap-y-2 md:gap-y-5"
6263
>
63-
<h2 className="flex items-center justify-center font-light tracking-wide">
64+
<Fade right>
65+
<h2 className="flex text-2xl border-b-2 border-slate-400 items-center justify-center font-light tracking-wide">
6466
Events
6567
</h2>
6668
<h2 className="pb-2 text-2xl font-bold md:pb-10">Community Events</h2>
69+
</Fade>
6770
<div className="grid grid-cols-1 gap-y-4 md:gap-y-10 gap-x-6 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 xl:gap-x-8 md:grid-cols-2 bg-[#09AFC6] px-4 md:px-10 lg:px-16 py-8 md:py-14 xl:py-16">
6871
{events.map((event) => (
6972
<DisplayRC

src/components/MissionPillars/MissionPillars.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,69 @@
11
import Image from 'next/image';
22
import Pillar from '../Pillar/Pillar';
3+
import {Fade} from "react-reveal"
34

45
export default function MissionPillars() {
56
return (
67
<section className="flex flex-col w-full md:justify-center items-center bg-white md:bg-[#CEEDF4] py-12 space-y-10">
7-
<h2 className="md:uppercase font-bold md:font-light text-2xl md:text-5xl">
8+
<h2 className="md:uppercase border-b-2 border-slate-400 font-bold md:font-light text-2xl md:text-5xl">
89
Our Mission Pillars
910
</h2>
1011
<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">
1112
<div className="flex">
13+
<Fade left>
1214
<Pillar count="01" label="Mentorship" />
15+
</Fade>
1316
</div>
1417
<div className="flex justify-end w-full md:w-2/5 lg:w-1/4">
1518
<div className="flex w-1/2 md:w-full">
1619
<div className="w-full overflow-hidden aspect-w-4 aspect-h-3">
20+
<Fade right>
1721
<Image
1822
src={'/images/mentorship-image.jpg'}
1923
alt="Mentorship Image"
2024
layout="fill"
2125
/>
26+
</Fade>
2227
</div>
2328
</div>
2429
</div>
2530
</div>
2631
<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">
2732
<div className="flex justify-end">
33+
<Fade right>
2834
<Pillar count="02" label="Learning" />
35+
</Fade>
2936
</div>
3037
<div className="flex md:justify-start w-full md:w-2/5 lg:w-1/4">
3138
<div className="flex w-1/2 md:w-full">
3239
<div className="w-full overflow-hidden aspect-w-4 aspect-h-3">
40+
<Fade left>
3341
<Image
3442
src={'/images/learning-image.jpg'}
3543
alt="Learning Image"
3644
layout="fill"
3745
/>
46+
</Fade>
3847
</div>
3948
</div>
4049
</div>
4150
</div>
4251
<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">
4352
<div className="flex">
53+
<Fade left>
4454
<Pillar count="03" label="Community" />
55+
</Fade>
4556
</div>
4657
<div className="flex justify-end w-full md:w-2/5 lg:w-1/4 ">
4758
<div className="flex w-1/2 md:w-full">
4859
<div className="w-full overflow-hidden aspect-w-4 aspect-h-3">
60+
<Fade right>
4961
<Image
5062
src={'/images/community-image.jpg'}
5163
alt="Community Image"
5264
layout="fill"
5365
/>
66+
</Fade>
5467
</div>
5568
</div>
5669
</div>

0 commit comments

Comments
 (0)