-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
3,619 additions
and
251 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,57 @@ | ||
import { useEffect, useState } from 'react'; | ||
import CountUp from 'react-countup'; | ||
import { useInView } from 'react-intersection-observer'; | ||
import { useEffect, useState } from "react"; | ||
import CountUp from "react-countup"; | ||
import { useInView } from "react-intersection-observer"; | ||
|
||
type prop= { | ||
title: string, | ||
count: number | ||
} | ||
type prop = { | ||
title: string; | ||
count: number; | ||
}; | ||
|
||
const Stat= ({title, count}: prop) => { | ||
const Stat = ({ title, count }: prop) => { | ||
return ( | ||
<div className='text-white flex flex-col gap-2 items-center'> | ||
<div className='flex flex-row items-center'> | ||
<CountUp start={0} end={count} duration={6} className='counter md:text-5xl text-3xl font-bold'/> | ||
<div className={(title!='speakers')? 'hidden' : 'md:text-5xl text-3xl font-bold text-right'}>+</div> | ||
<div className="text-white flex flex-col gap-3 items-center"> | ||
<div className="flex flex-row items-center"> | ||
<CountUp | ||
start={0} | ||
end={count} | ||
duration={2} | ||
className="counter md:text-5xl text-3xl font-bold" | ||
/> | ||
<div | ||
className={ | ||
title != "speakers" | ||
? "hidden" | ||
: "md:text-5xl text-3xl font-bold text-right" | ||
} | ||
> | ||
+ | ||
</div> | ||
</div> | ||
<div className='title md:text-xl text-sm uppercase'>{title}</div> | ||
<div className="title md:text-xl text-sm uppercase">{title}</div> | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export const Stats = () => { | ||
const [count, setCount] = useState([0, 0, 0, 0]) | ||
const titles= ['events', 'speakers', 'attendees', 'registrations'] | ||
const {ref, inView}= useInView() | ||
const [count, setCount] = useState([0, 0, 0, 0]); | ||
const titles = ["events", "speakers", "attendees", "registrations"]; | ||
const { ref, inView } = useInView(); | ||
|
||
useEffect(()=>{ | ||
if(inView) setCount([8, 30, 1000, 3000]) | ||
},[inView]) | ||
useEffect(() => { | ||
if (inView) setCount([8, 30, 1000, 3000]); | ||
}, [inView]); | ||
|
||
return ( | ||
<div className="flex flex-col items-center justify-center bg-black w-screen h-screen" ref={ref}> | ||
<h2 className="text-white text-3xl font-bold mb-4">Stats</h2> | ||
<div className='flex md:flex-row flex-col justify-between w-full max-w-[1200px] px-20 py-10 gap-10'> | ||
{titles.map((title, index) => ( | ||
<Stat title={title} count={count[index]}/> | ||
))} | ||
</div> | ||
<div | ||
className="flex flex-col items-center justify-center bg-black w-screen min-h-screen" | ||
ref={ref} | ||
> | ||
<h2 className="text-white text-3xl font-bold mb-16 mt-16">Stats</h2> | ||
<div className="flex md:flex-row flex-col justify-between w-full max-w-[1200px] px-5 md:px-20 py-5"> | ||
{titles.map((title, index) => ( | ||
<Stat title={title} count={count[index]} /> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export const Talks = () => { | ||
return ( | ||
<div | ||
id="aboutus" | ||
className="flex flex-col items-center justify-center bg-black w-screen h-screen" | ||
> | ||
<div className="mt-5"> | ||
<h2 className="text-white text-3xl font-bold mb-4">Previous Talks</h2> | ||
<div className="p-1 rounded-lg shadow-lg"></div> | ||
</div> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.