feat: add topnav
This commit is contained in:
parent
cf33d0e732
commit
1560bf4f7c
|
|
@ -23,6 +23,7 @@ export function FullscreenModal({
|
|||
<div
|
||||
css={css({
|
||||
padding: "2rem",
|
||||
paddingTop: "4rem",
|
||||
width: "100%",
|
||||
})}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,71 @@
|
|||
import { css } from "@emotion/react";
|
||||
|
||||
const TOP_PANEL_HEIGHT = "3rem";
|
||||
const BORDER_COLOR = "#ededf290";
|
||||
|
||||
const breakpoints = [768];
|
||||
const mq = breakpoints.map((bp) => `@media (max-width: ${bp}px)`);
|
||||
|
||||
export function TopNav() {
|
||||
return (
|
||||
<div
|
||||
css={css({
|
||||
display: "flex",
|
||||
transition: ".5s",
|
||||
transform: "translate(0px, 0px)",
|
||||
position: "fixed",
|
||||
top: 0,
|
||||
left: 0,
|
||||
width: "100%",
|
||||
height: TOP_PANEL_HEIGHT,
|
||||
backgroundColor: "#ffffff50",
|
||||
backdropFilter: "blur(12px)",
|
||||
borderBottom: `1px solid ${BORDER_COLOR}`,
|
||||
zIndex: 9999,
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
})}
|
||||
>
|
||||
<div
|
||||
css={css({
|
||||
paddingLeft: "2rem",
|
||||
alignItems: "center",
|
||||
flexDirection: "row",
|
||||
display: "flex",
|
||||
gap: "0.75rem",
|
||||
})}
|
||||
>
|
||||
<span
|
||||
css={css({
|
||||
fontSize: "14px",
|
||||
fontWeight: "600",
|
||||
color: "#5b5d63",
|
||||
})}
|
||||
>
|
||||
🗺️ Map3d
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div
|
||||
css={css({
|
||||
padding: "0rem 0rem",
|
||||
[mq[0]]: {
|
||||
display: "none",
|
||||
},
|
||||
})}
|
||||
></div>
|
||||
|
||||
<div
|
||||
css={css({
|
||||
paddingRight: "1rem",
|
||||
display: "flex",
|
||||
flexDirection: "row",
|
||||
gap: "0.5rem",
|
||||
[mq[0]]: {
|
||||
display: "none",
|
||||
},
|
||||
})}
|
||||
></div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
@ -16,6 +16,7 @@ import { ChevronLeft, ChevronRight, Download } from "lucide-react";
|
|||
import { useAreaStore } from "@/state/areaStore";
|
||||
import { useActionStore } from "@/state/exportStore";
|
||||
import { Modal } from "@/components/modal/Modal";
|
||||
import { TopNav } from "@/components/nav/TopNav";
|
||||
|
||||
const IconSize = css({
|
||||
width: "14px",
|
||||
|
|
@ -75,6 +76,8 @@ function App() {
|
|||
|
||||
return (
|
||||
<div css={css({ height: "100%", width: "100%" })}>
|
||||
<TopNav />
|
||||
|
||||
<FullscreenModal isOpen={steps[step] == "front"}>
|
||||
<Column gap="1rem">
|
||||
<Column gap="0.5rem">
|
||||
|
|
|
|||
Loading…
Reference in New Issue