Next.js Discord

Discord Forum

repeating gradient in create next app on new routes

Answered
Mallow bee posted this in #help-forum
Open in Discord
Original message was deleted.
Answered by American Crow
Seen this before i think it's in the globals.css
View full answer

13 Replies

Mallow bee
how it should look
on new route i see this

this is from bare create next app with few modifications
American Crow
Seen this before i think it's in the globals.css
Answer
Mallow bee
going to close this
export default function About() {
  return (
    <>
      <main className="flex min-h-screen flex-col items-center justify-between p-20">
        <h1 className="text-white">about</h1>
      </main>
    </>
  )
}
i had to wrap the page with those styles too
American Crow
Do you want the keep that auto gradient?
If not just delete it from bodyin globals.css.
than you don't have to wrap
Mallow bee
yea i want the gradient for now
its just interesting how it repeats without that main wrapper
i was confused about that 🙂
American Crow
yea i was once too