Skip to content

Commit

Permalink
Make Home page responsive and tidy up Profile Page css
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinzi-c committed Jul 20, 2024
1 parent 9315763 commit 8adaefc
Show file tree
Hide file tree
Showing 9 changed files with 98 additions and 25 deletions.
Binary file added web/public/E47.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions web/src/app/components/FindOutMore/FindOutMore.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.container {
height: 100vh;
}

.backgroundImage {
height: 100vh;
opacity: 0.5;
}

.textBox {
position: absolute;
z-index: 2;
}

.text {
text-align: center;
}
46 changes: 44 additions & 2 deletions web/src/app/components/FindOutMore/FindOutMore.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,47 @@
import { Flex, Box, Text, Button } from '@mantine/core';
import { Flex, Box, Text, Button, BackgroundImage, Center, Anchor, Space } from '@mantine/core';
import classes from './FindOutMore.module.css';

export function FindOutMore() {
return <></>;
return (
<Box className={classes.container}>
<BackgroundImage className={classes.backgroundImage} src="E47.jpg" />
<Flex
align="Center"
justify="Center"
direction="column"
gap="xl"
mt={{ base: '-35rem', sm: '-25rem' }}
ml={{ base: '50', sm: '200' }}
mr={{ base: '50', sm: '200' }}
className={classes.textBox}
>
<Text fz={{ base: 'md', sm: 'xl' }} lh={{ base: 'md', sm: 'xl' }} className={classes.text}>
Your one-stop shop for connecting F:SAE:47 members, sponsors, and alumni! Whether you're a
student seeking your dream internship or graduate role, a sponsor, or an alumnus looking
to connect your company with the next generation of innovators, this platform is designed
to streamline your job search and talent acquisition. For more info on the F:SAE:47 club
and its mission, visit our{' '}
<Anchor
fz={{ base: 'md', sm: 'xl' }}
href="https://www.fsae.co.nz/"
target="_blank"
underline="hover"
>
official website
</Anchor>
.
</Text>
<Button
component="a"
href="https://www.fsae.co.nz/"
size="lg"
radius={100}
fw={0}
color="var(--mantine-color-customAzureBlue-1)"
>
Find out more
</Button>
</Flex>
</Box>
);
}
17 changes: 6 additions & 11 deletions web/src/app/components/Guides/Guide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Center, Title, Text, Flex, Space, Button, Box } from '@mantine/core';
import { IconArrowRight } from '@tabler/icons-react';
import { useScrollIntoView } from '@mantine/hooks';
import classes from './Guides.module.css';
import { NavLink } from 'react-router-dom';

type GuideProps = {
title: string;
Expand Down Expand Up @@ -77,17 +78,11 @@ export function Guide({
<Text ta="center">{description3}</Text>
</Box>
</Flex>

<Button
component="a"
href={useRef}
size="lg"
radius={100}
fw={0}
color="var(--mantine-color-customAzureBlue-1)"
>
{buttonText} <IconArrowRight></IconArrowRight>
</Button>
<NavLink to={useRef}>
<Button size="lg" radius={100} fw={0} color="var(--mantine-color-customAzureBlue-1)">
{buttonText} <IconArrowRight></IconArrowRight>
</Button>
</NavLink>
</Flex>
);
}
12 changes: 12 additions & 0 deletions web/src/app/components/Welcome/Welcome.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,15 @@
height: 100vh;
opacity: 0.9;
}

.titleContainer {
height: 100vh;
}

.title {
color: white;
font-style: italic;
background-color: rgba(000, 000, 000, 0.5);
border-radius: 5%;
text-align: center;
}
10 changes: 8 additions & 2 deletions web/src/app/components/Welcome/Welcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ export function Welcome() {
return (
<Box mx="auto" className={classes.HomePage}>
<BackgroundImage src="home_background.jpg" className={classes.BackgroundImage}>
<Flex justify="center" align="flex-end" style={{ height: '100vh' }}>
<Title size="2rem" textWrap="wrap" style={{ color: 'white', fontStyle: 'italic' }}>
<Flex justify="center" align="flex-end" className={classes.titleContainer}>
<Title
fz={{ base: '1.5rem', sm: '2rem' }}
lh={{ base: 'md', sm: 'xl' }}
textWrap="wrap"
mb={50}
className={classes.title}
>
Welcome to the University of Auckland F:SAE:47 Job Board
</Title>
</Flex>
Expand Down
5 changes: 3 additions & 2 deletions web/src/app/pages/Home.page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { BackgroundImage, Box, Title, Flex } from '@mantine/core';
import {Welcome} from "../components/Welcome/Welcome"
import { Welcome } from '../components/Welcome/Welcome';
import { FindOutMore } from '../components/FindOutMore/FindOutMore';
import { Guide } from '../components/Guides/Guide';

export function HomePage() {
return (
<>
<Welcome />
<FindOutMore />
<Guide
title="Students"
subtitle1="Sign-up"
Expand Down
9 changes: 1 addition & 8 deletions web/src/app/pages/StudentProfile.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,7 @@ export function StudentProfile() {
const [showMoreSkills, setShowMoreSkills] = useState(false);
const [showMoreEducation, setShowMoreEducation] = useState(false);
return (
<Box
style={{
backgroundColor: 'var(--mantine-color-background-1)',
height: '100vh',
color: 'var(--mantine-color-customWhite-1',
overflowY: 'auto',
}}
>
<Box className={classes.container}>
<Card h={280} className={classes.card}>
<Card.Section h={250} className={classes.banner} onClick={handleBannerChange} />
{userData?.firstName && (
Expand Down
7 changes: 7 additions & 0 deletions web/src/app/styles/StudentProfile.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
.container {
background-color: var(--mantine-color-background-1);
height: 100vh;
color: var(--mantine-color-customWhite-1);
overflow-y: auto;
}

.card {
background-color: var(--mantine-color-background-1);
position: relative;
Expand Down

0 comments on commit 8adaefc

Please sign in to comment.