Skip to content

Commit

Permalink
Merge pull request #284 from Ajay-Dhangar/dev-1.1
Browse files Browse the repository at this point in the history
update and fix bug
  • Loading branch information
ajay-dhangar authored Aug 6, 2024
2 parents d38beb9 + f6a492f commit 1975635
Show file tree
Hide file tree
Showing 2 changed files with 494 additions and 45 deletions.
102 changes: 57 additions & 45 deletions src/components/HomePage/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import { Spotlight } from "../../../ui/Spotlight";
import { TextGenerateEffect } from "../../../ui/TextGenerateEffect";
import MagicButton from "../../../ui/MagicButton";
import { FaLocationArrow } from "react-icons/fa";
import { SparklesCore } from "../../../ui/Sparkles";
import Link from "@docusaurus/Link";

const Hero = () => {
return (
<div className="pb-20 pt-32 md:pt-16 p-4">
<div>
<div className="pb-20 pt-16 md:pt-8 p-4 relative overflow-hidden">
<div className="absolute inset-0 overflow-hidden">
<Spotlight
className="-top-40 -left-10 md:-left-32 md:-top-20 h-screen"
fill="white"
Expand All @@ -20,54 +21,65 @@ const Hero = () => {
<Spotlight className="top-28 left-80 h-[80vh] w-[50vw]" fill="green" />
</div>

<div className="h-screen w-full flex absolute top-0 left-0 items-center justify-center">
<div className="absolute pointer-events-none inset-0 flex items-center justify-center" />
</div>
<div className="flex flex-col items-center justify-center h-screen">
<div className="relative z-10 flex flex-col md:flex-row items-center md:gap-10 mb-10">
<div className="text-center md:text-left flex flex-col items-center md:items-start md:max-w-[70%]">
<h2 className="animate-fadeIn uppercase text-sx text-gray-400">
Seeking Full Stack Development Opportunities
</h2>

<div className="flex md:gap-10 flex-col md:flex-row items-center relative mb-10 z-10">
<div className="md:max-w-[70%] text-center md:text-left flex flex-col">
<h2 className="animate-fadeIn uppercase text-sx text-gray-400">
Seeking Full Stack Development Opportunities
</h2>
<div className="hidden md:inline-flex">
<TextGenerateEffect
mobScreen={false}
className="w-[90%] text-left text-5xl lg:text-6xl"
words="Hi I'm Ajay, an Aspiring Full Stack Developer"
/>
</div>
<div className="inline-flex md:hidden">
<TextGenerateEffect
mobScreen={true}
className="text-[36px] text-center"
words="Hi I'm Ajay Dhangar, The Full Stack Developer"
/>
</div>

<div className="hidden md:inline-flex">
<TextGenerateEffect
mobScreen={false}
className="w-[90%] text-left text-5xl lg:text-6xl"
words="Hi I'm Ajay, an Aspiring Full Stack Developer"
/>
</div>
<div className="inline-flex md:hidden">
<TextGenerateEffect
mobScreen={true}
className="text-[36px] text-center"
words="Hi I'm Ajay Dhangar, The Full Stack Developer"
/>
<p className="animate-fadeIn md:max-w-[50vw] mb-4 tracking-wider md:tracking-normal text-md md:text-lg lg:text-2xl">
A Software engineer specialized in the MERN stack with problem
solving skills and a passion for clean, efficient code. I turn
ideas into solutions through curiosity and collaboration.
</p>
<Link
to="https://drive.google.com/file/d/1kXgSKUjLyc0kcKuOz2SjfNnDfjXv9sHl/view?usp=sharing"
className="animate-fadeIn lg:w-28"
>
<MagicButton
title="My Resume"
icon={<FaLocationArrow />}
position="right"
/>
</Link>
</div>

<p className="animate-fadeIn md:max-w-[50vw] mb-4 tracking-wider md:tracking-normal text-md md:text-lg lg:text-2xl">
A Software engineer specialized in the MERN stack with problem
solving skills and a passion for clean, efficient code. I turn ideas
into solutions through curiosity and collaboration.
</p>
<Link to="https://drive.google.com/file/d/1kXgSKUjLyc0kcKuOz2SjfNnDfjXv9sHl/view?usp=sharing" className="animate-fadeIn lg:w-28">
<MagicButton
title="My Resume"
icon={<FaLocationArrow />}
position="right"
/>
</Link>
</div>
<div className="hidden md:inline-flex">
<div className="z-50 relative">
<img
className="object-cover h-full drop-shadow-lg"
src="/img/ajay-dhangar.png"
alt="Portfolio Owner Image"
width={400}
height={400}
<div className="hidden md:inline-flex">
<div className="relative">
<img
className="object-cover h-full drop-shadow-lg"
src="/img/ajay-dhangar.png"
alt="Portfolio Owner Image"
width={400}
height={400}
/>
<div className="absolute inset-0 mt-[121%] bg-gradient-to-t from-primaryColor via-transparent to-transparent opacity-20 h-1/4 rounded-lg" />
<div className="absolute bottom-0 left-0 right-0 h-12 bg-gradient-to-t from-black/30 to-transparent rounded-lg" />
</div>

<SparklesCore
className="absolute z-0 h-full"
background="transparent"
particleColor="#48df84"
minSize={0.5}
maxSize={1.6}
/>
<div className="absolute inset-0 mt-[121%] bg-gradient-to-t from-primaryColor via-transparent to-transparent opacity-20 h-1/4 rounded-lg" />
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 1975635

Please sign in to comment.