diff --git a/README.md b/README.md index 675da8d..273ada2 100644 --- a/README.md +++ b/README.md @@ -115,3 +115,5 @@ $ npm run prisma:reset #### Final steps 1. Add the backend .env file - get it from an existing person using the repo. + +## skyler :D diff --git a/components/Footer.tsx b/components/Footer.tsx index 1004c4e..51de979 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -1,4 +1,4 @@ -import { Heading, VStack, Link, Flex, Icon } from '@chakra-ui/react' +import { Heading, Grid, GridItem, VStack, Link, Flex, Icon } from '@chakra-ui/react' import VenueMap from './VenueMap' import { FaInstagram, FaTelegram } from 'react-icons/fa' import { MdEmail } from 'react-icons/md' @@ -36,7 +36,7 @@ const socialLinks: SocialLink[] = [ ] const linkStyles = { - pl: 7, + // pl: 7, display: 'flex', alignItems: 'center', } @@ -48,9 +48,13 @@ const iconStyles = { const Footer: React.FC = () => { return ( - - - + + + Navigate @@ -59,28 +63,34 @@ const Footer: React.FC = () => { {label} ))} - - - - For more updates, follow us on: - - {socialLinks.map(({ href, iconComponent, label }) => ( - - - {label} - - ))} - - - - Locate us: - - - + + + + + For more updates, follow us on: + + {socialLinks.map(({ href, iconComponent, label }) => ( + + + {label} + + ))} + + + + + + Locate us: + + + + + + + + Copyright © 2023 NUS College Cinnamon Student Life + - - Copyright © 2023 NUS College Cinnamon Student Life - ) } diff --git a/components/NavMenu.tsx b/components/NavMenu.tsx index be0b443..d6f91df 100644 --- a/components/NavMenu.tsx +++ b/components/NavMenu.tsx @@ -1,14 +1,8 @@ import React from 'react' import { - Box, - Container, - Flex, - HStack, + Box, Flex, HStack, Stack, Text, IconButton, - LinkBox, - LinkOverlay, - Stack, - Text, + LinkBox, LinkOverlay, useDisclosure, } from '@chakra-ui/react' import { CloseIcon, HamburgerIcon } from '@chakra-ui/icons' @@ -18,12 +12,9 @@ import { CldImage } from 'next-cloudinary' const NavLink: React.FC = (props) => ( { return ( <> - - - {/**/} - {/* NUS{' '}*/} - {/* */} - {/* College*/} - {/* {' '}*/} - {/* Club*/} - {/**/} - - - - - - - + + : } aria-label={'Open Menu'} display={{ md: 'none' }} + position={'absolute'} + top={'50%'} left={'0'} transform={'translateY(-50%)'} onClick={isOpen ? onClose : onOpen} /> - - {/* Links to various pages in the Nav bar (IGs, NOW, etc.) */} - - - - - - - - + + + + + {/* TODO: CHANGE ICON */} + + + + + {/* Links to various pages in the Nav bar (IGs, NOW, etc.) */} + + + + - {isOpen ? ( - - - - - - ) : null} + {isOpen ? ( + + + : } + aria-label={'Open Menu'} + onClick={isOpen ? onClose : onOpen} + /> + + + + + ) : null} ) } diff --git a/components/VenueMap.tsx b/components/VenueMap.tsx index 141c8d5..b6ee8a7 100644 --- a/components/VenueMap.tsx +++ b/components/VenueMap.tsx @@ -188,7 +188,7 @@ const VenueMap: React.FC = () => { return ( <> {!isSsr && ( - + {( { TileLayer, Polygon, Polyline }: VenueMapProps, TempIcon: typeof Icon, diff --git a/components/map/DynamicMap.tsx b/components/map/DynamicMap.tsx index b0165b7..817007c 100644 --- a/components/map/DynamicMap.tsx +++ b/components/map/DynamicMap.tsx @@ -9,11 +9,9 @@ import { Marker, Popup } from 'react-leaflet' import { CustomMarkerProps, LeafletComponents } from './index' -// FIXME need to fix this for mobile, original values for width and height were 100% and providing these values is a -// must for leaflet to work. But with 100% the map is not visible because parent container has no height(?) const style: CSSProperties = { - height: '20vh', - width: '20vw', + width: '100%', + height: '100%', } interface DynamicMapProps { diff --git a/components/map/index.tsx b/components/map/index.tsx index ed049a2..808676d 100644 --- a/components/map/index.tsx +++ b/components/map/index.tsx @@ -1,3 +1,4 @@ +import { he } from 'date-fns/locale' import { Icon, LatLngExpression } from 'leaflet' import dynamic from 'next/dynamic' import { ComponentType, CSSProperties, FC } from 'react' @@ -42,7 +43,9 @@ const DEFAULT_HEIGHT = '100' const Map = (props: MapProps) => { const { width = DEFAULT_WIDTH, height = DEFAULT_HEIGHT } = props const style: CSSProperties = { - aspectRatio: (parseInt(width) / parseInt(height)).toString(), + aspectRatio: 2 / 1, + width: width, + height: height, } return (