ISSUE-010 - Added TTF and Woff2 format fonts for Formula 1's typeface and updated the Menu bar's fonts to use them.
I incorporated the new fonts through Styled-Components just to be real cool that way.
This commit is contained in:
1 parent
03321e3cdb
commit
2d3e34b111
16 files changed
+80
-6
No files matched your search
@@ -3,7 +3,7 @@ import { NavLink } from "react-router-dom";
|
||||
import { InlineCluster } from "@bedrock-layout/inline-cluster";
|
||||
import useForwardedRef from "@bedrock-layout/use-forwarded-ref";
|
||||
|
||||
import { MenuBar, MenuItem } from "./styles";
|
||||
import { MenuBar, MenuItem, Title } from "./styles";
|
||||
|
||||
import f1Logo from "../../public/images/logos/f1-logo-red.svg";
|
||||
|
||||
@@ -48,7 +48,7 @@ export const Menu = React.forwardRef<HTMLDivElement, MenuProps>(
|
||||
return (
|
||||
<MenuBar ref={innerRef}>
|
||||
<img src={f1Logo} alt="Formula One logo" height="20px" />
|
||||
<h3>{props.title}</h3>
|
||||
<Title>{props.title}</Title>
|
||||
<nav>
|
||||
<InlineCluster as="ul" gutter="sm" justify="end">
|
||||
{newChildren.map((child, i) => (
|
||||
|
||||
@@ -2,6 +2,10 @@ import { InlineCluster } from "@bedrock-layout/inline-cluster";
|
||||
import { PadBox } from "@bedrock-layout/padbox";
|
||||
import styled, { css } from "styled-components";
|
||||
|
||||
export const Title = styled.h3`
|
||||
font-family: ${p => p.theme.fonts.f1Bold};
|
||||
`;
|
||||
|
||||
export const MenuBar = styled(InlineCluster).attrs(() => ({
|
||||
as: PadBox,
|
||||
padding: ["xs", "lg"],
|
||||
@@ -25,7 +29,8 @@ export const MenuItem = styled(PadBox).attrs(() => ({
|
||||
> a {
|
||||
color: ${p => p.theme.colors.darkGrey};
|
||||
text-decoration: none;
|
||||
font-weight: 900;
|
||||
font-family: ${p => p.theme.fonts.f1Regular};
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
${({ active }) => active && css`
|
||||
|
||||
Reference in new issue
Block a user