Skip to content

Commit

Permalink
Merge pull request #118 from HackDavis/fix/addCloseButtonToMap
Browse files Browse the repository at this point in the history
added map close button
  • Loading branch information
Sauvikesh authored Apr 28, 2024
2 parents 0f5f41d + 6fd4bb9 commit 7040316
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 7 deletions.
41 changes: 34 additions & 7 deletions app/(pages)/judges/projects/_components/ProjectsHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import styles from './ProjectsHeader.module.scss';
import { CiMap } from 'react-icons/ci';
import Image from 'next/image';
import map from 'public/judges/hub/map.png';
import mapButton from 'public/judges/hub/mapButton.png';
import { useState } from 'react';
import Modal from '@mui/material/Modal';
import Box from '@mui/material/Box';
Expand Down Expand Up @@ -61,13 +62,39 @@ export default function ProjectsHeader({
<CiMap className={styles.header_map_icon} />
</div>
<Modal open={popUpActive} onClose={handleClose}>
<Box sx={boxStyle} onClick={handleClose}>
<Image
src={map}
alt="venue map"
width={250}
style={{ background: 'black', padding: '20px' }}
/>
<Box sx={boxStyle}>
<div
style={{
display: 'flex',
flexDirection: 'column',
background: 'black',
padding: '50px',
}}
>
<Image
src={map}
alt="venue map"
width={250}
style={{ background: 'black', padding: '20px' }}
/>
<button
onClick={handleClose}
style={{
display: 'flex',
padding: '12px 45px',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
gap: '9.686px',
borderRadius: '32px',
background: '#FFC5AB',
width: '135px',
alignSelf: 'center',
}}
>
Done
</button>
</div>
</Box>
</Modal>
</div>
Expand Down
Binary file added public/judges/hub/mapButton.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 7040316

Please sign in to comment.