Skip to content

Hero code not filling full screen #577

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
conceptofmind opened this issue Mar 3, 2025 · 1 comment
Open

Hero code not filling full screen #577

conceptofmind opened this issue Mar 3, 2025 · 1 comment

Comments

@conceptofmind
Copy link

conceptofmind commented Mar 3, 2025

Describe the bug
I am currently testing the Hero component from pro and it does not fit the entire screen.

To Reproduce
I am using the first component from here: https://pro.magicui.design/docs/sections/hero

Expected behavior
It should stretch the entire screen or be centered.

Screenshots
Image

Desktop (please complete the following information):

  • OS: Ubuntu
  • Browser: Chrome

Additional context
I am importing the component into page.tsx like:

import { Footer } from "@/components/sections/footer";
import { Hero } from "@/components/sections/hero";

export default function Home() {
  return (
    <main>
      <Hero />
      <Footer />
    </main>
  );
}

I am not posting the full component code since it is in pro.

Footer component aligns center perfectly.

@conceptofmind
Copy link
Author

Would it make sense to just default these hero sections to:

      <div className="relative flex w-full flex-col items-center justify-start px-4 pt-32 sm:px-6 sm:pt-24 md:pt-32 lg:px-8">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant