personal-site/app/(components)/Hero.tsx

77 lines
3.0 KiB
TypeScript
Raw Normal View History

2023-07-19 14:49:15 +00:00
"use client";
import React from "react";
import Image from "next/image";
2023-07-19 15:00:48 +00:00
// import TextShuffler from "../../components/actions/TextShuffler";
2023-07-19 14:49:15 +00:00
import { hero } from "../(utils)/animate";
export default function Hero() {
React.useEffect(hero, []);
return (
<div>
2023-07-19 15:00:48 +00:00
<div className="flex flex-col xl:flex-row items-center gap-0 justify-center -mt-[80px] xl:-mt-[160px] w-full relative pt-[500px] md:pt-0">
2023-07-19 14:49:15 +00:00
<div
className="rounded-full max-w-[450px] absolute md:relative top-0 flex items-center md:items-start justify-center mr-0 xl:-mr-14 bg-[#3e3f9c] overflow-hidden"
id="main-image"
>
<Image
src="/images/my-photo.png"
// fill
width={500}
height={562}
objectFit="contain"
alt="Benjamin Toby Image"
className="contrast-[140%] grayscale mt-20 flex items-center justify-center"
/>
</div>
<div
className="max-w-2xl relative z-10 mt-10 w-full"
id="hero-text-section"
>
<h1
2023-07-19 15:00:48 +00:00
className="text-4xl md:text-5xl leading-snug"
2023-07-19 14:49:15 +00:00
id="hero-text"
>
2023-07-19 15:00:48 +00:00
I'm Benjamin Toby, a Software Engineer and UI/UX expert
2023-07-19 14:49:15 +00:00
{/* Fullstack developer, UI/UX designer, Software Engineer, welcome */}
2023-07-19 15:00:48 +00:00
{/* <TextShuffler
2023-07-19 14:49:15 +00:00
textInput="I'm Benjamin Toby, a Software Engineer and UI/UX expert"
delay={500}
2023-07-19 15:00:48 +00:00
/> */}
2023-07-19 14:49:15 +00:00
</h1>
2023-07-19 15:00:48 +00:00
<div className="gap-4 flex items-center flex-wrap">
2023-07-19 14:49:15 +00:00
<a
href="/documents/Resume-Benjamin-Toby-Linkedin.pdf"
download={true}
2023-07-19 15:00:48 +00:00
className="button grow"
2023-07-19 14:49:15 +00:00
>
See my resume
</a>
<a
href="https://www.linkedin.com/in/benjamin-toby/"
target="_blank"
2023-07-19 15:00:48 +00:00
className="button grow"
2023-07-19 14:49:15 +00:00
>
Linkedin
</a>
<a
href="/contact"
style={{
backgroundColor: "transparent",
color: "white",
border: "2px solid white",
}}
2023-07-19 15:00:48 +00:00
className="button grow"
2023-07-19 14:49:15 +00:00
>
Contact Me
</a>
</div>
</div>
</div>
</div>
);
}