diff --git a/src/App/App.module.css b/src/App/App.module.css index 73c2411..ddcfd43 100644 --- a/src/App/App.module.css +++ b/src/App/App.module.css @@ -14,4 +14,5 @@ display: flex; align-items: center; justify-content: center; + z-index: 100000; } diff --git a/src/App/Navbar/Navbar.module.css b/src/App/Navbar/Navbar.module.css new file mode 100644 index 0000000..408b890 --- /dev/null +++ b/src/App/Navbar/Navbar.module.css @@ -0,0 +1,26 @@ +.container { + position: fixed; + top: 0; + z-index: 1; + width: 100vw; + height: 15vh; + display: flex; + align-items: center; + justify-content: center; +} + +.logo { + height: 10vh; +} + +.title { + font-size: xx-large; + text-decoration: none; + color: black; +} + +@media screen and (orientation: portrait) { + .container { + height: 15vw; + } +} diff --git a/src/App/Navbar/index.tsx b/src/App/Navbar/index.tsx new file mode 100644 index 0000000..d9db364 --- /dev/null +++ b/src/App/Navbar/index.tsx @@ -0,0 +1,31 @@ +import React from "react"; + +import styles from "./Navbar.module.css"; +import logoIcon from "~/assets/logo.svg"; +import { useLocation, Link } from "wouter"; + +export const Navbar = () => { + const [path] = useLocation(); + + return ( +
+ + {path === "/" ? ( + + Publite logotype + + ) : ( + Publite + )} + +
+ ); +}; diff --git a/src/App/index.tsx b/src/App/index.tsx index cb24e71..86179bb 100644 --- a/src/App/index.tsx +++ b/src/App/index.tsx @@ -8,6 +8,7 @@ import { UploadForm } from "~/pages/UploadForm"; import { Dots } from "~/utils/Dots"; import styles from "./App.module.css"; +import { Navbar } from "./Navbar"; export const App = () => { const [loading, setLoading] = useState(false); @@ -22,6 +23,7 @@ export const App = () => { )} + diff --git a/src/assets/logo.svg b/src/assets/logo.svg new file mode 100644 index 0000000..f739aa6 --- /dev/null +++ b/src/assets/logo.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + diff --git a/src/index.css b/src/index.css index 5b578eb..053d123 100644 --- a/src/index.css +++ b/src/index.css @@ -15,7 +15,6 @@ body { font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; - background: rgba(0, 0, 0, 0.05) none repeat scroll 0% 0%; color: #000; }