back

Back

Black Star

black

February 18, 2024

Black Star - black Background

How to implement:

With tailwind installed in your project (tutorial), implement these tailwind classes in your parent div where it will reflect the background.

export default function Background() {
  return (
    <div className="flex flex-col items-center h-screen w-full">
      <div className="relative flex flex-col h-full w-full bg-black">
        <div className="absolute bottom-0 left-0 right-0 top-0 bg-[linear-gradient(to_right,#0a0a0a_1px,transparent_1px),linear-gradient(to_bottom,#8080800a_1px,transparent_1px)] bg-[size:14px_24px]"></div>
          <div className="absolute left-0 right-0 top-[-10%] h-[1000px] w-[1000px] rounded-full bg-[radial-gradient(circle_400px_at_50%_300px,#fbfbfb36,#000)]"></div>
     
        {your page / component}       
      </div>
    </div>
  );
}

View background:

Captura de tela de 2024-03-18 10-04-04

Mobile and Desktop:

Macbook-Air-localhost (1) (1)

Note

If this background has served you in any way, consider following me on github or supporting me to continue working at BacksEasy.