ISSUE-008 - Significantly improved the look of the main page menu.

This commit is contained in:
Kyle Geib committed 2021-12-22 12:01:51 -05:00
1 parent 71a92a20e7
commit 73ba3b4ddd
10 files changed
+113 -61

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
import { InlineCluster } from "@bedrock-layout/inline-cluster";
import { PadBox } from "@bedrock-layout/padbox";
import styled from "styled-components";
export const MenuBar = styled(InlineCluster).attrs(() => ({
as: PadBox,
padding: ["xs", "lg"],
stretch: 1,
gutter: "lg",
align: "center",
}))`
background-image: linear-gradient(to right, #f0f0f0, #fff);
border-block-end: 1px solid #303030;
`;
type MenuItemProps = {
active?: boolean,
};
export const MenuItem = styled(PadBox).attrs(() => ({
as: "li",
padding: ["sm", "lg"],
})) <MenuItemProps>`
border-radius: 0.25rem;
> a {
color: #333;
text-decoration: none;
font-weight: 900;
}
:hover {
background: #303030;
> a {
color: white;
}
}
`;