Repository navigation
feat: full-bleed minimal redesign with motion and mobile fixes #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8a36239
feat: full-bleed minimal redesign with motion and mobile fixes
enzoftware f669284
feat: dark IDE-inspired theme, hero socials, and glass activity panel
enzoftware f1435c7
feat: no-scroll desktop layout, 80/20 hero weight, flat compact CTA
enzoftware 80dfced
docs: update README for the full-bleed redesign
enzoftware 498ef43
feat: light/dark theme toggle (VS Code Dark/Light Modern)
enzoftware d0c8258
refactor: use the bg-glass utility instead of the arbitrary CSS-var form
enzoftware File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,164 @@ | ||
| import { useEffect, useState } from "react"; | ||
| import { motion, AnimatePresence } from "framer-motion"; | ||
| import type { Translations } from "../i18n/translations"; | ||
| import { relativeTime } from "../lib/relativeTime"; | ||
| import { ExperienceModal, type ExperienceEntry } from "./ExperienceModal"; | ||
|
|
||
| export interface RecentRepo { | ||
| name: string; | ||
| html_url: string; | ||
| pushed_at: string; | ||
| } | ||
|
|
||
| export interface LatestPost { | ||
| title: string; | ||
| url: string; | ||
| publishedAt: string; | ||
| source: string; | ||
| } | ||
|
|
||
| interface ActivityStackProps { | ||
| t: Pick< | ||
| Translations, | ||
| "current" | "modal" | "signature" | "latest_post" | "recent_activity" | ||
| >; | ||
| experiences: ExperienceEntry[]; | ||
| repos: RecentRepo[]; | ||
| post: LatestPost | null; | ||
| } | ||
|
|
||
| function RowHeader({ label }: { label: string }) { | ||
| return ( | ||
| <div className="flex items-center gap-2 mb-3"> | ||
| <span className="w-1.5 h-1.5 rounded-full bg-accent flex-shrink-0" /> | ||
| <p className="text-[11px] text-ink-faint font-mono leading-none uppercase tracking-[0.06em]"> | ||
| {label} | ||
| </p> | ||
| </div> | ||
| ); | ||
| } | ||
|
|
||
| function ShimmerLines() { | ||
| return ( | ||
| <div className="flex flex-col gap-2" aria-hidden="true"> | ||
| <div className="h-3 w-3/4 rounded-full bg-[linear-gradient(90deg,var(--shimmer-a)_25%,var(--shimmer-b)_37%,var(--shimmer-a)_63%)] bg-[length:200%_100%] animate-shimmer" /> | ||
| <div className="h-3 w-1/2 rounded-full bg-[linear-gradient(90deg,var(--shimmer-a)_25%,var(--shimmer-b)_37%,var(--shimmer-a)_63%)] bg-[length:200%_100%] animate-shimmer" /> | ||
| </div> | ||
| ); | ||
| } | ||
|
|
||
| export function ActivityStack({ | ||
| t, | ||
| experiences, | ||
| repos, | ||
| post, | ||
| }: ActivityStackProps) { | ||
| const [loading, setLoading] = useState(true); | ||
| const [modalOpen, setModalOpen] = useState(false); | ||
| const current = experiences.find((exp) => exp.current); | ||
|
|
||
| useEffect(() => { | ||
| const id = setTimeout(() => setLoading(false), 550); | ||
| return () => clearTimeout(id); | ||
| }, []); | ||
|
|
||
| return ( | ||
| <> | ||
| <motion.div | ||
| className="flex flex-col divide-y divide-border rounded-2xl border border-border bg-glass backdrop-blur-xl overflow-x-hidden overflow-y-auto lg:max-h-[65dvh]" | ||
| initial={{ opacity: 0, y: 16 }} | ||
| whileInView={{ opacity: 1, y: 0 }} | ||
| viewport={{ once: true, margin: "-10%" }} | ||
| transition={{ duration: 0.5, ease: [0.22, 1, 0.36, 1] }} | ||
| > | ||
| <div className="p-5"> | ||
| <RowHeader label={t.recent_activity.label} /> | ||
| {repos.length === 0 ? ( | ||
| <p className="text-xs text-ink-muted">{t.recent_activity.empty}</p> | ||
| ) : ( | ||
| <ul className="flex flex-col gap-2"> | ||
| {repos.slice(0, 3).map((repo) => ( | ||
| <li key={repo.name}> | ||
| <a | ||
| href={repo.html_url} | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| className="flex items-baseline justify-between gap-2 text-sm text-ink hover:text-accent transition-colors" | ||
| data-mixpanel="recent_activity_click" | ||
| data-repo={repo.name} | ||
| > | ||
| <span className="font-medium truncate">{repo.name}</span> | ||
| <span className="font-mono text-[11px] text-ink-faint flex-shrink-0"> | ||
| {relativeTime(repo.pushed_at)} | ||
| </span> | ||
| </a> | ||
| </li> | ||
| ))} | ||
| </ul> | ||
| )} | ||
| </div> | ||
|
|
||
| {current && ( | ||
| <button | ||
| type="button" | ||
| onClick={() => setModalOpen(true)} | ||
| className="p-5 text-left hover:bg-glass transition-colors" | ||
| > | ||
| <RowHeader label={t.current.label} /> | ||
| <p className="font-display text-lg text-ink leading-snug"> | ||
| {current.company} | ||
| </p> | ||
| <p className="font-mono text-xs text-ink-muted mt-0.5"> | ||
| {current.role} {t.signature.role_at} {current.company} | ||
| </p> | ||
| <span className="inline-block mt-2 font-mono text-[11px] text-accent"> | ||
| {t.current.cta} ({experiences.length}) → | ||
| </span> | ||
| </button> | ||
| )} | ||
|
|
||
| <div className="p-5"> | ||
| <RowHeader label={t.latest_post.label} /> | ||
| <AnimatePresence mode="wait"> | ||
| <motion.div | ||
| key={loading ? "skeleton" : "content"} | ||
| initial={{ opacity: 0 }} | ||
| animate={{ opacity: 1 }} | ||
| exit={{ opacity: 0 }} | ||
| transition={{ duration: 0.3 }} | ||
| > | ||
| {loading ? ( | ||
| <ShimmerLines /> | ||
| ) : post ? ( | ||
| <a | ||
| href={post.url} | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| className="group flex flex-col gap-1" | ||
| data-mixpanel="latest_post_click" | ||
| data-source={post.source} | ||
| > | ||
| <span className="text-sm font-semibold text-ink leading-snug group-hover:text-accent transition-colors"> | ||
| {post.title} | ||
| </span> | ||
| <span className="font-mono text-[11px] text-ink-faint"> | ||
| {post.source} · {relativeTime(post.publishedAt)} | ||
| </span> | ||
| </a> | ||
| ) : ( | ||
| <p className="text-xs text-ink-muted">{t.latest_post.empty}</p> | ||
| )} | ||
| </motion.div> | ||
| </AnimatePresence> | ||
| </div> | ||
| </motion.div> | ||
|
|
||
| <ExperienceModal | ||
| t={t.modal} | ||
| experiences={experiences} | ||
| open={modalOpen} | ||
| onClose={() => setModalOpen(false)} | ||
| /> | ||
| </> | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| import { motion } from "framer-motion"; | ||
| import type { Translations } from "../i18n/translations"; | ||
|
|
||
| interface ContactCTAProps { | ||
| t: Translations["contact"]; | ||
| name: string; | ||
| } | ||
|
|
||
| export function ContactCTA({ t, name }: ContactCTAProps) { | ||
| return ( | ||
| <motion.section | ||
| className="relative bg-surface-elevated border-t border-border overflow-hidden lg:flex-shrink-0" | ||
| initial={{ opacity: 0 }} | ||
| whileInView={{ opacity: 1 }} | ||
| viewport={{ once: true, margin: "-10%" }} | ||
| transition={{ duration: 0.6 }} | ||
| > | ||
| <div | ||
| aria-hidden="true" | ||
| className="absolute -top-1/2 -right-1/4 w-[50%] h-[200%] rounded-full bg-accent/10 blur-[120px] pointer-events-none" | ||
| /> | ||
|
|
||
| <div className="relative section-gutter py-8 lg:py-10 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-6"> | ||
| <div> | ||
| <motion.p | ||
| className="font-mono text-xs text-ink-muted" | ||
| initial={{ opacity: 0, y: 8 }} | ||
| whileInView={{ opacity: 1, y: 0 }} | ||
| viewport={{ once: true }} | ||
| transition={{ delay: 0.05, duration: 0.4 }} | ||
| > | ||
| {t.eyebrow} | ||
| </motion.p> | ||
|
|
||
| <motion.h2 | ||
| className="font-display font-semibold text-[clamp(1.5rem,2.8vw,2.25rem)] leading-tight tracking-tight mt-2 text-ink" | ||
| initial={{ opacity: 0, y: 12 }} | ||
| whileInView={{ opacity: 1, y: 0 }} | ||
| viewport={{ once: true }} | ||
| transition={{ delay: 0.1, duration: 0.45 }} | ||
| > | ||
| {t.headline_1}{" "} | ||
| <em className="not-italic text-flair">{t.headline_2}</em> | ||
| </motion.h2> | ||
|
|
||
| <motion.p | ||
| className="mt-2 text-sm text-ink-faint" | ||
| initial={{ opacity: 0 }} | ||
| whileInView={{ opacity: 1 }} | ||
| viewport={{ once: true }} | ||
| transition={{ delay: 0.2, duration: 0.4 }} | ||
| > | ||
| {t.note} | ||
| </motion.p> | ||
| </div> | ||
|
|
||
| <motion.a | ||
| href="mailto:hi@enzoftware.dev?subject=Let%27s%20build%20something" | ||
| className="group flex-shrink-0 self-start sm:self-auto inline-flex items-center gap-4 bg-accent hover:bg-accent-light text-white font-mono text-base rounded-full pl-6 pr-2.5 py-2.5 sm:py-3 transition-colors" | ||
| initial={{ opacity: 0, y: 12 }} | ||
| whileInView={{ opacity: 1, y: 0 }} | ||
| viewport={{ once: true }} | ||
| transition={{ delay: 0.15, duration: 0.45 }} | ||
| whileHover={{ y: -2, scale: 1.02 }} | ||
| whileTap={{ scale: 0.98 }} | ||
| data-mixpanel="contact_email_click" | ||
| > | ||
| hi@enzoftware.dev | ||
| <span className="flex items-center justify-center w-8 h-8 rounded-full bg-white/20 group-hover:rotate-45 transition-transform duration-300"> | ||
| <svg width="14" height="14" viewBox="0 0 24 24" fill="none"> | ||
| <path | ||
| d="M5 19 19 5M19 5H8M19 5v11" | ||
| stroke="currentColor" | ||
| strokeWidth="2.2" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| /> | ||
| </svg> | ||
| </span> | ||
| </motion.a> | ||
| </div> | ||
|
|
||
| <div className="relative section-gutter py-4 border-t border-border/60 font-mono text-xs text-ink-faint"> | ||
| © {new Date().getFullYear()} {name} | ||
| </div> | ||
| </motion.section> | ||
| ); | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Localize the relative timestamps.
relativeTimereturns English strings such asnowand2h ago. The Spanish locale therefore produces mixed-language activity rows. Pass the active locale and useIntl.RelativeTimeFormator translated units.Also applies to: 145-145
🤖 Prompt for AI Agents