-
Notifications
You must be signed in to change notification settings - Fork 2
17 make the website mobile friendly #27
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
base: main
Are you sure you want to change the base?
Changes from all commits
1afaa3d
d9c2af7
e136e7d
3c7e030
f23803e
1d0ac03
d69b810
46f9059
bd778a3
eaf0f76
d366eaa
bf741b0
46e0ae9
0b43e99
c14be37
f038ac4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,9 @@ | ||
| import Select from 'react-select'; | ||
|
|
||
| const BuildingDropdown = ({ place_holder_text, building_options, setSelectedBuilding }) => { | ||
| // component for allowing a user to select a building from building options | ||
|
|
||
| const handleChange = (selectedOption) => { | ||
| setSelectedBuilding(selectedOption) | ||
| } | ||
| setSelectedBuilding(selectedOption); | ||
| }; | ||
|
|
||
| return ( | ||
| <div id={place_holder_text}> | ||
|
|
@@ -14,9 +12,15 @@ const BuildingDropdown = ({ place_holder_text, building_options, setSelectedBuil | |
| menuPosition={'fixed'} | ||
| placeholder={place_holder_text} | ||
| onChange={handleChange} | ||
| options={building_options} /> | ||
| options={building_options} | ||
| styles={{ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Microsoft edge has a 3d view tool in it's developer tools that may be helpful in viewing/updating your zIndex changes. I recommend looking for other approaches for setting the Zindex dynamically/setting these values to more "reasonable" values. |
||
| menuPortal: base => ({ ...base, zIndex: 9999 }), // Apply high z-index to the menu | ||
| menu: provided => ({ ...provided, zIndex: 9999 }), // Apply high z-index to the dropdown menu | ||
| option: provided => ({ ...provided, zIndex: 9999 }) // Apply high z-index to the dropdown options | ||
| }} | ||
| /> | ||
| </div> | ||
| ); | ||
| } | ||
| }; | ||
|
|
||
| export default BuildingDropdown; | ||
| export default BuildingDropdown; | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| /* NavBar.module.css */ | ||
| @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap"); | ||
|
|
||
| .navbar { | ||
| font-family: "Roboto", sans-serif; | ||
| text-align: center; | ||
| align-items: center; | ||
| margin-bottom: 0px; | ||
| border: 2px solid #2397e9; | ||
| border-radius: 0%; | ||
| } | ||
|
|
||
| .navLink { | ||
| color: #3f3b3b; | ||
| font-weight: 300; | ||
| padding-left: 1.5rem; | ||
| padding-right: 1.5rem; | ||
| transition: color 0.3s, background-color 0.3s; | ||
| text-decoration: none; | ||
| border-radius: 5px; | ||
| margin-left: 5px; | ||
| margin-right: 5px; | ||
| } | ||
|
|
||
| .navLink:hover { | ||
| background-color: #aeccf1; | ||
| } | ||
|
|
||
| .navbarContainer { | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| justify-content: flex-start; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| /* NavBar.module.css */ | ||
| @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap"); | ||
|
|
||
| .navbar { | ||
| font-family: "Roboto", sans-serif; | ||
| text-align: center; | ||
| align-items: center; | ||
| margin-bottom: 0px; | ||
| border-radius: 0%; | ||
| display: flex; | ||
| flex-direction: column; | ||
| } | ||
|
|
||
| .navbar-toggler { | ||
| border: #ff0000; | ||
| top: 100px; | ||
| } | ||
|
|
||
| .navLink { | ||
| color: #3f3b3b; | ||
| font-weight: 300; | ||
| padding-left: 1.5rem; | ||
| padding-right: 1.5rem; | ||
| transition: color 0.3s, background-color 0.3s; | ||
| text-decoration: none; | ||
| border-radius: 5px; | ||
| margin-left: 5px; | ||
| margin-right: 5px; | ||
| } | ||
|
|
||
| .navLink:hover { | ||
| background-color: #aeccf1; | ||
| } | ||
|
|
||
| .navbarContainer { | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| justify-content: flex-start; | ||
| flex-direction: column; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| import React from "react"; | ||
| import { useState } from "react"; | ||
| import { Navbar, Nav, Container } from "react-bootstrap"; | ||
| import { NavLink } from "react-router-dom"; | ||
| import CONFIG from "../../../config.json"; | ||
|
|
||
| import styles from "./VerticalNavBar.module.css"; | ||
| import { flexbox } from "@mui/system"; | ||
|
|
||
| function VerticalNavBar({ toggle }) { | ||
| const [sidebarOpen, setSideBarOpen] = useState(toggle); | ||
|
|
||
| return ( | ||
| <Navbar bg="light" expand="lg" className={styles.navbar}> | ||
| {sidebarOpen && ( | ||
| <> | ||
| <div> | ||
| <Navbar.Brand as={NavLink} to="/"> | ||
| Accessible Routes | ||
| </Navbar.Brand> | ||
| <img | ||
| width="45px" | ||
| height="40px" | ||
| alt="Accessible Routes logo" | ||
| src={require("../../../assets/Logo.png")} | ||
| /> | ||
| </div> | ||
|
|
||
| <div | ||
| style={{ | ||
| display: "flex", | ||
| flexDirection: "column", | ||
|
|
||
| justifyContent:"space-around" | ||
|
|
||
| }} | ||
| > | ||
| <div style={{ flex: 1 }}> | ||
| <Nav.Link as={NavLink} to="/" className={styles.navLink}> | ||
| Home | ||
| </Nav.Link> | ||
| </div> | ||
| <div style={{ flex: 1 }}> | ||
| <Nav.Link as={NavLink} to="/about" className={styles.navLink}> | ||
| About | ||
| </Nav.Link> | ||
| </div> | ||
| <div style={{ flex: 1 }}> | ||
| <Nav.Link | ||
| as={NavLink} | ||
| to={CONFIG.report_issue_page_link} | ||
| className={styles.navLink} | ||
| > | ||
| Contact Us | ||
| </Nav.Link> | ||
| </div> | ||
| </div> | ||
| </> | ||
| )} | ||
| </Navbar> | ||
| ); | ||
| } | ||
|
|
||
| export default VerticalNavBar; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this function name should be changed to be more descriptive/less general.