The hero section is the first thing visitors see. It uses Svelte’s built-inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/lgomegarc/mi-portfolio/llms.txt
Use this file to discover all available pages before exploring further.
fly, fade, and blur transitions to animate the headline, subtitle, CTA button, and social links into view in a coordinated sequence.
Layout
The hero is a full-viewport-height div (min-h-screen) with a centered container. It contains:
- An animated H1 heading
- A subtitle paragraph with links to
#projectsand#about - A CTA button linking to
#about - The
<SocialLinks>component - A footer note crediting SvelteKit + Tailwind CSS
Animation Sequence
Each element enters the viewport with a distinct transition, staggered viadelay to create a smooth cascading feel:
| Element | Transition | Parameters |
|---|---|---|
| H1 heading | fly | y: -50, duration: 800 |
| Subtitle paragraph | fly | y: 30, duration: 1000, delay: 500 |
| CTA button | blur | delay: 250, duration: 500 |
| Social links | fade | delay: 1200, duration: 600 |
in: directive syntax — e.g., in:fly={{ y: -50, duration: 800, easing: quintOut }} — directly on the element’s opening tag in src/routes/+page.svelte.
CTA Button
The primary call-to-action button uses a cyan-to-indigo gradient to draw the eye:hover:scale-105) and slightly reduces opacity (hover:opacity-90) for a polished interactive feel.
Background
The animated dark grid background is defined entirely insrc/app.css. It combines three CSS features:
- Dark base color —
background-color: #111827(Tailwind’sgray-900) - CSS grid lines — two
linear-gradientlayers draw 1px lines every 40px horizontally and vertically grid-pankeyframe animation — slowly pans the grid pattern across the viewport over 120 seconds, giving the page a subtle sense of motion without distraction
background-size: 40px 40px controls the grid cell size. Increasing this value produces a coarser grid; decreasing it produces a finer one.