generated from acm-ucr/acm-ucr-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into Shivanink/EventComponent
- Loading branch information
Showing
3 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import Image from "next/image"; | ||
import Chart from "@/public/assets/chartimage.webp"; | ||
|
||
interface DescriptionProps { | ||
title: string; | ||
description: string; | ||
} | ||
|
||
const Description = ({ title, description }: DescriptionProps) => { | ||
return ( | ||
<div className="relative mx-10 flex h-fit max-w-7xl flex-col px-5 sm:px-10 md:px-20"> | ||
<div className="mb-5 pr-10 text-center font-hanken text-4xl font-bold text-white md:mb-10 md:text-left md:text-5xl"> | ||
{title} | ||
</div> | ||
<div className="mb-10 max-h-64 w-fit overflow-auto text-center font-roboto text-lg text-white md:mb-0 md:pr-12 md:text-left"> | ||
{description} | ||
</div> | ||
<div className="flex w-full flex-row justify-end"> | ||
<Image | ||
src={Chart} | ||
alt="description-image" | ||
className="hidden h-full max-h-28 w-full max-w-28 object-cover md:block" | ||
/> | ||
</div> | ||
<div | ||
className="left-18 absolute bottom-4 hidden h-0.5 bg-white md:block" | ||
style={{ | ||
width: "calc(100% - 280px)", | ||
}} | ||
></div> | ||
<div | ||
className="absolute right-24 top-0 hidden w-0.5 bg-white md:block" | ||
style={{ | ||
height: "calc(100% - 120px)", | ||
}} | ||
></div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Description; |