Skip to content

Commit b691a83

Browse files
authored
Merge pull request #129 from Zackius/animation-zack
Added fade animation feature on MissionPillar, About, and Event. Text…
2 parents 90451bf + 3f5f488 commit b691a83

5 files changed

Lines changed: 31 additions & 6 deletions

File tree

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
"validate": "concurrently --kill-others-on-fail -g -p \"[{name}]\" -n \"prettier,lint,typecheck,build\" \"npm:prettier:check -s\" \"npm:lint -s\" \"npm:typecheck -s\" \"npm:build -s -- --no-lint\""
1515
},
1616
"dependencies": {
17+
"@emotion/react": "^11.10.6",
1718
"@headlessui/react": "^1.7.3",
1819
"@types/react-google-recaptcha": "^2.1.5",
1920
"next": "12.3.1",
2021
"react": "18.1.0",
22+
"react-awesome-reveal": "^4.2.3",
2123
"react-dom": "18.1.0",
2224
"react-google-recaptcha": "^2.1.0"
2325
},

src/components/AboutUs/AboutUs.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
1+
import { Fade } from "react-awesome-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 direction="down">
10+
<h2 className="text-3xl 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 ">
1114
Empowering great talent
12-
</p>
15+
</p>
1316
<p className="sm:text-sm md:text-xl tracking-wide text-center space-y-4">
1417
We bring together people who are passionate about React JS and{' '}
1518
<br className="hidden md:display" />
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/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-awesome-reveal"
45

56
const events: EventData[] = [
67
{
@@ -65,10 +66,12 @@ export default function Events() {
6566
id="events"
6667
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"
6768
>
68-
<h2 className="flex items-center justify-center font-light tracking-wide">
69+
<Fade direction='down'>
70+
<h2 className="flex text-2xl items-center justify-center font-light tracking-wide">
6971
Events
7072
</h2>
7173
<h2 className="pb-2 text-2xl font-bold md:pb-10">Community Events</h2>
74+
</Fade>
7275
<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">
7376
{events.map((event) => (
7477
<DisplayRC

src/components/HeroHeader/DesktopHero.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Image from 'next/image';
22
import React from 'react';
33
import Navbar from '../Navbar';
44
import LinkButton from '../LinkButton/LinkButton';
5+
import {Fade} from "react-awesome-reveal"
56

67
export default function HeroHeader() {
78
return (
@@ -17,13 +18,14 @@ export default function HeroHeader() {
1718
<Navbar />
1819
</div>
1920
<div className="w-full flex flex-col items-center justify-center z-10">
21+
<Fade direction='down'>
2022
<h1 className="font-montserrat font-bold text-center text-white text-[40px] leading-10 w-[388px] mx-auto mt-20">
2123
React Developer Community Kenya
2224
</h1>
2325
<p className="font-montserrat text-white w-[570px] mx-auto text-center mt-5 mb-[45px]">
2426
We are a tech community in Kenya focused on the React JS library and
2527
its ecosystem.
26-
</p>
28+
</p>
2729
<div className="flex items-center justify-center mb-44 relative">
2830
<LinkButton
2931
className="flex justify-center items-center bg-[#EC0505] w-[307px] h-[61px] rounded-md text-white font-montserrat font-bold"
@@ -33,7 +35,8 @@ export default function HeroHeader() {
3335
>
3436
Join ReactDevsKe
3537
</LinkButton>
36-
</div>
38+
</div>
39+
</Fade>
3740
</div>
3841
</div>
3942
);

src/components/MissionPillars/MissionPillars.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,75 @@
11
import Image from 'next/image';
22
import Pillar from '../Pillar/Pillar';
3+
import {Fade} from "react-awesome-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 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 direction="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 direction='right'>
1721
<Image
1822
src={
1923
'https://res.cloudinary.com/reactjs-devs-ke/image/upload/v1678532588/website-images/mentorship-image_tz0mor.jpg'
2024
}
2125
alt="Mentorship Image"
2226
layout="fill"
2327
/>
28+
</Fade>
2429
</div>
2530
</div>
2631
</div>
2732
</div>
2833
<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">
2934
<div className="flex justify-end">
35+
<Fade direction='right'>
3036
<Pillar count="02" label="Learning" />
37+
</Fade>
3138
</div>
3239
<div className="flex md:justify-start w-full md:w-2/5 lg:w-1/4">
3340
<div className="flex w-1/2 md:w-full">
3441
<div className="w-full overflow-hidden aspect-w-4 aspect-h-3">
42+
<Fade direction='left'>
3543
<Image
3644
src={
3745
'https://res.cloudinary.com/reactjs-devs-ke/image/upload/v1678532588/website-images/learning-image_eylqwm.jpg'
3846
}
3947
alt="Learning Image"
4048
layout="fill"
4149
/>
50+
</Fade>
4251
</div>
4352
</div>
4453
</div>
4554
</div>
4655
<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">
4756
<div className="flex">
57+
<Fade direction='left'>
4858
<Pillar count="03" label="Community" />
59+
</Fade>
4960
</div>
5061
<div className="flex justify-end w-full md:w-2/5 lg:w-1/4 ">
5162
<div className="flex w-1/2 md:w-full">
5263
<div className="w-full overflow-hidden aspect-w-4 aspect-h-3">
64+
<Fade direction='right'>
5365
<Image
5466
src={
5567
'https://res.cloudinary.com/reactjs-devs-ke/image/upload/v1678532588/website-images/community-image_pkeqwj.jpg'
5668
}
5769
alt="Community Image"
5870
layout="fill"
5971
/>
72+
</Fade>
6073
</div>
6174
</div>
6275
</div>

0 commit comments

Comments
 (0)