-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor navbar, footer into separate folders and replace styles with the mui library
- Loading branch information
Showing
18 changed files
with
356 additions
and
206 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
import React, { Fragment } from "react"; | ||
|
||
import Layout from "./Layout"; | ||
import { | ||
ABSOLUTE_PATH, | ||
DISPLAY_NAME, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from "react"; | ||
import { AppBar, Toolbar, Container, Typography } from "@mui/material"; | ||
import FavoriteIcon from "@mui/icons-material/Favorite"; | ||
|
||
const Footer = () => { | ||
return ( | ||
<AppBar position="fixed" sx={{ backgroundColor: "white", color: "black", top: "auto", bottom: 0 }} elevation={0}> | ||
<Toolbar> | ||
<Container sx={{ display: "flex", justifyContent: "flex-end" }}> | ||
<Typography variant="body1" sx={{ color: "black" }}> | ||
Made with <FavoriteIcon sx={{ color: "red", verticalAlign: "middle" }} /> | ||
</Typography> | ||
</Container> | ||
</Toolbar> | ||
</AppBar> | ||
); | ||
}; | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from "react"; | ||
import { AppBar, Toolbar, Typography, Button, Box } from "@mui/material"; | ||
import { Link } from "react-router-dom"; | ||
import { APP_TITLE } from "@config/env.js"; | ||
|
||
const NavbarMenu = () => { | ||
return ( | ||
<AppBar | ||
position="static" | ||
elevation={1} | ||
sx={{ backgroundColor: "white", color: "black", zIndex: 100, marginBottom: 3 }} | ||
> | ||
<Toolbar> | ||
<Typography variant="h6" component="div" sx={{ mr: 2 }}> | ||
<Link to="/" style={{ textDecoration: "none", color: "black" }}> | ||
{APP_TITLE} | ||
</Link> | ||
</Typography> | ||
|
||
<Box sx={{ display: "flex", gap: 2 }}> | ||
<Button color="inherit" component={Link} to="/scripts"> | ||
Scripts | ||
</Button> | ||
<Button color="inherit" component={Link} to="/executions"> | ||
Executions | ||
</Button> | ||
</Box> | ||
</Toolbar> | ||
</AppBar> | ||
); | ||
}; | ||
|
||
export default NavbarMenu; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from "react"; | ||
import { Container } from "@mui/material"; | ||
import NavbarMenu from "../components/Navbar/NavbarMenu.jsx"; | ||
import { Outlet } from "react-router-dom"; | ||
import Footer from "../components/Footer/Footer.jsx"; | ||
|
||
const Layout = () => { | ||
return ( | ||
<div> | ||
<NavbarMenu /> | ||
<Container maxWidth="lg"> | ||
<Outlet /> | ||
</Container> | ||
<Footer /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Layout; |
File renamed without changes.