Skip to content

Frontend: Create and Import the Hero Section in the Home Page #6

@Mkalbani

Description

@Mkalbani

🎯 Objective

Develop a visually appealing Hero Section for the Home Page, following the Figma design. The hero section should be responsive and include a strong call to action.

🔍 Context

The Hero Section is the first thing users see when they land on the homepage. It should be engaging, well-structured, and fully responsive. This task involves creating the hero component, adding appropriate styles, and integrating it into the home page.

📋 Tasks

  • Create a HeroSection component inside components/.
  • Structure the component with a heading, subheading, CTA button, and background image/illustration.
  • Ensure responsiveness for desktop, tablet, and mobile views.
  • Use semantic HTML and accessibility best practices (ARIA attributes).
  • Import the HeroSection component into Home.tsx.

💻 Technical Implementation

1️⃣ Create HeroSection.tsx inside components/

const HeroSection = () => {
  return (
    <section className="">
     {/*hero section content */}
    </section>
  );
};

export default HeroSection;

2️⃣ Import HeroSection into Home.tsx

import HeroSection from "../components/HeroSection";

const Home = () => {

    return (
        <>
            {/* paste your page component below here */}

                <HeroSection />

            {/* paste your page component above here */}
        </>
    );
};

export default Home;

3️⃣ Style the Hero Section using Tailwind classes

📝 Acceptance Criteria

✅ The Hero Section matches the Figma design.
✅ It is fully responsive across all screen sizes.
✅ The heading, subheading, and CTA button are clearly visible and well-placed.
✅ The component is correctly imported and displayed on the home page.
✅ Accessibility is considered (ARIA attributes, keyboard focus).

💪 Skills Required

  • React
  • CSS (Tailwind)
  • Responsive Design
  • Accessibility (ARIA)

📈 Difficulty

Easy

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions