-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ECO-1966] Serve fonts and charting library through CDN (#418)
- Loading branch information
Showing
10 changed files
with
42 additions
and
44 deletions.
There are no files selected for viewing
Binary file removed
BIN
-40.4 KB
src/typescript/frontend/public/fonts/FormaDJRDisplay-Medium-Testing.woff2
Binary file not shown.
Binary file removed
BIN
-40 KB
src/typescript/frontend/public/fonts/FormaDJRDisplay-Regular-Testing.woff2
Binary file not shown.
Binary file removed
BIN
-38.6 KB
src/typescript/frontend/public/fonts/FormaDJRMicro-Regular-Testing.woff2
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,30 @@ | ||
import localFont from "next/font/local"; | ||
import { CDN_URL } from "lib/env"; | ||
|
||
export const pixelar = localFont({ | ||
src: "../../public/fonts/Pixelar-Regular.woff2", | ||
display: "swap", | ||
weight: "400", | ||
style: "normal", | ||
variable: "--font-pixelar", | ||
}); | ||
export const fontsStyle = ` | ||
@font-face { | ||
font-family: Pixelar; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url("${CDN_URL}/fonts/Pixelar-Regular.woff2"); | ||
} | ||
export const formaDJRMicro = localFont({ | ||
src: "../../public/fonts/FormaDJRMicro-Regular-Testing.woff2", | ||
display: "swap", | ||
weight: "400", | ||
style: "normal", | ||
variable: "--font-forma", | ||
}); | ||
@font-face { | ||
font-family: Forma; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url("${CDN_URL}/fonts/FormaDJRMicro-Regular-Testing.woff2"); | ||
} | ||
export const formaDJRDisplayMedium = localFont({ | ||
src: "../../public/fonts/FormaDJRDisplay-Medium-Testing.woff2", | ||
display: "swap", | ||
weight: "400", | ||
style: "normal", | ||
variable: "--font-formaM", | ||
}); | ||
@font-face { | ||
font-family: FormaM; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url("${CDN_URL}/fonts/FormaDJRDisplay-Medium-Testing.woff2"); | ||
} | ||
export const formaDJRDisplayRegular = localFont({ | ||
src: "../../public/fonts/FormaDJRDisplay-Regular-Testing.woff2", | ||
display: "swap", | ||
weight: "400", | ||
style: "normal", | ||
variable: "--font-formaDR", | ||
}); | ||
:root { | ||
--font-pixelar: Pixelar; | ||
--font-forma: Forma; | ||
--font-formaM: FormaM; | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters