Skip to content

Commit 6335b7d

Browse files
committed
feat: herosection image border
1 parent 0834c55 commit 6335b7d

1 file changed

Lines changed: 26 additions & 22 deletions

File tree

src/components/sections/HeroSection.tsx

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,19 @@ export function HeroSection({ content, imageSrc = "/code0_software.png" }: HeroS
9393
</div>
9494

9595
<div className="w-full max-w-6xl">
96-
<div className="relative overflow-hidden rounded-2xl">
97-
<Image
98-
src={imageSrc}
99-
alt={content.heading}
100-
height={620}
101-
width={1200}
102-
priority
103-
fetchPriority="high"
104-
sizes="(min-width: 1024px) 72rem, 100vw"
105-
className="rounded-2xl border border-white/10 shadow-[0_14px_38px_rgba(0,0,0,0.24)] ring-4 ring-white/5"
106-
/>
96+
<div className="rounded-[1.3rem] border border-white/20 bg-white/10 p-1">
97+
<div className="relative overflow-hidden rounded-[1rem]">
98+
<Image
99+
src={imageSrc}
100+
alt={content.heading}
101+
height={620}
102+
width={1200}
103+
priority
104+
fetchPriority="high"
105+
sizes="(min-width: 1024px) 72rem, 100vw"
106+
className="block rounded-[1rem] shadow-[0_14px_38px_rgba(0,0,0,0.24)]"
107+
/>
108+
</div>
107109
</div>
108110
</div>
109111
</motion.div>
@@ -182,17 +184,19 @@ export function HeroSection({ content, imageSrc = "/code0_software.png" }: HeroS
182184
</motion.div>
183185
</div>
184186
<div className="h-auto w-full lg:w-4/5 lg:-mr-56">
185-
<div className="relative overflow-hidden rounded-2xl lg:rounded-l-2xl lg:rounded-r-none">
186-
<Image
187-
src={imageSrc}
188-
alt={"Code= Example"}
189-
height={620}
190-
width={900}
191-
priority
192-
fetchPriority="high"
193-
sizes="(min-width: 1024px) 60vw, 100vw"
194-
className="rounded-2xl border border-white/10 shadow-[0_14px_38px_rgba(0,0,0,0.24)] lg:rounded-l-2xl lg:rounded-r-none lg:border-0 lg:border-l lg:border-y lg:ring-4 lg:ring-white/5"
195-
/>
187+
<div className="rounded-[1.3rem] border border-white/20 bg-white/10 p-1 lg:rounded-l-[1.3rem] lg:rounded-r-none">
188+
<div className="relative overflow-hidden rounded-[1rem] lg:rounded-l-[1rem] lg:rounded-r-none">
189+
<Image
190+
src={imageSrc}
191+
alt={"Code0 Example"}
192+
height={620}
193+
width={900}
194+
priority
195+
fetchPriority="high"
196+
sizes="(min-width: 1024px) 60vw, 100vw"
197+
className="block rounded-[1rem] shadow-[0_14px_38px_rgba(0,0,0,0.24)] lg:rounded-l-[1rem] lg:rounded-r-none"
198+
/>
199+
</div>
196200
</div>
197201
</div>
198202
</motion.div>

0 commit comments

Comments
 (0)