Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make networking section header responsive #11

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/components/home/networking-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export interface NetworkingSectionProps {
export function NetworkingSection({ events }: NetworkingSectionProps) {
return (
<section className="flex flex-col gap-14 px-4 pt-24 pb-24 md:gap-16 lg:gap-20 lg:px-10">
<div className="container mx-auto flex flex-row items-center gap-4">
<div className="flex-grow space-y-4">
<div className="container relative mx-auto flex flex-row items-center gap-4 lg:h-[237px]">
<div className="w-full flex-grow space-y-4 lg:max-w-[50%]">
<div className="flex flex-wrap items-end gap-2.5">
<h2 className="font-bold font-white text-3xl text-white lg:text-4xl">Networking</h2>
<p className="inline-flex flex-wrap items-end gap-2.5">
Expand All @@ -25,7 +25,13 @@ export function NetworkingSection({ events }: NetworkingSectionProps) {
pengalaman.
</p>
</div>
<Image className="flex-shrink-0" alt="" width={692} height={237} src="/networking-header.png" />
<Image
className="-z-10 absolute top-0 right-0 hidden lg:block"
alt=""
width={692}
height={237}
src="/networking-header.png"
/>
</div>
{events?.length && events.length > 0 ? (
<div className="container mx-auto flex flex-col items-center gap-10 lg:gap-12">
Expand Down
Loading