Skip to content

Commit

Permalink
chore: refactor Image to TwImage
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhburade committed Aug 21, 2024
1 parent 56f68c1 commit 19aee87
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/components/Hero/HubHero/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { CommonHeroProps } from "@/lib/types"

import { CallToAction } from "@/components/Hero/CallToAction"
import { Image } from "@/components/Image"
import { TwImage } from "@/components/Image"
import { Stack } from "@/components/ui/flex"

import { cn } from "@/lib/utils/cn"
Expand All @@ -23,20 +23,14 @@ const HubHero = ({

return (
<div className="relative">
<Image
<TwImage
src={heroImg}
alt=""
priority
// TODO: adjust value when the old theme breakpoints are removed (src/theme.ts)
sizes="(max-width: 1504px) 100vw, 1504px"
style={{ width: "100vw", objectFit: "cover" }}
h={{
base: "192px",
md: "256px",
lg: "320px",
xl: "576px",
"2xl": "672px",
}}
className="h-[192px] w-screen object-cover md:h-[256px] lg:h-[320px] xl:h-[576px] 2xl:h-[672px]"
/>
<Stack
className={cn(
Expand Down

0 comments on commit 19aee87

Please sign in to comment.