-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHero.tsx
53 lines (46 loc) · 1.73 KB
/
Hero.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import Link from "next/link";
import {Cursor,useTypewriter} from "react-simple-typewriter"
import BackgroundCircles from "./BackgroundCircles";
type Props = {}
function Hero({}: Props) {
const[text,count]=useTypewriter({
words:[
"Hey,Albin Sabu here.",
"Love to See you ",
"Lets <Explore.tsx/>"
],
loop:true,
delaySpeed:2000,
});
return (
<div className=" flex flex-col space-y-8 h-screen items-center justify-center text-center overflow-hidden">
<BackgroundCircles/>
<img
className="relative rounded-full h-32 w-32 mx-auto object-cover"
src="https://avatars.githubusercontent.com/u/84149653?v=4"
alt=""/>
<div className="z-20">
<h2 className="text-sm uppercase text-gray-500 pb-2 tracking-[15px]">Software Engineer</h2>
<h1 className="text-5xl xl:text-6xl font-semibold px-10">
<span className=" mr-3">{text}</span>
<Cursor cursorColor="#F7AB0A"/>
</h1>
<div className="pt-5">
<Link href="#about">
<button className="heroButton">About</button>
</Link>
<Link href="#skills">
<button className="heroButton">Skills</button>
</Link>
<Link href="#projects">
<button className="heroButton">Projects</button>
</Link>
<Link href="#contact">
<button className="heroButton">ContactMe</button>
</Link>
</div>
</div>
</div>
)
}
export default Hero