Skip to content

Commit

Permalink
added bottom image in new branch
Browse files Browse the repository at this point in the history
  • Loading branch information
poojakedia committed Feb 4, 2024
1 parent 9f45769 commit 2666b7c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
18 changes: 15 additions & 3 deletions app/(landing)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,30 @@ export default function Page() {
* component to a relevant loading component.
*/
}
<GenericSection title="Schedule" color="white">
<GenericSection title="Schedule">
<Suspense fallback={<>Loading Schedule!</>}>
<Schedule />
</Suspense>
</GenericSection>
<GenericSection title="Sponsors" color="gray-100">
<GenericSection title="Sponsors">
<Suspense fallback={<>Loading Sponsors!</>}>
<Sponsors />
</Suspense>
</GenericSection>
<GenericSection title="FAQ" color="gray-500">
<GenericSection title="FAQ" color="bg-gray-900">
<FAQ />
<Image
src="/landing/wand-cats-combined.png"
alt="bottom image"
layout="responsive"
object-fit= "cover"
style={{
width: '100%',
height: 'auto',
}}
width={500}
height={300}
/>
</GenericSection>
</div>
</main>
Expand Down
6 changes: 4 additions & 2 deletions app/(landing)/sections/GenericSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@ import { ReactNode } from 'react';
type GenericSectionProps = {
children: ReactNode;
title: string;
color: string;
color?: string;
};

export default function GenericSection(props: GenericSectionProps) {
const defaultColor = 'bg-blue-100';
const bgColorNew = props.color ? `${props.color}` : defaultColor;
return (
<div
id={props.title}
className={'flex w-full flex-col items-center bg-blue-200'}
>
<SectionTitle title={props.title} />
{props.children}
<div className='h-[15vh] w-full bg-blue-100'></div>
<div className={`h-[15vh] w-full ${bgColorNew}`}></div>
</div>
);
}
Binary file added public/landing/wand-cats-combined.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2666b7c

Please sign in to comment.