-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHero.tsx
76 lines (68 loc) · 2.51 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import { FaLocationArrow } from "react-icons/fa6";
import MagicButton from "./MagicButton";
import { Spotlight } from "./ui/Spotlight";
import { TextGenerateEffect } from "./ui/TextGenerateEffect";
const Hero = () => {
return (
<div className="pb-20 pt-36">
{/**
* UI: Spotlights
* Link: https://ui.aceternity.com/components/spotlight
*/}
<div>
<Spotlight
className="-top-40 -left-10 md:-left-32 md:-top-20 h-screen"
fill="white"
/>
<Spotlight
className="h-[80vh] w-[50vw] top-10 left-full"
fill="purple"
/>
<Spotlight className="left-80 top-28 h-[80vh] w-[50vw]" fill="blue" />
</div>
{/**
* UI: grid
* change bg color to bg-black-100 and reduce grid color from
* 0.2 to 0.03
*/}
<div
className="h-screen w-full dark:bg-black-100 bg-white dark:bg-grid-white/[0.03] bg-grid-black-100/[0.2]
absolute top-0 left-0 flex items-center justify-center"
>
{/* Radial gradient for the container to give a faded look */}
<div
// chnage the bg to bg-black-100, so it matches the bg color and will blend in
className="absolute pointer-events-none inset-0 flex items-center justify-center dark:bg-black-100
bg-white [mask-image:radial-gradient(ellipse_at_center,transparent_20%,black)]"
/>
</div>
<div className="flex justify-center relative my-20 z-10">
<div className="max-w-[89vw] md:max-w-2xl lg:max-w-[60vw] flex flex-col items-center justify-center">
<p className="uppercase tracking-widest text-xs text-center text-blue-100 max-w-80">
Dynamic Web Magic with Next.js
</p>
{/**
* Link: https://ui.aceternity.com/components/text-generate-effect
*
* change md:text-6xl, add more responsive code
*/}
<TextGenerateEffect
words="Transforming Concepts into Intelligent AI Solutions"
className="text-center text-[40px] md:text-5xl lg:text-6xl"
/>
<p className="text-center md:tracking-wider mb-4 text-sm md:text-lg lg:text-2xl">
Hi! I'm Shareef, a Data scientist based in India.
</p>
<a href="#about">
<MagicButton
title="Show my work"
icon={<FaLocationArrow />}
position="right"
/>
</a>
</div>
</div>
</div>
);
};
export default Hero;