The Home page is the portfolio’s dramatic opening act. A full-viewport parallax hero fuses cinematic typography with scroll-driven motion: as the visitor scrolls down, the giant heading glides upward and fades away, giving way to a split-panel introduction section. On the left, a glass-morphism card labelled Current Trajectory summarises your professional focus; on the right, an orbital animation of two rotating rings reinforces the cosmic visual language throughout the site.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/cosmic-developer/llms.txt
Use this file to discover all available pages before exploring further.
Visual Overview
The page is divided into two primary visual zones.Hero Section
The hero occupies at least 80 vh (min-h-[80vh]) and centers a stacked typographic composition:
| Layer | Content | Style |
|---|---|---|
| Teletype intro | System Online // Signal Acquired | Aurora-teal monospace, character-by-character reveal |
| Primary heading (line 1) | Cosmic | Gradient — star-white → aurora-teal → aurora-magenta |
| Primary heading (line 2) | Developer. | Solid star-white |
| Subheading | Crafting digital experiences that bridge the gap between complex logic and awe-inspiring design. | Muted white, centered |
| Bounce arrow | Down-arrow icon, animated | Framer Motion y-keyframe loop [0, 10, 0] |
motion.div that reads the page scroll position via useScroll and maps it to a translateY transform (0 → 200 px) and an opacity fade (1 → 0). This means the content literally floats upward as the user scrolls, creating a depth illusion before the next section arrives.
Introduction Split Panel
Below the hero, a two-column grid (two columns on desktop, single column on mobile) presents a brief introduction:- Left — glass-panel card (
Current Trajectory): Abackdrop-blurglassmorphism card with an aurora-teal gradient overlay on hover. Edit this card to describe your current focus, open-to-work status, or professional headline. - Right — orbital animation: A purely decorative CSS composition of two concentric rotating rings centred on an Event Horizon label. One ring rotates clockwise, the other counter-clockwise, to suggest planetary motion.
Scroll Parallax Implementation
The parallax effect is powered by two Framer Motion hooks:heroY and heroOpacity are passed directly as style props on the hero motion.div — no useEffect or manual event listeners required. Framer Motion schedules all updates on the compositor thread, keeping the animation smooth at 60 fps even on mid-range devices.
The second split-panel section uses its own independent
useTransform with [0, 1] → [0, -100] (a gentle upward counter-parallax) so both sections move at different rates, deepening the sense of depth.TeletypeText Configuration
The intro line uses the sharedTeletypeText component:
delay prop (in seconds) controls how long after mount the typing animation begins. Increase it if you want the text to start after a page-transition animation has finished.
Content Sections at a Glance
| Section | Component | Key Data to Edit |
|---|---|---|
| Teletype intro line | TeletypeText | text prop string |
| Gradient heading | <h1> with Tailwind gradient classes | Hard-coded strings "Cosmic" / "Developer." |
| Subheading | <p> | Hard-coded string |
| Current Trajectory card | Glass-panel <div> | Inner paragraph text |
| Orbital animation label | <span> inside orbital wrapper | "Event Horizon" string |
Customization
To personalise the Home page, open theut component (compiled into assets/main.js; source lives in src/pages/Home.jsx or equivalent):
- Change the hero heading — Replace the
"Cosmic"and"Developer."strings with your own name or tagline. Each word sits on its own line so the gradient effect spans both. - Change the subheading — Update the paragraph below the heading to reflect your own elevator-pitch copy.
- Adjust parallax travel distance — Change the second value in
[0, 200]insideuseTransformto make the heading move more or less before fading out. - Adjust parallax fade point — Change
0.5in the opacityuseTransforminput range to shorten or lengthen the fade window (as a fraction of the scroll range through the hero section). - Change the teletype string — Update the
textprop onTeletypeText. - Rename the orbital label — Replace
"Event Horizon"with any short label (e.g., your job title). - Edit the Current Trajectory card — Swap out the card’s body copy to describe your current work, availability, or focus area.
The
useScroll hook is scoped to the page container ref with offset: ['start start', 'end start']. This means progress goes from 0 to 1 as the container scrolls from its top edge to its bottom edge reaching the viewport top — so the parallax completes exactly as the hero leaves the screen.