Reputation: 209
I'm busing tailwindcss
for my css. So for this I defined the image inside the tailwind config. Then I applied a cover
on it but the image doesn't scale when I change the size of the screen. I thought by adding max-w-full min-h-full
would fixe the problem but nothing.
import React from 'react'
import { CountdownEvent } from './CountdownEvent'
import { CarouselSaf } from './CarouselSaf'
import { Navbar } from './Navbar'
export const Home = () => {
return (
<section className="h-screen">
<div className="bg-safthon bg-no-repeat bg-cover max-w-full min-h-full">
<Navbar />
<div className="flex h-screen items-center">
<CountdownEvent />
</div>
</div>
</section>
)
}
Upvotes: 1
Views: 2130