Skip to content

Commit 958a80b

Browse files
committed
hover color variable added
1 parent 406f292 commit 958a80b

File tree

5 files changed

+58
-53
lines changed

5 files changed

+58
-53
lines changed

src/components/About.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useRef } from "react";
2-
import SectionTitle from "./SectionTitle";
3-
import { useHoverEffect } from "../hooks/useHoverEffect";
42
import { useGsapProjectLeftRightReveal } from "../hooks/gsap";
3+
import { useHoverEffect } from "../hooks/useHoverEffect";
4+
import SectionTitle from "./SectionTitle";
55

66
const data = {
77
img1: "https://res.cloudinary.com/dlc8v0etj/image/upload/v1675931938/cover1_vtesoo.jpg",
@@ -17,12 +17,12 @@ const About = () => {
1717
useGsapProjectLeftRightReveal(aboutArr);
1818

1919
return (
20-
<div className="container mx-auto mt-40" id="about">
20+
<div className='container mx-auto mt-40' id='about'>
2121
<SectionTitle title={"About"} />
2222

23-
<div className="about-wrapper mt-40 grid grid-cols-2 gap-20 overflow-hidden">
24-
<div className="about-left" ref={aboutLeftRef}></div>
25-
<div className="about-right" ref={aboutRightRef}>
23+
<div className='about-wrapper mt-40 grid grid-cols-2 gap-20 overflow-hidden'>
24+
<div className='about-left' ref={aboutLeftRef}></div>
25+
<div className='about-right' ref={aboutRightRef}>
2626
<p>
2727
I am a Front-End-Developer specializing in React, Tailwind CSS,
2828
Redux, responsive design, JavaScript, and React Router would be
@@ -31,17 +31,17 @@ const About = () => {
3131
technologies. My expertise in these technologies allows me to design
3232
and implement responsive layouts.
3333
</p>
34-
<p className="mt-10">
34+
<p className='mt-10'>
3535
Additionally, I would have a strong understanding of javaScript and
3636
be able to write high-quality code using React. My passion for
3737
delivering exceptional user experiences, combined with my technical
3838
skills, make me a valuable asset to any development team.
3939
</p>
4040
<a
41-
href="https://drive.google.com/file/d/1-kShfd5skxs8tuQgsZePOmCYRuwUceUa/view?usp=sharing"
42-
target="_blank"
43-
rel="noopener noreferrer"
44-
className="uppercase py-4 px-8 border border-white/20 rounded-full hover:bg-cyan-400/20 hover:border-cyan-50/20 duration-500 inline-block mt-10"
41+
href='https://drive.google.com/file/d/1-kShfd5skxs8tuQgsZePOmCYRuwUceUa/view?usp=sharing'
42+
target='_blank'
43+
rel='noopener noreferrer'
44+
className='uppercase py-4 px-8 border border-cyan-500 rounded-full hover:bg-hover-color hover:text-gray-900 duration-500 inline-block mt-10'
4545
>
4646
Resume
4747
</a>

src/components/Contact.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import emailjs from "@emailjs/browser";
12
import { useRef } from "react";
23
import { useGsapInputReveal } from "../hooks/gsap";
34
import SectionTitle from "./SectionTitle";
4-
import emailjs from "@emailjs/browser";
55

66
const Contact = () => {
77
const formRef = useRef(null);
@@ -42,47 +42,47 @@ const Contact = () => {
4242
};
4343

4444
return (
45-
<div className="contact container mx-auto mt-40" id="contact">
45+
<div className='contact container mx-auto mt-40' id='contact'>
4646
<SectionTitle title={"Let's Talk"} />
4747

4848
<form
4949
onSubmit={sendEmailHandler}
50-
className="mt-40 grid grid-cols-2 gap-20"
50+
className='mt-40 grid grid-cols-2 gap-20'
5151
ref={formRef}
5252
>
53-
<div className=" form-control overflow-hidden" ref={input1Ref}>
53+
<div className=' form-control overflow-hidden' ref={input1Ref}>
5454
<input
55-
type="text"
56-
placeholder="write your name"
57-
name="fullname"
55+
type='text'
56+
placeholder='write your name'
57+
name='fullname'
5858
required
59-
className="fullname bg-transparent py-8 px-16 border border-white/20 outline-none rounded-full focus:border-cyan-400 duration-500 w-full"
59+
className='fullname bg-transparent py-8 px-16 border border-cyan-500 outline-none rounded-full focus:border-cyan-400 duration-500 w-full'
6060
/>
6161
</div>
62-
<div className=" form-control overflow-hidden" ref={input2Ref}>
62+
<div className=' form-control overflow-hidden' ref={input2Ref}>
6363
<input
64-
type="email"
65-
placeholder="write your email"
66-
name="email"
64+
type='email'
65+
placeholder='write your email'
66+
name='email'
6767
required
68-
className="email bg-transparent py-8 px-16 border border-white/20 outline-none rounded-full focus:border-cyan-400 duration-500 w-full"
68+
className='email bg-transparent py-8 px-16 border border-cyan-500 outline-none rounded-full focus:border-cyan-400 duration-500 w-full'
6969
/>
7070
</div>
71-
<div className=" form-control overflow-hidden" ref={input3Ref}>
71+
<div className=' form-control overflow-hidden' ref={input3Ref}>
7272
<textarea
73-
placeholder="write your message"
74-
name="message"
73+
placeholder='write your message'
74+
name='message'
7575
required
76-
rows="1"
77-
cols="30"
78-
className="message bg-transparent py-8 px-16 border border-white/20 outline-none rounded-full focus:border-cyan-400 duration-500 w-full resize-none"
76+
rows='1'
77+
cols='30'
78+
className='message bg-transparent py-8 px-16 border border-cyan-500 outline-none rounded-full focus:border-cyan-400 duration-500 w-full resize-none'
7979
/>
8080
</div>
81-
<div className="form-control overflow-hidden" ref={input4Ref}>
81+
<div className='form-control overflow-hidden' ref={input4Ref}>
8282
<input
83-
type="submit"
84-
value="send message"
85-
className=" py-8 px-16 border border-white/20 rounded-full hover:bg-cyan-400/20 hover:border-cyan-400/20 duration-500 w-full uppercase cursor-pointer"
83+
type='submit'
84+
value='send message'
85+
className=' py-8 px-16 border border-cyan-500 rounded-full hover:bg-cyan-400/20 hover:border-cyan-400/20 duration-500 w-full uppercase cursor-pointer'
8686
/>
8787
</div>
8888
</form>

src/components/Project.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,54 +11,54 @@ const Project = ({ project }) => {
1111
useGsapProjectLeftRightReveal(projectArr);
1212

1313
return (
14-
<div className="project grid grid-cols-5 overflow-hidden">
14+
<div className='project grid grid-cols-5 overflow-hidden'>
1515
<div
16-
className="project-left col-span-3 flex flex-col gap-8"
16+
className='project-left col-span-3 flex flex-col gap-8'
1717
ref={projectLeftRef}
1818
>
19-
<span className="text-7xl text-white/50">
19+
<span className='text-7xl text-white/50'>
2020
{String(project.id).padStart(2, 0)}
2121
</span>
22-
<h3 className="uppercase text-4xl leading-relaxed tracking-wider text-cyan-400">
22+
<h3 className='uppercase text-4xl leading-relaxed tracking-wider text-cyan-400'>
2323
{project.title}
2424
</h3>
25-
<p className="text-white/75">{project.description}</p>
26-
<span className="text-cyan-400 flex gap-5 flex-wrap leading-none">
25+
<p className='text-white/75'>{project.description}</p>
26+
<span className='text-cyan-400 flex gap-5 flex-wrap leading-none'>
2727
{project.tools.map((tool, i) => (
2828
<span key={i}>{tool}</span>
2929
))}
3030
</span>
31-
<div className="flex gap-8 flex-wrap">
31+
<div className='flex gap-8 flex-wrap'>
3232
<a
3333
href={project.liveLink}
34-
target="_blank"
35-
rel="noopener noreferrer"
36-
className="uppercase py-4 px-8 border border-white/20 rounded-full hover:bg-cyan-400/20 hover:border-cyan-50/20 duration-500"
34+
target='_blank'
35+
rel='noopener noreferrer'
36+
className='uppercase py-4 px-8 border border-cyan-500 rounded-full hover:bg-hover-color hover:text-gray-900 duration-500'
3737
>
3838
Live Site
3939
</a>
4040
<a
4141
href={project.frontEndLink}
42-
target="_blank"
43-
rel="noopener noreferrer"
44-
className="uppercase py-4 px-8 border border-white/20 rounded-full hover:bg-cyan-400/20 hover:border-cyan-50/20 duration-500"
42+
target='_blank'
43+
rel='noopener noreferrer'
44+
className='uppercase py-4 px-8 border border-cyan-500 rounded-full hover:bg-hover-color hover:text-gray-900 duration-500'
4545
>
4646
Front-End Code
4747
</a>
4848
{project.backEndLink && (
4949
<a
5050
href={project.backEndLink}
51-
target="_blank"
52-
rel="noopener noreferrer"
53-
className="uppercase py-4 px-8 border border-white/20 rounded-full hover:bg-cyan-400/20 hover:border-cyan-50/20 duration-500"
51+
target='_blank'
52+
rel='noopener noreferrer'
53+
className='uppercase py-4 px-8 border border-white/20 rounded-full hover:bg-cyan-400/20 hover:border-cyan-50/20 duration-500'
5454
>
5555
Back-End Code
5656
</a>
5757
)}
5858
</div>
5959
</div>
6060
<div
61-
className="project-right col-span-2 justify-self-end"
61+
className='project-right col-span-2 justify-self-end'
6262
ref={projectRightRef}
6363
></div>
6464
</div>

src/index.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
:root {
1313
--color-dark: #050505;
1414
--color-light: #f7f7ff;
15+
--hover-color: #22d3ee;
1516
}
1617
::-webkit-scrollbar {
1718
width: 10px;
@@ -118,7 +119,7 @@ input[type="submit"] {
118119

119120
.link-item::after {
120121
content: "";
121-
background-color: var(--color-light);
122+
background-color: var(--hover-color);
122123
position: absolute;
123124
width: 0%;
124125
height: 1px;

tailwind.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
module.exports = {
33
content: ["./src/**/*.{js,jsx,ts,tsx}"],
44
theme: {
5-
extend: {},
5+
extend: {
6+
colors: {
7+
"hover-color": "var(--hover-color)",
8+
},
9+
},
610
},
711
plugins: [],
812
};

0 commit comments

Comments
 (0)