From f86cfe972501c9e69cbbe0f6eefd2a79900fe664 Mon Sep 17 00:00:00 2001 From: Amirhossein Khalili Date: Sun, 6 Sep 2026 21:59:06 +0330 Subject: [PATCH] style(credentials): refine education and certificate cards --- src/components/EducationSection.module.css | 15 +++++++++------ src/components/EducationSection.tsx | 4 ---- src/components/MilestonesSection.module.css | 5 +++-- src/components/MilestonesSection.tsx | 5 +++-- src/data/milestones.ts | 2 +- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/components/EducationSection.module.css b/src/components/EducationSection.module.css index 7a635d7..b0c123b 100644 --- a/src/components/EducationSection.module.css +++ b/src/components/EducationSection.module.css @@ -7,24 +7,25 @@ .card { width: 100%; - background-color: transparent; + background-color: var(--bg-raised); border: 1px solid var(--border-default); border-radius: var(--radius-lg); - padding: 1.5rem 2rem; + padding: 2rem 2.5rem; display: flex; - align-items: center; + align-items: flex-start; gap: 2.25rem; transition: border-color var(--motion-duration-fast) ease, transform var(--motion-duration-default) var(--motion-ease-out); + box-shadow: 0 0.75rem 2.5rem var(--shadow-color); } .crestCol { width: 16.5rem; flex-shrink: 0; display: flex; - align-items: center; - justify-content: center; + align-items: flex-start; + justify-content: flex-start; } .crestContainer { @@ -38,6 +39,7 @@ .crestImage { object-fit: contain; + object-position: left top; width: 100%; height: 100%; } @@ -77,13 +79,14 @@ } .description { + max-width: 72ch; font-size: var(--font-size-body-default); line-height: var(--line-height-body-default); color: var(--text-secondary); } [data-theme="dark"] .card { - background-color: var(--bg-surface); + background-color: var(--bg-raised); } @media (max-width: 760px) { diff --git a/src/components/EducationSection.tsx b/src/components/EducationSection.tsx index ded8752..ee7c166 100644 --- a/src/components/EducationSection.tsx +++ b/src/components/EducationSection.tsx @@ -1,5 +1,3 @@ -'use client'; - import React from 'react'; import Image from 'next/image'; import { education } from '@/data/education'; @@ -9,9 +7,7 @@ export const EducationSection: React.FC = () => { return (
- {/* Section Header */}
- EDUCATION

Where I Built the Foundation

diff --git a/src/components/MilestonesSection.module.css b/src/components/MilestonesSection.module.css index e161761..30b8ea0 100644 --- a/src/components/MilestonesSection.module.css +++ b/src/components/MilestonesSection.module.css @@ -13,7 +13,7 @@ .certCard { width: 100%; - background-color: transparent; + background-color: var(--bg-raised); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 1.5rem 2rem; @@ -102,10 +102,11 @@ font-weight: 600; color: var(--action-link); transition: gap 0.2s ease; + min-height: 2.75rem; } [data-theme="dark"] .certCard { - background-color: var(--bg-surface); + background-color: var(--bg-raised); } @media (max-width: 760px) { diff --git a/src/components/MilestonesSection.tsx b/src/components/MilestonesSection.tsx index 2ff1bd4..333425f 100644 --- a/src/components/MilestonesSection.tsx +++ b/src/components/MilestonesSection.tsx @@ -50,13 +50,14 @@ export const MilestonesSection: React.FC = () => { {/* View Certificate Link */}
diff --git a/src/data/milestones.ts b/src/data/milestones.ts index fd8d3d2..9eeccb5 100644 --- a/src/data/milestones.ts +++ b/src/data/milestones.ts @@ -55,7 +55,7 @@ export const milestones: MilestoneItem[] = [ issuer: 'Quera.org', date: 'NOVEMBER 2024', description: - 'This bootcamp strengthened my foundations in backend development and helped turn my knowledge of Python into practical web engineering skills. Through Django, I developed a deeper understanding of backend architecture, databases, APIs, authentication, and building maintainable server-side applications—skills that later became a major part of my software engineering work.', + 'This bootcamp strengthened my foundations in backend development and helped turn my knowledge of Python into practical web engineering skills. Through Django, I developed a deeper understanding of backend architecture, databases, APIs, authentication, and building maintainable server-side applications. These skills later became a major part of my software engineering work.', image: '/images/cert-django.png', link: '#', },