feat: homepage enhancements - mobile padding, scroll animations, parallax, background gradient

- Fix mobile padding: add media queries for container and hero-content padding
- Add InView wrapper to Hero and About for scroll-triggered animations
- Add Hero parallax effect: photo moves on scroll, content fades out
- Add section background gradient for smooth visual flow between sections
- Unify section containers to container-wide for title alignment
- Add maxWidth wrappers for text-heavy sections (About, Experience, Contact)
- Replace OpenToWorkBadge with RollingTextLink component
- Update nav router links and profile data
- Add spec docs for v2 homepage enhancements and nav rolling text
This commit is contained in:
dong.nguyen committed 2026-10-06 23:42:49 +07:00
1 parent 1800fa7ceb
commit aa30aed903
20 files changed
+1301 -326

No files matched your search

+8 -6
View File
@@ -1,7 +1,9 @@
import { Link } from "react-router"
import { motion } from "motion/react"
import { Badge } from "@/components/ui/Badge"
import { projects } from "@/data/projects"
import { InView } from "@/components/ui/InView"
const MotionLink = motion.create(Link)
const categoryLabels: Record<string, string> = {
"software-engineering": "Software Engineering",
@@ -44,20 +46,20 @@ export function Projects() {
}}
>
<h2 id="projects-heading">Featured Projects</h2>
<motion.a
href="/projects"
<MotionLink
to="/projects"
style={{ fontSize: "14px", fontWeight: 500, color: "var(--accent)" }}
whileHover={{ scale: 1.05 }}
whileTap={{ scale: 0.95 }}
>
View All →
</motion.a>
</MotionLink>
</motion.div>
<div className="projects-grid">
{featured.map((project, i) => (
<motion.a
<MotionLink
key={project.id}
href={`/projects/${project.id}`}
to={`/projects/${project.id}`}
className="project-card"
variants={{
hidden: { opacity: 0, y: 30 },
@@ -94,7 +96,7 @@ export function Projects() {
</div>
)}
<span className="project-card-cta">View Details →</span>
</motion.a>
</MotionLink>
))}
</div>
</motion.section>