polsevev.dev/polsevev.dev.frontend/src/styles/TopBarStyle.tsx

62 lines
1.4 KiB
TypeScript
Raw Normal View History

2023-09-01 13:27:28 +00:00
import styled from "styled-components";
2023-08-24 14:31:35 +00:00
export const Wrapper = styled("div")`
position: fixed;
top: 0;
left: 0;
2023-08-30 13:48:44 +00:00
width: calc(100% - 2em);
align-items: center;
display: flex;
2023-08-24 14:31:35 +00:00
justify-content: space-between;
2023-08-30 13:48:44 +00:00
height: 5em;
margin-left: 1em;
2023-08-24 14:31:35 +00:00
`;
2023-08-30 13:48:44 +00:00
export const TopBarBox = styled("a")`
margin-left: "2px";
display: flex;
2023-08-24 14:31:35 +00:00
align-items: center;
2023-08-30 13:48:44 +00:00
`;
2023-08-24 14:31:35 +00:00
export const NavItem = styled("button")`
2023-08-30 13:48:44 +00:00
font-size: 20px;
margin: 2px;
background-color: ${(props) => props.theme.palette.cerulean};
font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
&:hover {
border-color: ${(props) => props.theme.palette.jet};
}
`;
export const GithubLogo = styled("img")(() => ({
width: "50px",
height: "50px",
padding: "5px",
}));
2023-08-24 14:31:35 +00:00
2023-09-01 13:27:28 +00:00
export const SideBarBox = styled("div")<{ xPosition: number }>`
z-index: 100;
2023-08-31 13:02:48 +00:00
position: absolute;
2023-09-01 13:27:28 +00:00
top: 2px;
2023-08-31 13:02:48 +00:00
left: calc(100% - 10em);
overflow: overlay;
background-color: ${(props) => props.theme.palette.aero};
text-align: center;
border-radius: 25px;
border: 2px solid #ffffff;
padding-bottom: 5px;
padding-top: 5px;
2023-09-01 13:27:28 +00:00
transform: translateX(${({ xPosition }) => `${xPosition}em`});
transition: transform 0.2s ease-in-out;
`;
export const ExitLayer = styled("div")`
position: absolute;
width: 100vw;
top: 0;
left: 0;
height: 100vh;
z-index: 90;
transform: translateX(-20px);
2023-08-31 13:02:48 +00:00
`;