Skip to content

Commit 6b3ea42

Browse files
committed
[ FIX ] fix some paddings, etc.
1 parent b411f1f commit 6b3ea42

File tree

6 files changed

+48
-14
lines changed

6 files changed

+48
-14
lines changed

src/components/About.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ const About = () => {
3131
};
3232

3333
return (
34-
<section id="about" className="py-16 bg-gray-50 dark:bg-gray-900">
34+
<section id="about" className="py-4 bg-gray-50 dark:bg-gray-900">
3535
<div className="p-6 max-w-4xl w-full mx-auto">
36-
<h2 className="text-3xl font-bold mb-10 text-center text-gray-900 dark:text-white">About Me</h2>
36+
<h2 className="text-4xl font-bold mb-10 text-center text-gray-900 dark:text-white">About Me</h2>
3737

3838
<div className="mb-14">
3939
<h3 className="text-2xl font-semibold mb-5 text-gray-800 dark:text-gray-200 flex items-center">

src/components/Bio.jsx

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,49 @@
1+
import React, { useState, useEffect } from 'react';
2+
3+
const ROLES_LIST = ["Software", "Backend"];
4+
15
const Bio = () => {
6+
const [currentRoleIndex, setCurrentRoleIndex] = useState(0);
7+
const [displayedText, setDisplayedText] = useState('');
8+
const [isDeleting, setIsDeleting] = useState(false);
9+
const [typingSpeed, setTypingSpeed] = useState(150);
10+
const pauseDuration = 2000;
11+
12+
useEffect(() => {
13+
const handleTyping = () => {
14+
const currentRole = ROLES_LIST[currentRoleIndex];
15+
if (isDeleting) {
16+
setDisplayedText(currentRole.substring(0, displayedText.length - 1));
17+
setTypingSpeed(75);
18+
} else {
19+
setDisplayedText(currentRole.substring(0, displayedText.length + 1));
20+
setTypingSpeed(150);
21+
}
22+
23+
if (!isDeleting && displayedText === currentRole) {
24+
setTimeout(() => setIsDeleting(true), pauseDuration);
25+
} else if (isDeleting && displayedText === '') {
26+
setIsDeleting(false);
27+
setCurrentRoleIndex((prevIndex) => (prevIndex + 1) % ROLES_LIST.length);
28+
}
29+
};
30+
31+
const timer = setTimeout(handleTyping, typingSpeed);
32+
return () => clearTimeout(timer);
33+
}, [displayedText, isDeleting, currentRoleIndex, typingSpeed, pauseDuration]);
34+
235
return (
3-
<section id="bio" className="py-10 flex items-center justify-center bg-gray-50 dark:bg-gray-900">
36+
<section id="bio" className="py-4 pb-0 flex items-center justify-center bg-gray-50 dark:bg-gray-900">
437
<div className="p-6 max-w-4xl w-full mx-auto shadow-none bg-transparent">
538
<div className="flex flex-col md:flex-row items-center gap-8">
639
<div className="flex-1 text-left md:pr-4">
740
<h1 className="text-4xl font-bold text-gray-900 dark:text-white">
841
<span className="wave-emoji inline-block mr-2 text-7xl">👋</span>
942
Hi, I'm Jaylord Vhan Fabor
1043
</h1>
11-
<p className="text-gray-600 dark:text-gray-400 mt-2 mb-4">
12-
Software Developer | Backend Developer
44+
<p className="text-gray-600 dark:text-gray-400 mt-2 mb-4 h-8 text-3xl">
45+
<span className="underline font-extrabold">{displayedText}</span>
46+
<span className="animate-pulse"> Developer</span>
1347
</p>
1448
<p className="text-gray-700 dark:text-gray-300">
1549
Hey there! I'm more of a backend kind of person — I love setting up a clean, well-structured backend,

src/components/Contact.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ const Contact = () => {
4949
};
5050

5151
return (
52-
<section id="contact" className="py-24 relative bg-gray-50 dark:bg-gray-900">
52+
<section id="contact" className="pt-4 pb-16 relative bg-gray-50 dark:bg-gray-900">
5353
<div className="max-w-4xl mx-auto px-6">
54-
<h2 className="text-3xl font-bold mb-10 text-center text-gray-900 dark:text-white">Get In Touch</h2>
54+
<h2 className="text-4xl font-bold mb-10 text-center text-gray-900 dark:text-white">Get In Touch</h2>
5555
<p className="text-gray-600 dark:text-gray-100 text-center mb-12">
5656
Have a question or want to work together? Fill out the form below and I'll get back to you as soon as possible.
5757
</p>

src/components/Experience.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ const Experience = () => {
2323
};
2424

2525
return (
26-
<section id="experience" className="py-16 bg-gray-50 dark:bg-gray-900">
26+
<section id="experience" className="py-4 bg-gray-50 dark:bg-gray-900">
2727
<div className="p-6 max-w-4xl w-full mx-auto">
28-
<h2 className="text-3xl font-bold mb-10 text-center text-gray-900 dark:text-white">Experience</h2>
28+
<h2 className="text-4xl font-bold mb-10 text-center text-gray-900 dark:text-white">Experience</h2>
2929

3030
<div className="space-y-6">
3131
{experiences.map((exp, index) => (

src/components/Projects.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const Projects = () => {
5151
description: "An educational platform for personalized learning.",
5252
image: "projects/bridgeAI.png",
5353
techStack: ["Python", "GeminiAPI", "Flutter", "Dart", "Flask"],
54-
status: "ongoing",
54+
status: "completed",
5555
category: "Mobile Application",
5656
link: "https://github.com/JjayFabor/bridgeAI"
5757
},
@@ -117,9 +117,9 @@ const Projects = () => {
117117
}, []);
118118

119119
return (
120-
<section id="projects" className="py-20 bg-gray-50 dark:bg-gray-900">
120+
<section id="projects" className="py-4 bg-gray-50 dark:bg-gray-900">
121121
<div className="max-w-6xl mx-auto px-4">
122-
<h2 className="text-3xl font-bold mb-10 text-center text-gray-900 dark:text-white">Projects</h2>
122+
<h2 className="text-4xl font-bold mb-10 text-center text-gray-900 dark:text-white">Projects</h2>
123123

124124
<div className="flex justify-center gap-2 mb-10 flex-wrap">
125125
{categories.map((category) => (

src/components/TechStack.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ const TechStack = () => {
168168
}, []);
169169

170170
return (
171-
<section className="py-10 bg-gray-50 dark:bg-gray-900">
172-
<h2 className="text-center text-2xl font-bold mb-8 text-gray-800 dark:text-gray-100">
171+
<section className="py-4 bg-gray-50 dark:bg-gray-900">
172+
<h2 className="text-center text-4xl font-bold mb-8 text-gray-800 dark:text-gray-100">
173173
My Tech Stack
174174
</h2>
175175

0 commit comments

Comments
 (0)