Skip to content

Commit

Permalink
Update Contacts.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
zcedd committed May 29, 2024
1 parent cc10678 commit cba01d5
Showing 1 changed file with 47 additions and 26 deletions.
73 changes: 47 additions & 26 deletions components/sections/Contacts.jsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,51 @@
import React from 'react'
import { emailLink } from '../../constants/home'
import TextSpan from '../TextSpan'
import { motion } from "framer-motion"
import { staggerContainer, fadeIn } from '../../utils/motion'
import React from "react";
import { emailLink } from "../../constants/home";
import TextSpan from "../TextSpan";
import { motion } from "framer-motion";
import { staggerContainer, fadeIn } from "../../utils/motion";

const Contacts = () => {
const sentence = 'Get In Touch'.split("")
return (
<section className='h-96 my-16'>
<motion.div variants={staggerContainer(0.4, 0)} initial="hidden" whileInView="show" viewport={{once: 'false', amount: 0.45}} className='max-w-xl mx-auto h-full flex flex-col items-center justify-center'>
<motion.h2 variants={fadeIn('up','tween', 0.1, .6)} className="text-5xl font-bold mb-4 text-primary inline-flex">
{sentence.map((letter, index) => (
<TextSpan key={index}>
{letter === " " ? "\u00a0" : letter}
</TextSpan>
))}
</motion.h2>
<motion.p variants={fadeIn('up','tween', 0.1, .6)} className='text-center text-whiteSecondary mb-12'>I am seeking for an opportunity as a Jr. Front-end Web Developer to apply my skills to real projects and learn more technologies. If you are interested, feel free to send me an email. My inbox is always open. </motion.p>
const sentence = "Get In Touch".split("");
return (
<section className="h-96 my-16">
<motion.div
variants={staggerContainer(0.4, 0)}
initial="hidden"
whileInView="show"
viewport={{ once: "false", amount: 0.45 }}
className="max-w-xl mx-auto h-full flex flex-col items-center justify-center"
>
<motion.h2
variants={fadeIn("up", "tween", 0.1, 0.6)}
className="text-5xl font-bold mb-4 text-primary inline-flex"
>
{sentence.map((letter, index) => (
<TextSpan key={index}>
{letter === " " ? "\u00a0" : letter}
</TextSpan>
))}
</motion.h2>
<motion.p
variants={fadeIn("up", "tween", 0.1, 0.6)}
className="text-center text-whiteSecondary mb-12"
>
I am seeking for an opportunity as a Jr. Full-Stack Web
Developer to apply my skills to real projects and learn more
technologies. If you are interested, feel free to send me an
email. My inbox is always open.{" "}
</motion.p>

<motion.a variants={fadeIn('up','tween', 0.1, .6)} href={emailLink} target='_blank' className='px-12 py-2.5 text-lg rounded-md text-wht border-[0.1rem] border-primary bg-primary/10 hover:bg-primary/[.05] font-medium transition-colors ease-in-out duration-200'>
Say Hello !
</motion.a>
<motion.a
variants={fadeIn("up", "tween", 0.1, 0.6)}
href={emailLink}
target="_blank"
className="px-12 py-2.5 text-lg rounded-md text-wht border-[0.1rem] border-primary bg-primary/10 hover:bg-primary/[.05] font-medium transition-colors ease-in-out duration-200"
>
Say Hello !
</motion.a>
</motion.div>
</section>
);
};

</motion.div>
</section>
)
}

export default Contacts
export default Contacts;

0 comments on commit cba01d5

Please sign in to comment.