Skip to content

Commit

Permalink
Add a segment-bold font for privacy policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Karolina Kosiorowska committed Mar 2, 2023
1 parent 626796e commit c3ce741
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/Legal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { css } from "linaria";
import React, { ReactNode } from "react";
import { green20, trophyGold } from "shared/styles/color-palette";
import { bodyDarkGrey80, titleDarkHunterGreen } from "shared/styles/colors";
import { segmentFontFamily } from "shared/styles/font-families";
import { segmentBoldFontFamily, segmentFontFamily } from "shared/styles/font-families";

export default function Legal({
children,
Expand Down Expand Up @@ -77,7 +77,7 @@ export default function Legal({
padding-left: 1rem;
}
strong {
color: ${titleDarkHunterGreen};
font-family: ${segmentBoldFontFamily};
}
`}
>
Expand Down
Binary file added src/shared/fonts/segment-bold/segment-bold.eot
Binary file not shown.
4 changes: 4 additions & 0 deletions src/shared/fonts/segment-bold/segment-bold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/shared/fonts/segment-bold/segment-bold.ttf
Binary file not shown.
Binary file added src/shared/fonts/segment-bold/segment-bold.woff
Binary file not shown.
Binary file added src/shared/fonts/segment-bold/segment-bold.woff2
Binary file not shown.
1 change: 1 addition & 0 deletions src/shared/styles/font-families.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const segmentFontFamily = "Segment-Regular";
export const segmentBoldFontFamily = "Segment-Bold";
export const quincyRegularFontFamily = "QuincyCF-Regular";
export const quincyTextFontFamily = "QuincyCF-Text";

Expand Down
7 changes: 7 additions & 0 deletions src/shared/styles/global-styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,12 @@ css`
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Segment-Bold";
src: url("../fonts/segment-bold/segment-bold.woff2") format("woff2");
font-weight: normal;
font-style: normal;
}
}
`;

0 comments on commit c3ce741

Please sign in to comment.