Skip to content

Commit d778908

Browse files
committed
fix: make networking section header responsive
1 parent 1cb6b7a commit d778908

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/components/home/networking-section.tsx

+9-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export interface NetworkingSectionProps {
1212
export function NetworkingSection({ events }: NetworkingSectionProps) {
1313
return (
1414
<section className="flex flex-col gap-14 px-4 pt-24 pb-24 md:gap-16 lg:gap-20 lg:px-10">
15-
<div className="container mx-auto flex flex-row items-center gap-4">
16-
<div className="flex-grow space-y-4">
15+
<div className="container relative mx-auto flex flex-row items-center gap-4 lg:h-[237px]">
16+
<div className="w-full flex-grow space-y-4 lg:max-w-[50%]">
1717
<div className="flex flex-wrap items-end gap-2.5">
1818
<h2 className="font-bold font-white text-3xl text-white lg:text-4xl">Networking</h2>
1919
<p className="inline-flex flex-wrap items-end gap-2.5">
@@ -25,7 +25,13 @@ export function NetworkingSection({ events }: NetworkingSectionProps) {
2525
pengalaman.
2626
</p>
2727
</div>
28-
<Image className="flex-shrink-0" alt="" width={692} height={237} src="/networking-header.png" />
28+
<Image
29+
className="-z-10 absolute top-0 right-0 hidden lg:block"
30+
alt=""
31+
width={692}
32+
height={237}
33+
src="/networking-header.png"
34+
/>
2935
</div>
3036
{events?.length && events.length > 0 ? (
3137
<div className="container mx-auto flex flex-col items-center gap-10 lg:gap-12">

0 commit comments

Comments
 (0)