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

Programs #415

Merged
merged 5 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
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
Binary file added frontend/public/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
139 changes: 137 additions & 2 deletions frontend/src/app/Programs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,139 @@
export default function Programs() {
// TODO
return <></>;
return (
<div className="Programs relative h-[1469px] w-full overflow-auto overflow-hidden bg-white">
<div className="Ellipse absolute right-[-200px] top-[636px] h-72 w-72 rounded-full bg-zinc-400 bg-opacity-30 blur-3xl" />
<div className="Ellipse absolute left-[-200px] top-[205px] h-64 w-64 rounded-full bg-pink-300 bg-opacity-30 blur-3xl" />

<ProgramsArea />
<ItemsTag />
<Button text={buttonText} img={arrowPic} />
</div>
);
}

const arrowPic = '/[email protected]';
const buttonText = 'More About WSS';

const items = [
{
id: 1,
title: 'Seminars',
overline: 'Overline Goes Here',
img: 'tmp',
desc: 'The seminars comprise a four-day event where speakers present their research and ideas, sharing their findings and teaching related topics. Each day of the event features different speakers and topics, providing participants with a diverse range of perspectives and knowledge.',
},
{
id: 2,
title: 'Round Tables',
overline: 'Overline Goes Here',
img: 'tmp',
desc: "During the event, we host round table discussions on specific topics, inviting experts in the field to share their insights and engage with participants' concerns. Please note that the round tables are conducted in Persian.",
},
{
id: 3,
title: 'Lab Talks',
overline: 'Overline Goes Here',
img: 'tmp',
desc: 'This section focuses on the laboratories of the Faculty of Computer Engineering at Sharif University of Technology. In each session, we feature a different laboratory, with members introducing their lab and discussing current research topics. This provides participants with an opportunity to learn about cutting-edge research and developments in computer engineering.',
},
];

function ProgramsArea() {
return (
<div className="AutoLayoutVertical absolute left-[calc(50%_-_145px)] top-[0px] inline-flex h-[104px] w-[290px] flex-col items-center justify-start">
<div className="OverlineGoesHere font-['Manrope'] text-lg font-medium uppercase tracking-wide text-neutral-400">
Overline Goes Here
</div>
<div className="Programs font-['Manrope'] text-[64px] font-bold text-slate-800">
Programs
</div>
</div>
);
}

function Button({ text, img }) {
return (
<div className="AutoLayoutHorizontal absolute left-[calc(50%_-_121px)] top-[1298px] flex h-16 w-52 items-center items-center justify-center gap-2.5 rounded-md bg-secondary px-8">
<div className="MoreAboutWss font-['Manrope'] text-lg font-bold text-white">
{text}
</div>
<div className="ArrowRight relative h-6 w-6">
<img
className="relative h-6 w-6 shrink-0 justify-center overflow-hidden object-cover"
alt="arrow"
src={img}
/>
</div>
</div>
);
}

function ItemText({ title, overline, description }) {
return (
<div className="AutoLayoutVertical inline-flex h-[100%] w-96 flex-col items-start justify-start gap-2.5">
<div className="AutoLayoutVertical flex flex-col items-start justify-start">
<div className="font-['Manrope'] text-[16px] font-medium uppercase tracking-wide text-neutral-400">
{overline}
</div>
<div className="title font-['Manrope'] text-[48px] font-bold text-slate-800">
{title}
</div>
</div>
<div className="description w-96 font-['Manrope'] text-[18px] font-normal leading-relaxed text-neutral-400">
{description}
</div>
</div>
);
}

function ItemImg({ img }) {
if (img.localeCompare('') == 0)
return (
<div className="Image h-72 shrink grow basis-0 rounded-lg bg-gray-200" />
);
else
return (
<div className="Image h-[300px] w-[433px] rounded-lg">
<img
className="relative h-full w-full shrink-0 overflow-hidden object-cover"
alt=""
src={img}
/>
</div>
);
}

function ItemTag({ item }) {
if (item.id % 2 == 1)
return (
<div className="AutoLayoutHorizontal flex h-[300px] w-[993px] items-center items-center justify-start gap-20">
<ItemText
title={item.title}
overline={item.overline}
description={item.desc}
/>
<ItemImg img={item.img} />
</div>
);
else
return (
<div className="AutoLayoutHorizontal inline-flex h-[300px] w-[993px] items-center justify-start gap-20">
<ItemImg img={item.img} />
<ItemText
title={item.title}
overline={item.overline}
description={item.desc}
/>
</div>
);
}

function ItemsTag() {
return (
<div className="relative left-[calc(50%_-_497px)] top-[174px] flex w-[993px] flex-col items-end justify-start gap-[72px] text-base">
{items.map((item) => (
<ItemTag item={item} key={item.id} />
))}
</div>
);
}
45 changes: 45 additions & 0 deletions frontend/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,53 @@ module.exports = {
800: '#a69ac6',
900: '#d3cde3',
},
white: '#fff',
darkslategray: {
100: '#1f2b3d',
200: 'rgba(10, 46, 79, 0.8)',
},
black: '#000',
gray: {
100: '#fafafa',
200: 'rgba(255, 255, 255, 0.4)',
300: 'rgba(255, 255, 255, 0.8)',
400: 'rgba(255, 255, 255, 0.6)',
500: 'rgba(255, 255, 255, 0.3)',
},
darkslateblue: '#0b3678',
lightslategray: '#8a8998',
whitesmoke: '#e8eaee',
gainsboro: '#e2e7ef',
dodgerblue: 'rgba(15, 122, 219, 0.8)',
},
spacing: {},
fontFamily: {
manrope: 'Manrope',
},
borderRadius: {
'77xl': '96px',
'21xl': '40px',
mid: '17px',
'17xl': '36px',
},
},
fontSize: {
xl: '20px',
lg: '18px',
xs: '12px',
'9xl': '28px',
'13xl': '32px',
'29xl': '48px',
base: '16px',
'41xl': '60px',
'45xl': '64px',
'33xl': '52px',
sm: '14px',
inherit: 'inherit',
},
},
plugins: [],
corePlugins: {
preflight: false,
},
};