Enhance About Me page with modern components and animations
- Replaced existing widgets with modern versions for Work Experience, Certifications, Skills, and Education sections to improve visual appeal and interactivity. - Introduced an animated hero background and enhanced call-to-action buttons for better user engagement. - Implemented staggered animations for content sections to create a more dynamic user experience. - Updated styles for a cohesive glassmorphism effect across all sections, enhancing the overall aesthetic of the page.
This commit is contained in:
@@ -4,10 +4,11 @@ import Layout from '~/layouts/PageLayout.astro';
|
||||
import StructuredData from '~/components/common/StructuredData.astro';
|
||||
import Hero from '~/components/widgets/Hero.astro';
|
||||
import Content from '~/components/widgets/Content.astro';
|
||||
import CompactSteps from '~/components/widgets/CompactSteps.astro';
|
||||
import WorkExperience from '~/components/widgets/WorkExperience.astro';
|
||||
import CompactCertifications from '~/components/widgets/CompactCertifications.astro';
|
||||
import CompactSkills from '~/components/widgets/CompactSkills.astro';
|
||||
import ModernEducation from '~/components/widgets/ModernEducation.astro';
|
||||
import ModernWorkExperience from '~/components/widgets/ModernWorkExperience.astro';
|
||||
import ModernCertifications from '~/components/widgets/ModernCertifications.astro';
|
||||
import ModernSkills from '~/components/widgets/ModernSkills.astro';
|
||||
import CallToAction from '~/components/widgets/CallToAction.astro';
|
||||
import HomePageImage from '~/assets/images/richardbergsma.png';
|
||||
|
||||
import { getTranslation, supportedLanguages } from '~/i18n/translations';
|
||||
@@ -31,6 +32,332 @@ const metadata = {
|
||||
};
|
||||
---
|
||||
|
||||
<style>
|
||||
/* Modern animated background with floating elements */
|
||||
.animated-hero-bg {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
|
||||
background-size: 300% 300%;
|
||||
animation: gradientShift 15s ease infinite;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.animated-hero-bg::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -50%;
|
||||
left: -50%;
|
||||
width: 200%;
|
||||
height: 200%;
|
||||
background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
|
||||
background-size: 50px 50px;
|
||||
animation: backgroundMove 20s linear infinite;
|
||||
}
|
||||
|
||||
.floating-elements {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.floating-shape {
|
||||
position: absolute;
|
||||
opacity: 0.15;
|
||||
animation: float 20s infinite linear;
|
||||
}
|
||||
|
||||
.shape-1 {
|
||||
top: 20%;
|
||||
left: 10%;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
|
||||
border-radius: 50%;
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
animation-delay: 0s;
|
||||
}
|
||||
|
||||
.shape-2 {
|
||||
top: 60%;
|
||||
right: 15%;
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.03));
|
||||
border-radius: 30px;
|
||||
backdrop-filter: blur(15px);
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
animation-delay: -7s;
|
||||
}
|
||||
|
||||
.shape-3 {
|
||||
bottom: 30%;
|
||||
left: 20%;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
|
||||
border-radius: 50%;
|
||||
backdrop-filter: blur(8px);
|
||||
border: 1px solid rgba(255,255,255,0.15);
|
||||
animation-delay: -14s;
|
||||
}
|
||||
|
||||
.shape-4 {
|
||||
top: 40%;
|
||||
right: 35%;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
|
||||
border-radius: 8px;
|
||||
backdrop-filter: blur(12px);
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
animation-delay: -10s;
|
||||
}
|
||||
|
||||
@keyframes gradientShift {
|
||||
0%, 100% { background-position: 0% 50%; }
|
||||
50% { background-position: 100% 50%; }
|
||||
}
|
||||
|
||||
@keyframes backgroundMove {
|
||||
0% { transform: translateX(0) translateY(0); }
|
||||
100% { transform: translateX(-50px) translateY(-50px); }
|
||||
}
|
||||
|
||||
@keyframes float {
|
||||
0%, 100% {
|
||||
transform: translateY(0px) rotate(0deg) scale(1);
|
||||
opacity: 0.15;
|
||||
}
|
||||
25% {
|
||||
transform: translateY(-30px) rotate(90deg) scale(1.1);
|
||||
opacity: 0.25;
|
||||
}
|
||||
50% {
|
||||
transform: translateY(-15px) rotate(180deg) scale(1.05);
|
||||
opacity: 0.2;
|
||||
}
|
||||
75% {
|
||||
transform: translateY(-25px) rotate(270deg) scale(1.15);
|
||||
opacity: 0.3;
|
||||
}
|
||||
}
|
||||
|
||||
/* Enhanced glassmorphism effects for all sections */
|
||||
:global(.glass-enhanced) {
|
||||
background: rgba(255, 255, 255, 0.95) !important;
|
||||
backdrop-filter: blur(20px) !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.2) !important;
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1),
|
||||
0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
||||
}
|
||||
|
||||
:global(.glass-enhanced:hover) {
|
||||
transform: translateY(-8px) !important;
|
||||
box-shadow: 0 32px 80px rgba(0, 0, 0, 0.15),
|
||||
0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
|
||||
background: rgba(255, 255, 255, 0.98) !important;
|
||||
}
|
||||
|
||||
/* Dark mode enhancements */
|
||||
:global(.dark .glass-enhanced) {
|
||||
background: rgba(30, 30, 50, 0.95) !important;
|
||||
border-color: rgba(255, 255, 255, 0.1) !important;
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
|
||||
0 0 0 1px rgba(255, 255, 255, 0.03) inset !important;
|
||||
}
|
||||
|
||||
:global(.dark .glass-enhanced:hover) {
|
||||
background: rgba(35, 35, 60, 0.98) !important;
|
||||
box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4),
|
||||
0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
|
||||
}
|
||||
|
||||
/* More compact hero title */
|
||||
.hero-title-enhanced {
|
||||
font-size: clamp(2.5rem, 6vw, 4.5rem);
|
||||
font-weight: 900;
|
||||
background: linear-gradient(135deg,
|
||||
#667eea 0%,
|
||||
#764ba2 25%,
|
||||
#f093fb 50%,
|
||||
#f5576c 75%,
|
||||
#4facfe 100%);
|
||||
background-size: 300% 300%;
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
animation: gradientShift 8s ease-in-out infinite;
|
||||
letter-spacing: -0.02em;
|
||||
line-height: 1.1;
|
||||
margin-bottom: 1.5rem;
|
||||
text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
|
||||
}
|
||||
|
||||
/* Full-width subtitle */
|
||||
.hero-subtitle-enhanced {
|
||||
font-size: 1.2rem;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
backdrop-filter: blur(15px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 16px;
|
||||
padding: 1.5rem 2rem;
|
||||
color: #1a1a1a;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
margin: 0 0 2rem 0;
|
||||
line-height: 1.6;
|
||||
font-weight: 500;
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
:global(.dark) .hero-subtitle-enhanced {
|
||||
background: rgba(30, 30, 50, 0.9);
|
||||
color: #e2e8f0;
|
||||
border-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
/* Full-width subtitle container */
|
||||
.hero-subtitle-container {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* More compact CTA buttons */
|
||||
.cta-container {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.cta-primary-enhanced {
|
||||
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||
color: white;
|
||||
padding: 0.875rem 2rem;
|
||||
border-radius: 50px;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
font-size: 1rem;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
|
||||
border: 2px solid transparent;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cta-primary-enhanced::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
|
||||
transition: left 0.5s;
|
||||
}
|
||||
|
||||
.cta-primary-enhanced:hover::before {
|
||||
left: 100%;
|
||||
}
|
||||
|
||||
.cta-primary-enhanced:hover {
|
||||
transform: translateY(-5px) scale(1.05);
|
||||
box-shadow: 0 25px 50px rgba(102, 126, 234, 0.5);
|
||||
}
|
||||
|
||||
.cta-secondary-enhanced {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
backdrop-filter: blur(15px);
|
||||
color: white;
|
||||
padding: 0.875rem 2rem;
|
||||
border-radius: 50px;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
font-size: 1rem;
|
||||
border: 2px solid rgba(255, 255, 255, 0.3);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
/* Section spacing - key fix for touching sections */
|
||||
.content-section {
|
||||
margin: 4rem 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.content-section:first-of-type {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.content-section:last-of-type {
|
||||
margin-bottom: 4rem;
|
||||
}
|
||||
|
||||
.cta-secondary-enhanced:hover {
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
transform: translateY(-3px);
|
||||
border-color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
/* Staggered animations for content sections */
|
||||
.stagger-animation {
|
||||
animation: slideUpStagger 0.8s ease-out forwards;
|
||||
opacity: 0;
|
||||
transform: translateY(40px);
|
||||
}
|
||||
|
||||
.stagger-animation:nth-child(1) { animation-delay: 0.1s; }
|
||||
.stagger-animation:nth-child(2) { animation-delay: 0.2s; }
|
||||
.stagger-animation:nth-child(3) { animation-delay: 0.3s; }
|
||||
.stagger-animation:nth-child(4) { animation-delay: 0.4s; }
|
||||
.stagger-animation:nth-child(5) { animation-delay: 0.5s; }
|
||||
.stagger-animation:nth-child(6) { animation-delay: 0.6s; }
|
||||
|
||||
@keyframes slideUpStagger {
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive adjustments */
|
||||
@media (max-width: 768px) {
|
||||
.hero-subtitle-enhanced {
|
||||
font-size: 1.1rem;
|
||||
padding: 1.25rem 1.5rem;
|
||||
margin: 0 0 1.5rem 0;
|
||||
}
|
||||
|
||||
.cta-container {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
.cta-primary-enhanced,
|
||||
.cta-secondary-enhanced {
|
||||
width: 100%;
|
||||
max-width: 260px;
|
||||
text-align: center;
|
||||
padding: 0.875rem 1.5rem;
|
||||
}
|
||||
|
||||
.content-section {
|
||||
margin: 3rem 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<Layout metadata={metadata}>
|
||||
<Fragment slot="announcement"></Fragment>
|
||||
|
||||
@@ -55,89 +382,169 @@ const metadata = {
|
||||
}}
|
||||
/>
|
||||
|
||||
<!-- Hero Widget -->
|
||||
<!-- Enhanced Hero Section -->
|
||||
<Hero id="hero" isDark={false}>
|
||||
<Fragment slot="bg">
|
||||
<div class="animated-hero-bg">
|
||||
<div class="floating-elements">
|
||||
<div class="floating-shape shape-1"></div>
|
||||
<div class="floating-shape shape-2"></div>
|
||||
<div class="floating-shape shape-3"></div>
|
||||
<div class="floating-shape shape-4"></div>
|
||||
</div>
|
||||
</div>
|
||||
</Fragment>
|
||||
|
||||
<Fragment slot="title">
|
||||
<span class="hero-title-enhanced">{t.hero.greeting}</span>
|
||||
</Fragment>
|
||||
|
||||
<Fragment slot="subtitle">
|
||||
<strong class="text-3xl md:text-4xl">{t.hero.greeting}</strong><br /><br />{t.hero.subtitle}
|
||||
<div class="hero-subtitle-container">
|
||||
<div class="hero-subtitle-enhanced">
|
||||
{t.hero.subtitle}
|
||||
</div>
|
||||
<div class="cta-container">
|
||||
<a href="#about" class="cta-primary-enhanced">
|
||||
{t.about.actions.learnMore}
|
||||
</a>
|
||||
<a href="#resume" class="cta-secondary-enhanced">
|
||||
{t.about.actions.viewExperience}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</Fragment>
|
||||
</Hero>
|
||||
|
||||
<!-- Content Widget -->
|
||||
<Content
|
||||
id="about"
|
||||
columns={2}
|
||||
items={[]}
|
||||
image={{
|
||||
src: HomePageImage,
|
||||
alt: 'Richard Bergsma smiling in the mountains of Switzerland holding Revella',
|
||||
loading: 'lazy',
|
||||
}}
|
||||
>
|
||||
<Fragment slot="content">
|
||||
<h2 class="text-3xl font-bold tracking-tight sm:text-4xl mb-2">{t.about.title}</h2>
|
||||
{
|
||||
t.about.content.map((paragraph) => (
|
||||
<>
|
||||
<p>{paragraph}</p>
|
||||
<br />
|
||||
</>
|
||||
))
|
||||
}
|
||||
</Fragment>
|
||||
<!-- Enhanced About Section -->
|
||||
<div class="content-section stagger-animation">
|
||||
<Content
|
||||
id="about"
|
||||
columns={2}
|
||||
items={[]}
|
||||
image={{
|
||||
src: HomePageImage,
|
||||
alt: 'Richard Bergsma smiling in the mountains of Switzerland holding Revella',
|
||||
loading: 'lazy',
|
||||
}}
|
||||
classes={{
|
||||
container: 'glass-enhanced'
|
||||
}}
|
||||
>
|
||||
<Fragment slot="content">
|
||||
<h2 class="text-4xl font-bold tracking-tight sm:text-5xl mb-6 bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent">
|
||||
{t.about.title}
|
||||
</h2>
|
||||
{
|
||||
t.about.content.map((paragraph, index) => (
|
||||
<div class="mb-6">
|
||||
<p class="text-lg leading-relaxed text-gray-700 dark:text-gray-300">{paragraph}</p>
|
||||
</div>
|
||||
))
|
||||
}
|
||||
</Fragment>
|
||||
|
||||
<Fragment slot="bg">
|
||||
<div class="absolute inset-0 backdrop-blur-sm bg-white/5 dark:bg-gray-900/10"></div>
|
||||
</Fragment>
|
||||
</Content>
|
||||
<Fragment slot="bg">
|
||||
<div class="absolute inset-0 bg-gradient-to-br from-blue-50/50 to-purple-50/50 dark:from-gray-900/50 dark:to-gray-800/50"></div>
|
||||
</Fragment>
|
||||
</Content>
|
||||
</div>
|
||||
|
||||
<!-- Work Experience - Modern Timeline Layout -->
|
||||
<WorkExperience
|
||||
id="resume"
|
||||
title={t.resume.title}
|
||||
compact={true}
|
||||
items={t.resume.experience.map((exp) => ({
|
||||
title: exp.title,
|
||||
company: exp.company,
|
||||
date: exp.period,
|
||||
location: exp.location,
|
||||
description: exp.description,
|
||||
icon: 'tabler:briefcase',
|
||||
}))}
|
||||
/>
|
||||
<!-- Enhanced Work Experience -->
|
||||
<div class="content-section stagger-animation">
|
||||
<ModernWorkExperience
|
||||
id="resume"
|
||||
title={t.resume.title}
|
||||
subtitle={t.resume.subtitle}
|
||||
compact={true}
|
||||
items={t.resume.experience.map((exp) => ({
|
||||
title: exp.title,
|
||||
company: exp.company,
|
||||
date: exp.period,
|
||||
location: exp.location,
|
||||
description: exp.description,
|
||||
icon: 'tabler:briefcase',
|
||||
}))}
|
||||
classes={{
|
||||
container: 'glass-enhanced'
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!-- Certifications - Compact Layout -->
|
||||
<CompactCertifications
|
||||
id="certifications"
|
||||
title={t.certifications.title}
|
||||
subtitle={t.certifications.subtitle}
|
||||
testimonials={t.certifications.items.map((cert) => ({
|
||||
name: cert.name,
|
||||
issueDate: cert.issueDate,
|
||||
description: cert.description,
|
||||
linkUrl: cert.linkUrl,
|
||||
image: cert.image,
|
||||
}))}
|
||||
/>
|
||||
<!-- Enhanced Skills Section with Modern Interactive Pills -->
|
||||
<div class="content-section stagger-animation">
|
||||
<ModernSkills
|
||||
id="skills"
|
||||
title={t.skills.title}
|
||||
subtitle={t.skills.subtitle}
|
||||
items={t.skills.items.map((item) => ({
|
||||
title: item.title,
|
||||
description: item.description,
|
||||
icon: 'tabler:code'
|
||||
}))}
|
||||
classes={{
|
||||
container: 'glass-enhanced'
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!-- Skills - Compact Layout -->
|
||||
<CompactSkills
|
||||
id="skills"
|
||||
title={t.skills.title}
|
||||
subtitle={t.skills.subtitle}
|
||||
defaultIcon="tabler:point-filled"
|
||||
items={t.skills.items.map((item) => ({
|
||||
title: item.title,
|
||||
description: item.description,
|
||||
}))}
|
||||
/>
|
||||
<!-- Enhanced Certifications with Modern Grid -->
|
||||
<div class="content-section stagger-animation">
|
||||
<ModernCertifications
|
||||
id="certifications"
|
||||
title={t.certifications.title}
|
||||
subtitle={t.certifications.subtitle}
|
||||
testimonials={t.certifications.items.map((cert) => ({
|
||||
name: cert.name,
|
||||
issueDate: cert.issueDate,
|
||||
description: cert.description,
|
||||
linkUrl: cert.linkUrl,
|
||||
image: cert.image,
|
||||
}))}
|
||||
classes={{
|
||||
container: 'glass-enhanced'
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!-- Education - Compact Layout -->
|
||||
<CompactSteps
|
||||
id="education"
|
||||
title={t.education.title}
|
||||
items={t.education.items.map((item) => ({
|
||||
title: item.title,
|
||||
icon: item.title.includes("Associate") ? 'tabler:certificate' : 'tabler:school',
|
||||
}))}
|
||||
/>
|
||||
</Layout>
|
||||
<!-- Enhanced Education -->
|
||||
<div class="content-section stagger-animation">
|
||||
<ModernEducation
|
||||
id="education"
|
||||
title={t.education.title}
|
||||
items={t.education.items.map((item) => ({
|
||||
title: item.title,
|
||||
description: item.description,
|
||||
icon: item.title.includes("Associate") ? 'tabler:certificate' : 'tabler:school',
|
||||
}))}
|
||||
classes={{
|
||||
container: 'glass-enhanced'
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!-- Enhanced Call to Action -->
|
||||
<div class="content-section stagger-animation">
|
||||
<CallToAction
|
||||
title={t.about.callToAction.title}
|
||||
subtitle={t.about.callToAction.subtitle}
|
||||
actions={[
|
||||
{
|
||||
variant: 'primary',
|
||||
text: t.about.callToAction.actions.getInTouch,
|
||||
href: '/contact',
|
||||
icon: 'tabler:mail'
|
||||
},
|
||||
{
|
||||
variant: 'secondary',
|
||||
text: t.about.callToAction.actions.viewPortfolio,
|
||||
href: '/portfolio',
|
||||
icon: 'tabler:briefcase'
|
||||
}
|
||||
]}
|
||||
classes={{
|
||||
container: 'glass-enhanced'
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</Layout>
|
||||
Reference in New Issue
Block a user