Skip to content

Commit

Permalink
feat: add logo geocam to headerbar
Browse files Browse the repository at this point in the history
  • Loading branch information
MathildeNS committed Sep 4, 2023
1 parent 30d842e commit fd04329
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 47 deletions.
Binary file added frontend/public/assets/geocam-logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/assets/geocam-logo-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/assets/geocam-logo-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/public/assets/geocam-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
88 changes: 41 additions & 47 deletions frontend/src/components/HeadBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ import { useContext, useState } from "react";
import Grid from "@mui/material/Grid";
import AppBar from "@mui/material/AppBar";
import Toolbar from "@mui/material/Toolbar";
import Typography from "@mui/material/Typography";
import IconButton from "@mui/material/IconButton";
import VideoCameraBackIcon from "@mui/icons-material/VideoCameraBack";
import AccountCircleIcon from "@mui/icons-material/AccountCircle";
import CloudDownloadIcon from "@mui/icons-material/CloudDownload";
import CloudUploadIcon from "@mui/icons-material/CloudUpload";
import ImportModale from "./importModale";
import { Link } from "react-router-dom";
import { Button, capitalize, Menu, MenuItem } from "@mui/material";
Expand Down Expand Up @@ -50,23 +48,15 @@ const HeadBar = () => {
justifyContent="flex-start"
alignItems="center"
>
<IconButton color="inherit" aria-label="menu" sx={{ mr: 2 }}>
<VideoCameraBackIcon />
</IconButton>
<Link to={`/`} style={{ textDecoration: "none" }}>
<Typography
variant="h6"
noWrap
component="div"
sx={{
mr: 2,
display: { xs: "none", md: "flex", color: "white" },
}}
>
GeoCam
</Typography>
</Link>

<Grid item>
<Link to={`/`} style={{ textDecoration: "none" }}>
<img
src={process.env.PUBLIC_URL + "/assets/geocam-logo-dark.png"}
width="135"
height="30"
/>
</Link>
</Grid>
</Grid>
<Grid
container
Expand All @@ -75,44 +65,48 @@ const HeadBar = () => {
justifyContent="flex-end"
alignItems="center"
>

<Button variant="contained" color="secondary" href="https://natural-solutions.gitlab.io/geonature/annotation/user/start/" target="_blank" sx={{ mr: 4}}>
<Button
variant="contained"
color="secondary"
href="https://natural-solutions.gitlab.io/geonature/annotation/user/start/"
target="_blank"
sx={{ mr: 4 }}
>
{`${capitalize(t("header.user_doc"))}`}
</Button>
<IconButton
onClick={openImportModale}
sx={{ mr: 4, display: { color: "white" } }}
>
<CloudDownloadIcon />
<CloudUploadIcon />
</IconButton>

<ImportModale
open={openImport}
close={closeImportModale}
/>
<ImportModale open={openImport} close={closeImportModale} />

<ImportModale open={openImport} close={closeImportModale} />

<LanguageSelector />

<IconButton
aria-label="menu"
sx={{ mr: 2, display: { color: "white" } }}
onClick={handleClick}
>
<AccountCircleIcon />
</IconButton>
<Menu
id="basic-menu"
open={open}
anchorEl={anchorEl}
onClose={handleClose}
MenuListProps={{
"aria-labelledby": "basic-button",
}}
>
<MenuItem onClick={handleLogout}>
{capitalize(t("main.logout"))}
</MenuItem>
</Menu>
<IconButton
aria-label="menu"
sx={{ mr: 2, display: { color: "white" } }}
onClick={handleClick}
>
<AccountCircleIcon />
</IconButton>
<Menu
id="basic-menu"
open={open}
anchorEl={anchorEl}
onClose={handleClose}
MenuListProps={{
"aria-labelledby": "basic-button",
}}
>
<MenuItem onClick={handleLogout}>
{capitalize(t("main.logout"))}
</MenuItem>
</Menu>
</Grid>
</Toolbar>
</AppBar>
Expand Down

0 comments on commit fd04329

Please sign in to comment.