init project files
This commit is contained in:
155
components/sections/About.module.scss
Normal file
155
components/sections/About.module.scss
Normal file
@@ -0,0 +1,155 @@
|
||||
.section {
|
||||
@include section;
|
||||
background: var(--bg-2);
|
||||
padding-block: clamp(4rem, 10vw, 7rem);
|
||||
}
|
||||
|
||||
.container {
|
||||
@include container;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
max-width: 640px;
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.header {
|
||||
margin-bottom: clamp(2rem, 4vw, 2.5rem);
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
display: block;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.heading {
|
||||
font-family: $font-display;
|
||||
font-size: clamp(2rem, 4.5vw, 2.5rem);
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
letter-spacing: -0.03em;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.dot {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: clamp(1.75rem, 3vw, 2.25rem);
|
||||
}
|
||||
|
||||
.paragraphs {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.para {
|
||||
font-size: clamp(1rem, 1.25vw, 1.0625rem);
|
||||
color: var(--text-2);
|
||||
line-height: 1.85;
|
||||
}
|
||||
|
||||
.currently {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.currentlyLabel {
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-3);
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.currentlyTags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.tag {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
color: var(--accent);
|
||||
background: var(--accent-alpha);
|
||||
border: 1px solid rgba(34, 211, 238, 0.2);
|
||||
border-radius: 999px;
|
||||
padding: 0.5rem 1rem;
|
||||
transition: border-color var(--transition), background var(--transition);
|
||||
|
||||
&:hover {
|
||||
border-color: var(--accent);
|
||||
background: rgba(34, 211, 238, 0.18);
|
||||
}
|
||||
}
|
||||
|
||||
.quote {
|
||||
margin: 0;
|
||||
padding: 1.25rem 1.5rem;
|
||||
font-size: clamp(0.9375rem, 1.1vw, 1rem);
|
||||
font-style: italic;
|
||||
color: var(--text-2);
|
||||
line-height: 1.7;
|
||||
background: var(--bg-3);
|
||||
border-radius: var(--radius-lg);
|
||||
border-left: 4px solid var(--accent);
|
||||
box-shadow: 0 1px 0 0 var(--border);
|
||||
|
||||
@include respond(sm) {
|
||||
padding: 1rem 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 1rem;
|
||||
padding-top: 0.5rem;
|
||||
|
||||
@include respond(sm) {
|
||||
gap: 0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
.stat {
|
||||
text-align: center;
|
||||
padding: 1.25rem 0.75rem;
|
||||
background: var(--bg-3);
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid var(--border);
|
||||
transition: border-color var(--transition), transform var(--transition);
|
||||
|
||||
&:hover {
|
||||
border-color: var(--border-light);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
}
|
||||
|
||||
.statValue {
|
||||
display: block;
|
||||
font-family: $font-display;
|
||||
font-size: clamp(1.5rem, 2.5vw, 1.75rem);
|
||||
font-weight: 800;
|
||||
color: var(--accent);
|
||||
line-height: 1.1;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.statLabel {
|
||||
display: block;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
color: var(--text-3);
|
||||
margin-top: 0.35rem;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
102
components/sections/About.tsx
Normal file
102
components/sections/About.tsx
Normal file
@@ -0,0 +1,102 @@
|
||||
'use client';
|
||||
import { motion } from 'framer-motion';
|
||||
import { personal } from '@/content/personal';
|
||||
import styles from './About.module.scss';
|
||||
|
||||
export default function About() {
|
||||
return (
|
||||
<section className={styles.section} id="about">
|
||||
<div className={styles.container}>
|
||||
<motion.div
|
||||
className={styles.wrapper}
|
||||
initial={{ opacity: 0, y: 24 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true, margin: '-50px' }}
|
||||
transition={{ duration: 0.5 }}
|
||||
>
|
||||
<header className={styles.header}>
|
||||
<h2 className={styles.heading}>
|
||||
A bit about me<span className={styles.dot}>.</span>
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
<div className={styles.content}>
|
||||
<div className={styles.paragraphs}>
|
||||
{personal.aboutMe.paragraphs.map((p, i) => (
|
||||
<motion.p
|
||||
key={i}
|
||||
className={styles.para}
|
||||
initial={{ opacity: 0, y: 12 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.4, delay: i * 0.08 }}
|
||||
>
|
||||
{p}
|
||||
</motion.p>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<motion.div
|
||||
className={styles.currently}
|
||||
initial={{ opacity: 0, y: 12 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.4, delay: 0.12 }}
|
||||
>
|
||||
<span className={styles.currentlyLabel}>Right now</span>
|
||||
<div className={styles.currentlyTags}>
|
||||
{personal.aboutMe.currently.map((item, i) => (
|
||||
<motion.span
|
||||
key={i}
|
||||
className={styles.tag}
|
||||
initial={{ opacity: 0, scale: 0.9 }}
|
||||
whileInView={{ opacity: 1, scale: 1 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.3, delay: 0.1 + i * 0.05 }}
|
||||
whileHover={{ scale: 1.05 }}
|
||||
>
|
||||
{item}
|
||||
</motion.span>
|
||||
))}
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
<motion.blockquote
|
||||
className={styles.quote}
|
||||
initial={{ opacity: 0, y: 12 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.4, delay: 0.18 }}
|
||||
>
|
||||
{personal.aboutMe.funFact}
|
||||
</motion.blockquote>
|
||||
|
||||
<motion.div
|
||||
className={styles.stats}
|
||||
initial="hidden"
|
||||
whileInView="visible"
|
||||
viewport={{ once: true }}
|
||||
variants={{ visible: { transition: { staggerChildren: 0.08 } } }}
|
||||
>
|
||||
{personal.stats.map((s, i) => (
|
||||
<motion.div
|
||||
key={s.label}
|
||||
className={styles.stat}
|
||||
variants={{
|
||||
hidden: { opacity: 0, y: 14 },
|
||||
visible: { opacity: 1, y: 0 },
|
||||
}}
|
||||
transition={{ duration: 0.4, ease: [0.22, 0.61, 0.36, 1] }}
|
||||
whileHover={{ y: -2 }}
|
||||
>
|
||||
<span className={styles.statValue}>{s.value}</span>
|
||||
<span className={styles.statLabel}>{s.label}</span>
|
||||
</motion.div>
|
||||
))}
|
||||
</motion.div>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
80
components/sections/Contact.module.scss
Normal file
80
components/sections/Contact.module.scss
Normal file
@@ -0,0 +1,80 @@
|
||||
.section {
|
||||
@include section;
|
||||
background: var(--bg-2);
|
||||
}
|
||||
|
||||
.container {
|
||||
@include container;
|
||||
}
|
||||
|
||||
.inner {
|
||||
text-align: center;
|
||||
max-width: 560px;
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.heading {
|
||||
font-family: $font-display;
|
||||
font-size: clamp(2rem, 4vw, 2.75rem);
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.dot {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.sub {
|
||||
font-size: 1.0625rem;
|
||||
color: var(--text-3);
|
||||
margin-bottom: 1.5rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.email {
|
||||
display: inline-block;
|
||||
font-family: $font-mono;
|
||||
font-size: clamp(1rem, 2vw, 1.125rem);
|
||||
font-weight: 500;
|
||||
color: var(--accent);
|
||||
margin-bottom: 2rem;
|
||||
padding: 0.5rem 0.25rem 0.35rem;
|
||||
@include accent-underline(2px);
|
||||
transition: color var(--transition);
|
||||
min-height: 44px;
|
||||
line-height: 1.4;
|
||||
|
||||
&:hover {
|
||||
color: var(--accent-dark);
|
||||
}
|
||||
}
|
||||
|
||||
.socials {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 1.25rem;
|
||||
flex-wrap: wrap;
|
||||
|
||||
a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text-2);
|
||||
transition: border-color var(--transition), color var(--transition);
|
||||
|
||||
svg {
|
||||
width: 1.25rem;
|
||||
height: 1.25rem;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
}
|
||||
}
|
||||
71
components/sections/Contact.tsx
Normal file
71
components/sections/Contact.tsx
Normal file
@@ -0,0 +1,71 @@
|
||||
'use client';
|
||||
import { motion } from 'framer-motion';
|
||||
import { personal } from '@/content/personal';
|
||||
import { SiGithub } from 'react-icons/si';
|
||||
import styles from './Contact.module.scss';
|
||||
|
||||
export default function Contact() {
|
||||
return (
|
||||
<section className={styles.section} id="contact">
|
||||
<div className={styles.container}>
|
||||
<motion.div
|
||||
className={styles.inner}
|
||||
initial={{ opacity: 0, y: 28 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6, ease: [0.22, 0.61, 0.36, 1] }}
|
||||
>
|
||||
<motion.h2
|
||||
className={styles.heading}
|
||||
initial={{ opacity: 0, y: 12 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.4 }}
|
||||
>
|
||||
Let's work together<span className={styles.dot}>.</span>
|
||||
</motion.h2>
|
||||
<motion.p
|
||||
className={styles.sub}
|
||||
initial={{ opacity: 0, y: 8 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.4, delay: 0.06 }}
|
||||
>
|
||||
Have a project in mind or just want to chat? My inbox is always open.
|
||||
</motion.p>
|
||||
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 8 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.4, delay: 0.12 }}
|
||||
>
|
||||
<a href={`mailto:${personal.email}`} className={styles.email}>
|
||||
{personal.email}
|
||||
</a>
|
||||
</motion.div>
|
||||
|
||||
<motion.div
|
||||
className={styles.socials}
|
||||
initial={{ opacity: 0, y: 12 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.4, delay: 0.18 }}
|
||||
>
|
||||
<motion.a
|
||||
href={personal.social.github}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
aria-label="GitHub"
|
||||
whileHover={{ scale: 1.1, y: -2 }}
|
||||
whileTap={{ scale: 0.95 }}
|
||||
transition={{ duration: 0.2 }}
|
||||
>
|
||||
<SiGithub />
|
||||
</motion.a>
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
115
components/sections/Experience.module.scss
Normal file
115
components/sections/Experience.module.scss
Normal file
@@ -0,0 +1,115 @@
|
||||
.section {
|
||||
@include section;
|
||||
background: var(--bg-2);
|
||||
padding-block: clamp(4rem, 8vw, 6rem);
|
||||
}
|
||||
|
||||
.container {
|
||||
@include container;
|
||||
}
|
||||
|
||||
.header {
|
||||
margin-bottom: clamp(2rem, 4vw, 2.5rem);
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
display: block;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.heading {
|
||||
font-family: $font-display;
|
||||
font-size: clamp(1.75rem, 4vw, 2.5rem);
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.dot {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.card {
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 1.5rem 1.75rem;
|
||||
border-left: 4px solid var(--accent);
|
||||
transition: border-color var(--transition), box-shadow var(--transition);
|
||||
|
||||
&:hover {
|
||||
border-left-color: var(--accent-dark);
|
||||
box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
.cardHeader {
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.period {
|
||||
display: block;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-3);
|
||||
letter-spacing: 0.04em;
|
||||
margin-bottom: 0.35rem;
|
||||
}
|
||||
|
||||
.role {
|
||||
font-family: $font-display;
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.company {
|
||||
font-size: 0.9375rem;
|
||||
color: var(--accent);
|
||||
transition: color var(--transition);
|
||||
|
||||
&:hover {
|
||||
color: var(--accent-dark);
|
||||
}
|
||||
}
|
||||
|
||||
.desc {
|
||||
font-size: 0.9375rem;
|
||||
color: var(--text-2);
|
||||
line-height: 1.65;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.highlights {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-size: 0.875rem;
|
||||
color: var(--text-3);
|
||||
line-height: 1.6;
|
||||
|
||||
li {
|
||||
position: relative;
|
||||
padding-left: 1rem;
|
||||
margin-bottom: 0.4rem;
|
||||
|
||||
&::before {
|
||||
content: '→';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
56
components/sections/Experience.tsx
Normal file
56
components/sections/Experience.tsx
Normal file
@@ -0,0 +1,56 @@
|
||||
'use client';
|
||||
import { motion } from 'framer-motion';
|
||||
import { experience } from '@/content/experience';
|
||||
import styles from './Experience.module.scss';
|
||||
|
||||
export default function Experience() {
|
||||
return (
|
||||
<section className={styles.section} id="experience">
|
||||
<div className={styles.container}>
|
||||
<motion.header
|
||||
className={styles.header}
|
||||
initial={{ opacity: 0, y: 16 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.5 }}
|
||||
>
|
||||
<span className={styles.eyebrow}>Experience</span>
|
||||
<h2 className={styles.heading}>
|
||||
Where I've worked<span className={styles.dot}>.</span>
|
||||
</h2>
|
||||
</motion.header>
|
||||
|
||||
<div className={styles.grid}>
|
||||
{experience.map((item, i) => (
|
||||
<motion.article
|
||||
key={item.id}
|
||||
className={styles.card}
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true, margin: '-20px' }}
|
||||
transition={{ duration: 0.45, delay: i * 0.1, ease: [0.22, 0.61, 0.36, 1] }}
|
||||
>
|
||||
<div className={styles.cardHeader}>
|
||||
<span className={styles.period}>{item.period}</span>
|
||||
<h3 className={styles.role}>{item.role}</h3>
|
||||
{item.companyUrl ? (
|
||||
<a href={item.companyUrl} className={styles.company} target="_blank" rel="noopener noreferrer">
|
||||
{item.company} ↗
|
||||
</a>
|
||||
) : (
|
||||
<span className={styles.company}>{item.company}</span>
|
||||
)}
|
||||
</div>
|
||||
<p className={styles.desc}>{item.description}</p>
|
||||
<ul className={styles.highlights}>
|
||||
{item.highlights.map((h, j) => (
|
||||
<li key={j}>{h}</li>
|
||||
))}
|
||||
</ul>
|
||||
</motion.article>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
261
components/sections/Hero.module.scss
Normal file
261
components/sections/Hero.module.scss
Normal file
@@ -0,0 +1,261 @@
|
||||
.hero {
|
||||
@include section;
|
||||
min-height: 100svh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.container {
|
||||
@include container;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 4rem;
|
||||
align-items: center;
|
||||
|
||||
@include respond(lg) {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
min-width: 0;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
font-size: 0.8125rem;
|
||||
color: var(--text-3);
|
||||
background: var(--bg-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
padding: 0.35rem 0.85rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.dot {
|
||||
width: 7px; height: 7px;
|
||||
border-radius: 50%;
|
||||
background: #22c55e;
|
||||
animation: pulse-dot 2s ease-in-out infinite;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-family: $font-display;
|
||||
font-size: clamp(2.5rem, 5vw, 4rem);
|
||||
font-weight: 800;
|
||||
line-height: 1.1;
|
||||
letter-spacing: -0.03em;
|
||||
color: var(--text);
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.name { color: var(--accent); }
|
||||
|
||||
.roleWrapper {
|
||||
font-family: $font-display;
|
||||
font-size: clamp(1.25rem, 2.5vw, 1.75rem);
|
||||
font-weight: 500;
|
||||
color: var(--text-2);
|
||||
height: 2.2em;
|
||||
overflow: hidden;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.bio {
|
||||
font-size: 1.0625rem;
|
||||
color: var(--text-3);
|
||||
max-width: 520px;
|
||||
margin-bottom: 2.5rem;
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.ctas {
|
||||
display: flex;
|
||||
gap: 0.875rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.btnPrimary {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
font-weight: 500;
|
||||
font-size: 0.9375rem;
|
||||
padding: 0.75rem 1.5rem;
|
||||
border-radius: var(--radius);
|
||||
transition: background var(--transition), transform var(--transition);
|
||||
|
||||
&:hover { background: var(--accent-dark); transform: translateY(-2px); }
|
||||
}
|
||||
|
||||
.btnSecondary {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
background: transparent;
|
||||
color: var(--text-2);
|
||||
font-weight: 500;
|
||||
font-size: 0.9375rem;
|
||||
padding: 0.75rem 1.5rem;
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid var(--border);
|
||||
transition: border-color var(--transition), color var(--transition);
|
||||
|
||||
&:hover { border-color: var(--accent); color: var(--accent); }
|
||||
}
|
||||
|
||||
.visual {
|
||||
position: relative;
|
||||
height: 400px;
|
||||
perspective: 800px;
|
||||
overflow: visible;
|
||||
isolation: isolate;
|
||||
|
||||
@include respond(lg) { display: none; }
|
||||
}
|
||||
|
||||
.grid {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: -40px;
|
||||
top: -40px;
|
||||
bottom: -40px;
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: visible;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 1.5rem;
|
||||
z-index: 0;
|
||||
/* Dot grid – dezentes Punktmuster, zurückgenommen */
|
||||
background-image: radial-gradient(
|
||||
circle at center,
|
||||
var(--border) 1px,
|
||||
transparent 1px
|
||||
);
|
||||
background-size: 24px 24px;
|
||||
opacity: 0.35;
|
||||
/* Leichter Verlauf von der Mitte nach außen */
|
||||
mask-image: radial-gradient(
|
||||
ellipse 80% 80% at 50% 50%,
|
||||
black 20%,
|
||||
transparent 85%
|
||||
);
|
||||
-webkit-mask-image: radial-gradient(
|
||||
ellipse 80% 80% at 50% 50%,
|
||||
black 20%,
|
||||
transparent 85%
|
||||
);
|
||||
}
|
||||
|
||||
// ─── Apple-style Terminal ──────────────────────────────────
|
||||
.terminal {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: 100%;
|
||||
max-width: 340px;
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45);
|
||||
transform: rotateY(-4deg) rotateX(2deg);
|
||||
overflow: hidden;
|
||||
font-family: $font-mono;
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.terminalHeader {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.75rem 1rem;
|
||||
background: rgba(40, 44, 52, 0.9);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.trafficLights {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.trafficRed,
|
||||
.trafficYellow,
|
||||
.trafficGreen {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.trafficRed {
|
||||
background: #ff5f57;
|
||||
box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.trafficYellow {
|
||||
background: #febc2e;
|
||||
box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.trafficGreen {
|
||||
background: #28c840;
|
||||
box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.terminalTitle {
|
||||
color: var(--text-3);
|
||||
font-size: 0.75rem;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
margin-right: 3rem;
|
||||
}
|
||||
|
||||
.terminalBody {
|
||||
padding: 1rem 1.25rem;
|
||||
min-height: 160px;
|
||||
}
|
||||
|
||||
.terminalLine {
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.prompt {
|
||||
color: var(--accent);
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.cmd {
|
||||
color: var(--text-2);
|
||||
}
|
||||
|
||||
.output,
|
||||
.accentLine {
|
||||
color: var(--text-3);
|
||||
padding-left: 1.25rem;
|
||||
}
|
||||
|
||||
.accentLine {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.cursor {
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 1em;
|
||||
background: var(--accent);
|
||||
animation: blink 1s step-end infinite;
|
||||
vertical-align: -0.15em;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0; }
|
||||
}
|
||||
121
components/sections/Hero.tsx
Normal file
121
components/sections/Hero.tsx
Normal file
@@ -0,0 +1,121 @@
|
||||
'use client';
|
||||
import { motion, AnimatePresence } from 'framer-motion';
|
||||
import { useEffect, useState } from 'react';
|
||||
import Link from 'next/link';
|
||||
import { personal } from '@/content/personal';
|
||||
import styles from './Hero.module.scss';
|
||||
|
||||
const fadeUp = (delay = 0) => ({
|
||||
initial: { opacity: 0, y: 28 },
|
||||
animate: { opacity: 1, y: 0 },
|
||||
transition: { duration: 0.65, ease: [0.22, 0.61, 0.36, 1], delay },
|
||||
});
|
||||
|
||||
export default function Hero() {
|
||||
const [roleIndex, setRoleIndex] = useState(0);
|
||||
|
||||
useEffect(() => {
|
||||
const interval = setInterval(() => {
|
||||
setRoleIndex(i => (i + 1) % personal.roles.length);
|
||||
}, 2800);
|
||||
return () => clearInterval(interval);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<section className={styles.hero} id="home">
|
||||
<div className={styles.container}>
|
||||
<div className={styles.content}>
|
||||
|
||||
{/* Availability Badge */}
|
||||
<motion.div className={styles.badge} {...fadeUp(0)}>
|
||||
<span className={styles.dot} />
|
||||
{personal.availabilityText}
|
||||
</motion.div>
|
||||
|
||||
{/* Heading */}
|
||||
<motion.h1 className={styles.title} {...fadeUp(0.1)}>
|
||||
Hi, I'm <span className={styles.name}>{personal.name}</span>
|
||||
</motion.h1>
|
||||
|
||||
{/* Animated Role */}
|
||||
<motion.div className={styles.roleWrapper} {...fadeUp(0.2)}>
|
||||
<AnimatePresence mode="wait">
|
||||
<motion.span
|
||||
key={roleIndex}
|
||||
className={styles.role}
|
||||
initial={{ opacity: 0, y: 12 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
exit={{ opacity: 0, y: -12 }}
|
||||
transition={{ duration: 0.4 }}
|
||||
>
|
||||
{personal.roles[roleIndex]}
|
||||
</motion.span>
|
||||
</AnimatePresence>
|
||||
</motion.div>
|
||||
|
||||
{/* Bio */}
|
||||
<motion.p className={styles.bio} {...fadeUp(0.3)}>
|
||||
{personal.bio}
|
||||
</motion.p>
|
||||
|
||||
{/* CTAs */}
|
||||
<motion.div className={styles.ctas} {...fadeUp(0.4)}>
|
||||
<motion.div whileHover={{ scale: 1.03 }} whileTap={{ scale: 0.98 }}>
|
||||
<Link href="#projects" className={styles.btnPrimary}>
|
||||
View Projects
|
||||
</Link>
|
||||
</motion.div>
|
||||
<motion.div whileHover={{ scale: 1.03 }} whileTap={{ scale: 0.98 }}>
|
||||
<Link href="#experience" className={styles.btnSecondary}>
|
||||
Experience
|
||||
</Link>
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
|
||||
</div>
|
||||
|
||||
{/* Right side: grid + terminal */}
|
||||
<motion.div
|
||||
className={styles.visual}
|
||||
initial={{ opacity: 0, y: 30, scale: 0.96 }}
|
||||
animate={{ opacity: 1, y: 0, scale: 1 }}
|
||||
transition={{ duration: 0.9, ease: [0.22, 0.61, 0.36, 1], delay: 0.25 }}
|
||||
>
|
||||
<div className={styles.grid} aria-hidden="true">
|
||||
<motion.div
|
||||
className={styles.terminal}
|
||||
initial={{ opacity: 0, scale: 0.92 }}
|
||||
animate={{ opacity: 1, scale: 1 }}
|
||||
transition={{ duration: 0.5, delay: 0.5, ease: [0.22, 0.61, 0.36, 1] }}
|
||||
>
|
||||
<div className={styles.terminalHeader}>
|
||||
<div className={styles.trafficLights}>
|
||||
<span className={styles.trafficRed} />
|
||||
<span className={styles.trafficYellow} />
|
||||
<span className={styles.trafficGreen} />
|
||||
</div>
|
||||
<span className={styles.terminalTitle}>zsh — portfolio</span>
|
||||
</div>
|
||||
<div className={styles.terminalBody}>
|
||||
<div className={styles.terminalLine}>
|
||||
<span className={styles.prompt}>$</span>{' '}
|
||||
<span className={styles.cmd}>whoami</span>
|
||||
</div>
|
||||
<div className={styles.terminalLine}><span className={styles.output}>{personal.name.replace(' ', '-').toLowerCase()}</span></div>
|
||||
<div className={styles.terminalLine}>
|
||||
<span className={styles.prompt}>$</span>{' '}
|
||||
<span className={styles.cmd}>cat role.txt</span>
|
||||
</div>
|
||||
<div className={styles.terminalLine}><span className={styles.accentLine}>{personal.role}</span></div>
|
||||
<div className={styles.terminalLine}>
|
||||
<span className={styles.prompt}>$</span>{' '}
|
||||
<span className={styles.cursor} />
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
220
components/sections/Projects.module.scss
Normal file
220
components/sections/Projects.module.scss
Normal file
@@ -0,0 +1,220 @@
|
||||
.section {
|
||||
@include section;
|
||||
padding-block: clamp(3.5rem, 8vw, 6rem);
|
||||
}
|
||||
|
||||
.container {
|
||||
@include container;
|
||||
}
|
||||
|
||||
.header {
|
||||
margin-bottom: clamp(2rem, 4vw, 3rem);
|
||||
}
|
||||
|
||||
.heading {
|
||||
font-family: $font-display;
|
||||
font-size: clamp(1.75rem, 4vw, 2.75rem);
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
margin-bottom: 0.5rem;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
|
||||
color: var(--text-3);
|
||||
max-width: 36ch;
|
||||
}
|
||||
|
||||
.dot {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.empty {
|
||||
padding: clamp(2.5rem, 5vw, 3.5rem);
|
||||
text-align: center;
|
||||
background: var(--bg-3);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.emptyText {
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
color: var(--text-3);
|
||||
}
|
||||
|
||||
.featured {
|
||||
@include card;
|
||||
overflow: hidden;
|
||||
display: grid;
|
||||
grid-template-columns: 1.1fr 1fr;
|
||||
margin-bottom: clamp(2rem, 4vw, 3rem);
|
||||
border-color: var(--border);
|
||||
transition: border-color var(--transition), box-shadow var(--transition);
|
||||
|
||||
@include respond(lg) {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-color: var(--border-light);
|
||||
box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
.featuredImage {
|
||||
position: relative;
|
||||
min-height: 260px;
|
||||
background: var(--bg-3);
|
||||
|
||||
@include respond(lg) {
|
||||
min-height: clamp(200px, 45vw, 280px);
|
||||
}
|
||||
|
||||
@include respond(sm) {
|
||||
min-height: 200px;
|
||||
}
|
||||
}
|
||||
|
||||
.featuredContent {
|
||||
padding: clamp(1.5rem, 3vw, 2.5rem);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.875rem;
|
||||
justify-content: center;
|
||||
|
||||
@include respond(sm) {
|
||||
padding: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.featuredContent h3 {
|
||||
font-family: $font-display;
|
||||
font-size: clamp(1.25rem, 2vw, 1.5rem);
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.featuredContent p {
|
||||
font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
|
||||
color: var(--text-3);
|
||||
line-height: 1.65;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.links {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.4rem;
|
||||
min-height: 44px;
|
||||
padding: 0.5rem 1rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
color: var(--bg);
|
||||
background: var(--accent);
|
||||
border-radius: var(--radius);
|
||||
transition: background var(--transition), transform var(--transition);
|
||||
|
||||
&:hover {
|
||||
background: var(--accent-dark);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
}
|
||||
|
||||
.linkGhost {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.4rem;
|
||||
min-height: 44px;
|
||||
padding: 0.5rem 1rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-2);
|
||||
background: transparent;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
transition: border-color var(--transition), color var(--transition);
|
||||
|
||||
&:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: clamp(1.25rem, 3vw, 1.5rem);
|
||||
|
||||
@include respond(sm) {
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
@media (min-width: #{$bp-sm}) {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
@media (min-width: #{$bp-lg}) {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
@include card;
|
||||
padding: clamp(1.25rem, 2.5vw, 1.5rem);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
}
|
||||
|
||||
.cardTitle {
|
||||
font-family: $font-display;
|
||||
font-size: clamp(1rem, 1.5vw, 1.125rem);
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
margin-bottom: 0.5rem;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.cardDesc {
|
||||
font-size: clamp(0.8125rem, 1.2vw, 0.875rem);
|
||||
color: var(--text-3);
|
||||
line-height: 1.6;
|
||||
margin-bottom: 1rem;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.cardLinks {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.cardLinks .link {
|
||||
min-height: 40px;
|
||||
padding: 0.4rem 0.75rem;
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
.cardLinks .linkGhost {
|
||||
min-height: 40px;
|
||||
padding: 0.4rem 0.75rem;
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
117
components/sections/Projects.tsx
Normal file
117
components/sections/Projects.tsx
Normal file
@@ -0,0 +1,117 @@
|
||||
'use client';
|
||||
import { motion } from 'framer-motion';
|
||||
import Image from 'next/image';
|
||||
import { projects } from '@/content/projects';
|
||||
import styles from './Projects.module.scss';
|
||||
import { SiGithub } from 'react-icons/si';
|
||||
import { ArrowUpRight } from 'lucide-react';
|
||||
|
||||
export default function Projects() {
|
||||
const featured = projects.find(p => p.featured);
|
||||
const rest = projects.filter(p => !p.featured);
|
||||
const hasProjects = projects.length > 0;
|
||||
|
||||
return (
|
||||
<section className={styles.section} id="projects">
|
||||
<div className={styles.container}>
|
||||
<motion.header
|
||||
className={styles.header}
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.5 }}
|
||||
>
|
||||
<h2 className={styles.heading}>Selected Work<span className={styles.dot}>.</span></h2>
|
||||
<p className={styles.subtitle}>
|
||||
{hasProjects ? 'A selection of recent projects and side work.' : 'Projects will be added here soon.'}
|
||||
</p>
|
||||
</motion.header>
|
||||
|
||||
{!hasProjects && (
|
||||
<motion.div
|
||||
className={styles.empty}
|
||||
initial={{ opacity: 0, y: 16 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.5, delay: 0.1 }}
|
||||
>
|
||||
<p className={styles.emptyText}>Nothing here yet — check back later or get in touch.</p>
|
||||
</motion.div>
|
||||
)}
|
||||
|
||||
{/* Featured Project */}
|
||||
{hasProjects && featured && (
|
||||
<motion.div
|
||||
className={styles.featured}
|
||||
initial={{ opacity: 0, y: 28 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6, ease: [0.22, 0.61, 0.36, 1] }}
|
||||
>
|
||||
{featured.image && (
|
||||
<div className={styles.featuredImage}>
|
||||
<Image src={featured.image} alt={featured.title} fill style={{ objectFit: 'cover' }} />
|
||||
</div>
|
||||
)}
|
||||
<div className={styles.featuredContent}>
|
||||
<h3>{featured.title}</h3>
|
||||
<p>{featured.description}</p>
|
||||
<div className={styles.links}>
|
||||
{featured.liveUrl && (
|
||||
<a href={featured.liveUrl} target="_blank" rel="noopener noreferrer" className={styles.link}>
|
||||
Live <ArrowUpRight size={14} />
|
||||
</a>
|
||||
)}
|
||||
{featured.githubUrl && (
|
||||
<a href={featured.githubUrl} target="_blank" rel="noopener noreferrer" className={styles.linkGhost}>
|
||||
<SiGithub size={15} /> GitHub
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
)}
|
||||
|
||||
{/* Project Grid */}
|
||||
{hasProjects && (
|
||||
<motion.div
|
||||
className={styles.grid}
|
||||
initial="hidden"
|
||||
whileInView="visible"
|
||||
viewport={{ once: true, margin: '-20px' }}
|
||||
variants={{ visible: { transition: { staggerChildren: 0.08, delayChildren: 0.05 } } }}
|
||||
>
|
||||
{rest.map((project, i) => (
|
||||
<motion.article
|
||||
key={project.id}
|
||||
className={styles.card}
|
||||
variants={{
|
||||
hidden: { opacity: 0, y: 20 },
|
||||
visible: { opacity: 1, y: 0 },
|
||||
}}
|
||||
transition={{ duration: 0.45, ease: [0.22, 0.61, 0.36, 1] }}
|
||||
whileHover={{ y: -5, transition: { duration: 0.2 } }}
|
||||
>
|
||||
<h3 className={styles.cardTitle}>{project.title}</h3>
|
||||
<p className={styles.cardDesc}>{project.description}</p>
|
||||
<div className={styles.cardLinks}>
|
||||
{project.liveUrl && (
|
||||
<a href={project.liveUrl} target="_blank" rel="noopener noreferrer" className={styles.link}>
|
||||
View <ArrowUpRight size={13} />
|
||||
</a>
|
||||
)}
|
||||
{project.githubUrl && (
|
||||
<a href={project.githubUrl} target="_blank" rel="noopener noreferrer" className={styles.linkGhost}>
|
||||
<SiGithub size={14} />
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
</motion.article>
|
||||
))}
|
||||
</motion.div>
|
||||
)}
|
||||
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
115
components/sections/TechStack.module.scss
Normal file
115
components/sections/TechStack.module.scss
Normal file
@@ -0,0 +1,115 @@
|
||||
.section {
|
||||
@include section;
|
||||
background: var(--bg-2);
|
||||
padding-block: clamp(4rem, 8vw, 6rem);
|
||||
}
|
||||
|
||||
.container {
|
||||
@include container;
|
||||
}
|
||||
|
||||
.header {
|
||||
margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
|
||||
}
|
||||
|
||||
.heading {
|
||||
font-family: $font-display;
|
||||
font-size: clamp(1.75rem, 4vw, 2.5rem);
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
letter-spacing: -0.02em;
|
||||
margin-bottom: 0.35rem;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 0.9375rem;
|
||||
color: var(--text-3);
|
||||
}
|
||||
|
||||
.dot {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.tabs {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
|
||||
}
|
||||
|
||||
.tab {
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
color: var(--text-3);
|
||||
background: transparent;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
padding: 0.5rem 1rem;
|
||||
min-height: 40px;
|
||||
transition: border-color var(--transition), color var(--transition), background var(--transition);
|
||||
|
||||
&:hover {
|
||||
color: var(--text-2);
|
||||
border-color: var(--border-light);
|
||||
}
|
||||
}
|
||||
|
||||
.tabActive {
|
||||
background: var(--accent-alpha);
|
||||
color: var(--accent);
|
||||
border-color: rgba(34, 211, 238, 0.35);
|
||||
|
||||
&:hover {
|
||||
background: var(--accent-alpha);
|
||||
color: var(--accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
|
||||
gap: 0.875rem;
|
||||
}
|
||||
|
||||
.card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.875rem;
|
||||
padding: 0.875rem 1rem;
|
||||
background: var(--bg-3);
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius);
|
||||
transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
|
||||
|
||||
&:hover {
|
||||
background: var(--bg);
|
||||
border-color: var(--border);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
}
|
||||
|
||||
.iconWrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
border-radius: 6px;
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.icon {
|
||||
width: 1.15rem;
|
||||
height: 1.15rem;
|
||||
color: var(--text-2);
|
||||
}
|
||||
|
||||
.label {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
color: var(--text-2);
|
||||
line-height: 1.3;
|
||||
}
|
||||
86
components/sections/TechStack.tsx
Normal file
86
components/sections/TechStack.tsx
Normal file
@@ -0,0 +1,86 @@
|
||||
'use client';
|
||||
import { useState } from 'react';
|
||||
import { motion } from 'framer-motion';
|
||||
import * as Si from 'react-icons/si';
|
||||
import { techStack } from '@/content/techstack';
|
||||
import styles from './TechStack.module.scss';
|
||||
|
||||
const categories = ['all', 'language', 'framework', 'tool', 'database'] as const;
|
||||
|
||||
export default function TechStack() {
|
||||
const [active, setActive] = useState<string>('all');
|
||||
|
||||
const filtered = active === 'all'
|
||||
? techStack
|
||||
: techStack.filter(t => t.category === active);
|
||||
|
||||
return (
|
||||
<section className={styles.section} id="tech">
|
||||
<div className={styles.container}>
|
||||
<motion.header
|
||||
className={styles.header}
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true, margin: '-30px' }}
|
||||
transition={{ duration: 0.5 }}
|
||||
>
|
||||
<h2 className={styles.heading}>
|
||||
Technologies<span className={styles.dot}>.</span>
|
||||
</h2>
|
||||
<p className={styles.subtitle}>Languages, frameworks, tools & databases I work with.</p>
|
||||
</motion.header>
|
||||
|
||||
<motion.div
|
||||
className={styles.tabs}
|
||||
role="tablist"
|
||||
initial={{ opacity: 0, y: 12 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.4, delay: 0.08 }}
|
||||
>
|
||||
{categories.map(cat => (
|
||||
<button
|
||||
key={cat}
|
||||
role="tab"
|
||||
aria-selected={active === cat}
|
||||
className={`${styles.tab} ${active === cat ? styles.tabActive : ''}`}
|
||||
onClick={() => setActive(cat)}
|
||||
>
|
||||
{cat.charAt(0).toUpperCase() + cat.slice(1)}
|
||||
</button>
|
||||
))}
|
||||
</motion.div>
|
||||
|
||||
<motion.div
|
||||
className={styles.grid}
|
||||
initial="hidden"
|
||||
whileInView="visible"
|
||||
viewport={{ once: true, margin: '-20px' }}
|
||||
variants={{ visible: { transition: { staggerChildren: 0.03, delayChildren: 0.05 } } }}
|
||||
>
|
||||
{filtered.map((tech, i) => {
|
||||
const Icon = (Si as Record<string, React.ElementType>)[tech.icon] ?? Si.SiCoder;
|
||||
return (
|
||||
<motion.div
|
||||
key={tech.name}
|
||||
className={styles.card}
|
||||
variants={{
|
||||
hidden: { opacity: 0, y: 16 },
|
||||
visible: { opacity: 1, y: 0 },
|
||||
}}
|
||||
transition={{ duration: 0.35, ease: [0.22, 0.61, 0.36, 1] }}
|
||||
whileHover={{ y: -3, transition: { duration: 0.2 } }}
|
||||
>
|
||||
<span className={styles.iconWrap}>
|
||||
<Icon className={styles.icon} aria-hidden="true" />
|
||||
</span>
|
||||
<span className={styles.label}>{tech.name}</span>
|
||||
</motion.div>
|
||||
);
|
||||
})}
|
||||
</motion.div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user