Skip to content

Commit dd1659e

Browse files
committed
Add RewindSection to PortfolioPreviewModal and remove scroll indicator from HeroSection
1 parent 7895233 commit dd1659e

2 files changed

Lines changed: 2 additions & 15 deletions

File tree

src/components/PortfolioPreviewModal.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { X, GitFork, Copy, Check, ExternalLink } from 'lucide-react'
44
import HeroSection from '../templates/threejs/HeroSection'
55
import GitHubSection from '../templates/threejs/GitHubSection'
66
import StatsSection from '../templates/threejs/StatsSection'
7+
import RewindSection from '../templates/threejs/RewindSection'
78

89
// ── Shared types (also used by NavSearch) ────────────────────────────────────
910

@@ -325,6 +326,7 @@ export function PortfolioPreviewModal({ user, repos, allRepos, onClose }: Props)
325326

326327
{/* Render the actual threejs template sections with live data */}
327328
<HeroSection hero={hero} snapshot={snapshot} />
329+
<RewindSection stats={stats} name={user.name ?? user.login} />
328330
<GitHubSection
329331
title="GitHub"
330332
body={`${user.name || user.login}'s public repositories on GitHub.`}

src/templates/threejs/HeroSection.tsx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -327,21 +327,6 @@ export default function HeroSection({ hero, snapshot }: HeroSectionProps) {
327327

328328
</div>
329329
</div>
330-
331-
{/* Scroll indicator */}
332-
<div
333-
className="absolute bottom-6 left-1/2 z-10 -translate-x-1/2 flex flex-col items-center gap-1.5"
334-
aria-hidden="true"
335-
style={{ animation: 'fadeInUp 0.7s 1.1s ease-out both' }}
336-
>
337-
<span className="text-[9px] font-semibold uppercase tracking-[0.3em] text-slate-600">Scroll</span>
338-
<div className="flex h-8 w-5 items-start justify-center rounded-full border border-slate-700 pt-1.5">
339-
<div
340-
className="h-1.5 w-1 rounded-full bg-blue-400"
341-
style={{ animation: 'fadeInUp 1.2s ease-in-out infinite' }}
342-
/>
343-
</div>
344-
</div>
345330
</section>
346331
)
347332
}

0 commit comments

Comments
 (0)