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 Home() {
return (
<section
className="flex flex-col items-center h-screen"
style={{
backgroundImage: `
radial-gradient(circle at top, #1e2963 45%, #06083a 50%, #000 55%)
`
}}
>
{page / your component}
</section>
);
}
View background:
Mobile and Desktop:
Note
If this background has served you in any way, consider following me on github or supporting me to continue working at BacksEasy.
Any questions, criticisms or improvements, please suggest them through my Linkdin..