The hero section is the first content users see when visiting the portfolio. It introduces the developer with a prominent headline, description, profile image, and social media links.
The hero section uses a flexible container layout:
<section class="hero"> <div class="section-container"> <img class="hero__image" src="assets/hero.svg" alt="Girl working on a laptop" fetchpriority="high" width="300" height="300" /> <div class="hero__content"> <h1 class="hero__title"> Hello I'am <strong>Flora Sheen</strong><br /> Frontend <span class="outlined">Developer</span><br /> Based In <strong>India</strong> </h1> <p class="hero__description"> I'm Flora Sheen Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to specimen book. </p> <div class="hero__social"> <a href="#" class="social-link" aria-label="Facebook"> <img src="assets/facebook.svg" alt="Facebook" /> </a> <a href="#" class="social-link" aria-label="Reddit"> <img src="assets/reddit.svg" alt="Reddit" /> </a> <a href="#" class="social-link" aria-label="Twitter"> <img src="assets/twitter.svg" alt="Twitter" /> </a> <a href="#" class="social-link" aria-label="Discord"> <img src="assets/discord.svg" alt="Discord" /> </a> </div> </div> </div></section>
The hero image uses fetchpriority="high" to prioritize loading since it’s above the fold. Width and height attributes are specified to prevent layout shift.