File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
src/components/Hero/HubHero Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
1
import type { CommonHeroProps } from "@/lib/types"
2
2
3
3
import { CallToAction } from "@/components/Hero/CallToAction"
4
- import { Image } from "@/components/Image"
4
+ import { TwImage } from "@/components/Image"
5
5
import { Stack } from "@/components/ui/flex"
6
6
7
7
import { cn } from "@/lib/utils/cn"
@@ -23,20 +23,14 @@ const HubHero = ({
23
23
24
24
return (
25
25
< div className = "relative" >
26
- < Image
26
+ < TwImage
27
27
src = { heroImg }
28
28
alt = ""
29
29
priority
30
30
// TODO: adjust value when the old theme breakpoints are removed (src/theme.ts)
31
31
sizes = "(max-width: 1504px) 100vw, 1504px"
32
32
style = { { width : "100vw" , objectFit : "cover" } }
33
- h = { {
34
- base : "192px" ,
35
- md : "256px" ,
36
- lg : "320px" ,
37
- xl : "576px" ,
38
- "2xl" : "672px" ,
39
- } }
33
+ className = "h-[192px] w-screen object-cover md:h-[256px] lg:h-[320px] xl:h-[576px] 2xl:h-[672px]"
40
34
/>
41
35
< Stack
42
36
className = { cn (
You can’t perform that action at this time.
0 commit comments