Skip to content

Commit 6411c65

Browse files
committed
refactor: rearrange certs layout
1 parent a34faa4 commit 6411c65

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

src/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Header from "./components/Header";
22
import About from "./components/About";
33
import Projects from "./components/Projects";
4-
import Certifications from "./components/Certifications";
54
import Footer from "./components/Footer";
65

76
function App() {
@@ -11,7 +10,6 @@ function App() {
1110
<main className="container mx-auto mt-20">
1211
<About />
1312
<Projects />
14-
<Certifications />
1513
</main>
1614
<Footer />
1715
</div>

src/components/About.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
22
import { faGithub, faLinkedin } from "@fortawesome/free-brands-svg-icons";
3+
import Certifications from "./Certifications";
34

45
const About: React.FC = () => {
56
return (
@@ -49,12 +50,15 @@ const About: React.FC = () => {
4950
</div>
5051
</div>
5152

52-
<div className="flex w-full justify-center px-4 lg:w-1/2">
53+
<div className="flex w-full flex-col items-center justify-center px-4 lg:w-1/2">
5354
<img
5455
src="https://raw.githubusercontent.com/SamHillierDev/samhillier.dev/main/src/assets/images/sam-hillier.jpg"
5556
alt="Sam Hillier"
5657
className="h-48 w-48 rounded-full shadow-lg lg:h-64 lg:w-64"
5758
/>
59+
<div className="w-full">
60+
<Certifications />
61+
</div>
5862
</div>
5963
</div>
6064
</section>

src/components/Certifications.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,15 @@ const Certifications: React.FC = () => {
4343
];
4444

4545
return (
46-
<section className="py-8">
47-
<h3 className="mb-6 text-center text-3xl font-semibold">
48-
Certifications
49-
</h3>
50-
<div className="relative mx-auto h-[320px] w-full max-w-4xl overflow-hidden">
46+
<section>
47+
<div className="relative mx-auto w-full max-w-3xl overflow-hidden">
5148
<div className="relative flex flex-wrap items-center justify-center">
5249
{certifications.map((cert, index) => (
5350
<div
5451
key={index}
55-
className={`relative h-[300px] w-[200px] shrink-0 transform overflow-hidden rounded-lg transition-transform ${
56-
hoveredIndex === index ? "z-10 scale-110" : "z-1"
57-
} ${index !== 0 ? "-ml-[80px]" : ""}`}
52+
className={`relative h-[180px] w-[130px] shrink-0 transform overflow-hidden rounded-lg transition-transform ${
53+
hoveredIndex === index ? "z-10 scale-105" : "z-1"
54+
} ${index !== 0 ? "-ml-[40px]" : ""}`}
5855
onMouseEnter={() => setHoveredIndex(index)}
5956
onMouseLeave={() => setHoveredIndex(null)}
6057
>

0 commit comments

Comments
 (0)