1
- import React , { useEffect , useState , useMemo } from "react " ;
2
- import axios from "axios " ;
1
+ import { faGithub , faLinkedin } from "@fortawesome/free-brands-svg-icons " ;
2
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome " ;
3
3
import Particles , { initParticlesEngine } from "@tsparticles/react" ;
4
- import { loadFull } from "tsparticles" ;
4
+ import axios from "axios" ;
5
+ import React , { useEffect , useMemo , useState } from "react" ;
5
6
import Tilty from "react-tilty" ;
6
- import "../components/AboutUs.css" ;
7
- import aboutImage from "../assets/cartoon.png" ;
7
+ import { loadFull } from "tsparticles" ;
8
8
import carImage from "../assets/1 1.png" ;
9
- import Himank from "../assets/Himank.jpg" ;
10
9
import Akshat from "../assets/Akshat.jpg" ;
11
- import Shreya from "../assets/Shreya.jpg" ;
10
+ import aboutImage from "../assets/cartoon.png" ;
11
+ import Himank from "../assets/Himank.jpg" ;
12
12
import Naman from "../assets/Naman.jpg" ;
13
- import Footer from './Footer' ;
14
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' ;
15
- import { faLinkedin , faGithub } from '@fortawesome/free-brands-svg-icons' ;
13
+ import Shreya from "../assets/Shreya.jpg" ;
14
+ import "../components/AboutUs.css" ;
15
+ import Footer from "./Footer" ;
16
16
// import Tilty from "react-tilty";
17
- import { particles } from "./Particles.jsx" ;
18
17
import BackToTop from "./BottomToTop" ;
18
+ import { particles } from "./Particles.jsx" ;
19
19
20
20
const AboutUs = ( ) => {
21
21
const [ contributors , setContributors ] = useState ( [ ] ) ;
@@ -29,7 +29,9 @@ const AboutUs = () => {
29
29
useEffect ( ( ) => {
30
30
const fetchContributors = async ( ) => {
31
31
try {
32
- const response = await axios . get ( 'https://api.github.com/repos/Akshatchaube01/TimeWarp/contributors' ) ;
32
+ const response = await axios . get (
33
+ "https://api.github.com/repos/Akshatchaube01/TimeWarp/contributors"
34
+ ) ;
33
35
setContributors ( response . data ) ;
34
36
} catch ( error ) {
35
37
console . error ( "Error fetching contributors:" , error ) ;
@@ -75,18 +77,18 @@ const AboutUs = () => {
75
77
bottomTxt :
76
78
"Through our passion for exploration and discovery, we seek to inspire curiosity and ignite imaginations, inviting individuals to embark on a journey through time where they can uncover hidden treasures, explore diverse cultures, and witness the remarkable tapestry of human experience." ,
77
79
} ;
78
- const handlehover = ( e ) => {
79
- e . currentTarget . querySelector ( ".hovereffect" ) . style . transform = "scale(1)" ;
80
- }
81
- const hanleleave = ( e ) => {
82
- e . currentTarget . querySelector ( ".hovereffect" ) . style . transform = "scale(0)" ;
83
- }
80
+ const handlehover = ( e ) => {
81
+ e . currentTarget . querySelector ( ".hovereffect" ) . style . transform = "scale(1)" ;
82
+ } ;
83
+ const hanleleave = ( e ) => {
84
+ e . currentTarget . querySelector ( ".hovereffect" ) . style . transform = "scale(0)" ;
85
+ } ;
84
86
return (
85
87
< div className = "about-container md:m-16 mt-8 p-25 " >
86
88
< Particles id = "tsparticles" options = { useMemo ( ( ) => particles , [ ] ) } />
87
89
< BackToTop />
88
90
< div className = "about-content items-center mb-24 " >
89
- < span className = "image-container image-container-one grid justify-center" >
91
+ < span className = "image-container image-container-one grid justify-center" >
90
92
< Tilty >
91
93
< img
92
94
src = { aboutImage }
@@ -99,15 +101,14 @@ const AboutUs = () => {
99
101
< h1 className = "rounded-md about-title text-4xl text-center italic font-bold p-2 mb-8 mt-[100px] bg-gradient-to-r from-sky-500" >
100
102
About Us
101
103
</ h1 >
102
-
103
- < p className = "about-text italic text-lg font-light text-justify mb-4" >
104
+
105
+ < p className = "about-text italic text-lg font-light text-justify mb-4 p-6 " >
104
106
{ about . topTxt }
105
107
</ p >
106
- < p className = "about-text italic text-lg font-light text-justify" >
108
+ < p className = "about-text italic text-lg font-light text-justify p-6 " >
107
109
{ about . bottomTxt }
108
110
</ p >
109
111
</ div >
110
-
111
112
</ div >
112
113
113
114
< div className = "our-vision mb-28 " >
@@ -124,10 +125,10 @@ const AboutUs = () => {
124
125
< h1 className = "about-title rounded-md text-4xl text-center italic font-bold p-2 mb-8 bg-gradient-to-l from-sky-500" >
125
126
Our Vision
126
127
</ h1 >
127
- < p className = "about-text italic text-lg font-light text-justify" >
128
+ < p className = "about-text italic text-lg font-light text-justify p-6 " >
128
129
{ vision . topTxt }
129
130
</ p >
130
- < p className = "about-text italic text-lg font-light text-justify" >
131
+ < p className = "about-text italic text-lg font-light text-justify p-6 " >
131
132
{ vision . bottomTxt }
132
133
</ p >
133
134
</ div >
@@ -142,23 +143,51 @@ const AboutUs = () => {
142
143
</ div >
143
144
< div className = "grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3 " >
144
145
{ teamMembers . map ( ( member , index ) => (
145
- < Tilty key = { index } className = "w-full bg-sky-900/50 backdrop-blur-sm shadow-sky-100 rounded-lg shadow-lg p-12 flex flex-col justify-center items-center" glare scale = { 1.05 } maxGlare = { 0.5 } onMouseEnter = { handlehover } onMouseLeave = { hanleleave } >
146
+ < Tilty
147
+ key = { index }
148
+ className = "w-full bg-sky-900/50 backdrop-blur-sm shadow-sky-100 rounded-lg shadow-lg p-12 flex flex-col justify-center items-center"
149
+ glare
150
+ scale = { 1.05 }
151
+ maxGlare = { 0.5 }
152
+ onMouseEnter = { handlehover }
153
+ onMouseLeave = { hanleleave }
154
+ >
146
155
< div className = "hovereffect absolute bg-black/50 w-full h-full flex justify-center flex-col items-center gap-3 scale-0" >
147
156
< div className = "flex flex-col items-center" >
148
- < p className = "text-xl text-white font-bold" > { member . memberName } </ p >
157
+ < p className = "text-xl text-white font-bold" >
158
+ { member . memberName }
159
+ </ p >
149
160
< p className = "text-xl text-white font-thin mb-2" > Member</ p >
150
161
</ div >
151
- < p className = "text-xl text-gray-400 font-semibold mb-2" > Tech Stack</ p >
162
+ < p className = "text-xl text-gray-400 font-semibold mb-2" >
163
+ Tech Stack
164
+ </ p >
152
165
< div className = "flex gap-8 justify-center items-center flex-wrap" >
153
- < a href = "https://google.com" target = "_blank" > < FontAwesomeIcon icon = { faLinkedin } size = "lg" className = "text-white text-3xl" /> </ a >
154
- < a href = "https://github.com" target = "_blank" > < FontAwesomeIcon icon = { faGithub } size = "lg" className = "text-white text-3xl" /> </ a >
166
+ < a href = "https://google.com" target = "_blank" >
167
+ < FontAwesomeIcon
168
+ icon = { faLinkedin }
169
+ size = "lg"
170
+ className = "text-white text-3xl"
171
+ />
172
+ </ a >
173
+ < a href = "https://github.com" target = "_blank" >
174
+ { " " }
175
+ < FontAwesomeIcon
176
+ icon = { faGithub }
177
+ size = "lg"
178
+ className = "text-white text-3xl"
179
+ />
180
+ </ a >
155
181
</ div >
156
182
</ div >
157
183
< div className = "mb-8" >
158
- < img className = "object-center object-cover rounded-lg h-40 w-40" src = { member . imgSrc } alt = { member . alt } />
159
- </ div >
160
- < div className = "text-center" >
184
+ < img
185
+ className = "object-center object-cover rounded-lg h-40 w-40"
186
+ src = { member . imgSrc }
187
+ alt = { member . alt }
188
+ />
161
189
</ div >
190
+ < div className = "text-center" > </ div >
162
191
</ Tilty >
163
192
) ) }
164
193
</ div >
@@ -207,4 +236,4 @@ const AboutUs = () => {
207
236
) ;
208
237
} ;
209
238
210
- export default AboutUs ;
239
+ export default AboutUs ;
0 commit comments