Skip to content

Commit

Permalink
Made the Opportunities Page more responsive and deleted unneccesary l…
Browse files Browse the repository at this point in the history
…ines of code (#150)
  • Loading branch information
SithuSoe04 authored May 3, 2024
1 parent e0cf47b commit 5b5f248
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions frontend/src/components/Opportunities/Opportunities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ const Opportunities = () => {
<Container maxWidth="xl" sx={styles.body}>
<Typography sx={styles.title}>OPPORTUNITIES</Typography>
<Grid container spacing={2} sx={{ justifyContent: 'center', alignItems: 'center' }}>
<Grid item xs={12} sm={6}>
<Grid item xs={12} sm={12} md={6}>
<ImageWithBoxShadow src={members} alt="members" />
</Grid>
<Grid item xs={12} sm={6}>
<Grid item xs={12} sm={12} md={6}>
<Typography sx={styles.subtitle}>
For <span style={{ fontStyle: 'italic' }}>members</span>.
</Typography>
Expand Down Expand Up @@ -88,8 +88,7 @@ const Opportunities = () => {
</Typography>
<Box
sx={{
marginLeft: '-2%',
marginTop: '12%',
marginTop: '3rem',
display: 'flex',
justifyContent: { xs: 'center', sm: 'left' },
padding: '8px, 16px, 8px, 16px',
Expand All @@ -99,6 +98,7 @@ const Opportunities = () => {
size="large"
variant="outlined"
sx={{
marginBottom: '2rem',
fontSize: '21px',
fontFamily: 'Chakra Petch, sans-serif',
fontWeight: '400',
Expand All @@ -107,7 +107,6 @@ const Opportunities = () => {
color: 'white',
padding: 'auto',
borderRadius: '10px',
margin: '6px 8px',
'&:hover': {
borderColor: 'white',
backgroundColor: 'rgba(255, 255, 255, 0.2)',
Expand All @@ -119,10 +118,10 @@ const Opportunities = () => {
</MuiButton>
</Box>
</Grid>
<Grid item xs={12} sm={6}>
<Grid item xs={12} sm={12} md={6}>
<ImageWithBoxShadow src={sponsors} alt="sponsors" />
</Grid>
<Grid item xs={12} sm={6}>
<Grid item xs={12} sm={12} md={6}>
<Typography sx={styles.subtitle}>
For <span style={{ fontStyle: 'italic' }}>sponsors</span>.
</Typography>
Expand All @@ -139,8 +138,7 @@ const Opportunities = () => {
</Typography>
<Box
sx={{
marginLeft: '-2%',
marginTop: '12%',
marginTop: '3rem',
display: 'flex',
justifyContent: { xs: 'center', sm: 'left' },
padding: '8px, 16px, 8px, 16px',
Expand All @@ -158,7 +156,6 @@ const Opportunities = () => {
color: 'white',
padding: 'auto',
borderRadius: '10px',
margin: '6px 8px',
'&:hover': {
borderColor: 'white',
backgroundColor: 'rgba(255, 255, 255, 0.2)',
Expand Down

0 comments on commit 5b5f248

Please sign in to comment.