Skip to content

Commit 9419fd4

Browse files
committed
Installed React-awesome-reveal and configured it on Mission Pillar, About and the Hero Section
1 parent ee7cc4a commit 9419fd4

4 files changed

Lines changed: 20 additions & 14 deletions

File tree

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@
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",
22-
"react-google-recaptcha": "^2.1.0",
23-
"react-reveal": "^1.2.2"
24+
"react-google-recaptcha": "^2.1.0"
2425
},
2526
"devDependencies": {
2627
"@formspree/react": "^2.4.1",

src/components/AboutUs/AboutUs.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import { Fade } from "react-reveal"
1+
import { Fade } from "react-awesome-reveal"
22

33
export default function AboutUs() {
44
return (
55
<section
66
id="about-us"
77
className="flex flex-col max-w-2xl justify-center items-center self-center space-y-4 px-4"
88
>
9-
<Fade right>
9+
<Fade direction="down">
1010
<h2 className="text-3xl border-b-2 border-slate-400 md:text-6xl tracking-wide md:font-light uppercase">
1111
About Us
1212
</h2>
1313
<p className="hidden md:inline-block text-4xl font-bold ">
1414
Empowering great talent
15-
</p>
15+
</p>
1616
<p className="sm:text-sm md:text-xl tracking-wide text-center space-y-4">
1717
We bring together people who are passionate about React JS and{' '}
1818
<br className="hidden md:display" />

src/components/HeroHeader/DesktopHero.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import React from 'react';
33
import Navbar from '../Navbar';
44
import bgImage from '../../../public/images/hero-image.jpg';
55
import LinkButton from '../LinkButton/LinkButton';
6+
import {Fade} from "react-awesome-reveal"
67

78
export default function HeroHeader() {
89
return (
@@ -18,13 +19,16 @@ export default function HeroHeader() {
1819
<Navbar />
1920
</div>
2021
<div className="w-full flex flex-col items-center justify-center z-10">
22+
<Fade direction='left'>
2123
<h1 className="font-montserrat font-bold text-center text-white text-[40px] leading-10 w-[388px] mx-auto mt-20">
2224
React Developer Community Kenya
2325
</h1>
2426
<p className="font-montserrat text-white w-[570px] mx-auto text-center mt-5 mb-[45px]">
2527
We are a tech community in Kenya focused on the React JS library and
2628
its ecosystem.
27-
</p>
29+
</p>
30+
</Fade>
31+
<Fade direction='right'>
2832
<div className="flex items-center justify-center mb-44 relative">
2933
<LinkButton
3034
className="flex justify-center items-center bg-[#EC0505] w-[307px] h-[61px] rounded-md text-white font-montserrat font-bold"
@@ -34,7 +38,8 @@ export default function HeroHeader() {
3438
>
3539
Join ReactDevsKe
3640
</LinkButton>
37-
</div>
41+
</div>
42+
</Fade>
3843
</div>
3944
</div>
4045
);

src/components/MissionPillars/MissionPillars.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Image from 'next/image';
22
import Pillar from '../Pillar/Pillar';
3-
import {Fade} from "react-reveal"
3+
import {Fade} from "react-awesome-reveal"
44

55
export default function MissionPillars() {
66
return (
@@ -10,14 +10,14 @@ export default function MissionPillars() {
1010
</h2>
1111
<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">
1212
<div className="flex">
13-
<Fade left>
13+
<Fade direction="left">
1414
<Pillar count="01" label="Mentorship" />
1515
</Fade>
1616
</div>
1717
<div className="flex justify-end w-full md:w-2/5 lg:w-1/4">
1818
<div className="flex w-1/2 md:w-full">
1919
<div className="w-full overflow-hidden aspect-w-4 aspect-h-3">
20-
<Fade right>
20+
<Fade direction='right'>
2121
<Image
2222
src={'/images/mentorship-image.jpg'}
2323
alt="Mentorship Image"
@@ -30,14 +30,14 @@ export default function MissionPillars() {
3030
</div>
3131
<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">
3232
<div className="flex justify-end">
33-
<Fade right>
33+
<Fade direction='right'>
3434
<Pillar count="02" label="Learning" />
3535
</Fade>
3636
</div>
3737
<div className="flex md:justify-start w-full md:w-2/5 lg:w-1/4">
3838
<div className="flex w-1/2 md:w-full">
3939
<div className="w-full overflow-hidden aspect-w-4 aspect-h-3">
40-
<Fade left>
40+
<Fade direction='left'>
4141
<Image
4242
src={'/images/learning-image.jpg'}
4343
alt="Learning Image"
@@ -50,14 +50,14 @@ export default function MissionPillars() {
5050
</div>
5151
<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">
5252
<div className="flex">
53-
<Fade left>
53+
<Fade direction='left'>
5454
<Pillar count="03" label="Community" />
5555
</Fade>
5656
</div>
5757
<div className="flex justify-end w-full md:w-2/5 lg:w-1/4 ">
5858
<div className="flex w-1/2 md:w-full">
5959
<div className="w-full overflow-hidden aspect-w-4 aspect-h-3">
60-
<Fade right>
60+
<Fade direction='right'>
6161
<Image
6262
src={'/images/community-image.jpg'}
6363
alt="Community Image"

0 commit comments

Comments
 (0)