diff --git a/src/app/governance/[id]/styles.module.css b/src/app/governance/[id]/styles.module.css index f502021..2921da6 100644 --- a/src/app/governance/[id]/styles.module.css +++ b/src/app/governance/[id]/styles.module.css @@ -17,7 +17,7 @@ .proposal h2, .proposal h3, .proposal h4 { - font-family: 'Garamond', serif; + font-family: var(--font-alpina), serif; } .proposal h1, diff --git a/src/app/layout.tsx b/src/app/layout.tsx index afc3098..0bf601e 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,12 +1,10 @@ import { Metadata } from 'next'; -import { Inter } from 'next/font/google'; import { PropsWithChildren } from 'react'; import { links } from 'src/config/links'; +import { alpinaFont, interFont } from 'src/styles/fonts'; import 'src/styles/globals.css'; import { App } from './app'; -const inter = Inter({ subsets: ['latin'], variable: '--font-inter' }); - export const metadata: Metadata = { applicationName: 'Celo Station', metadataBase: new URL(links.home), @@ -34,7 +32,7 @@ export const metadata: Metadata = { export default function RootLayout({ children }: PropsWithChildren) { return ( - + {children} diff --git a/src/app/staking/[address]/page.tsx b/src/app/staking/[address]/page.tsx index 826da4a..a67e290 100644 --- a/src/app/staking/[address]/page.tsx +++ b/src/app/staking/[address]/page.tsx @@ -339,7 +339,7 @@ function Stakers({ group }: { group?: ValidatorGroup }) { label={() => formatNumberString(fromWei(group?.votes))} labelStyle={{ fontSize: '10px', - fontFamily: "'Garamond', 'serif'", + fontFamily: 'var(--font-alpina), serif', }} labelPosition={0} /> diff --git a/src/config/config.ts b/src/config/config.ts index 68beecf..773798e 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -24,5 +24,5 @@ export const config: Config = Object.freeze({ fornoApiKey, celoscanApiKey, infuraApiKey, - watchBlockNumber: !isDevMode, + watchBlockNumber: false, }); diff --git a/src/styles/alpina/GT-Alpina-Standard-Bold-Italic.woff2 b/src/styles/alpina/GT-Alpina-Standard-Bold-Italic.woff2 new file mode 100644 index 0000000..b49a081 Binary files /dev/null and b/src/styles/alpina/GT-Alpina-Standard-Bold-Italic.woff2 differ diff --git a/src/styles/alpina/GT-Alpina-Standard-Bold.woff2 b/src/styles/alpina/GT-Alpina-Standard-Bold.woff2 new file mode 100644 index 0000000..d62c5e9 Binary files /dev/null and b/src/styles/alpina/GT-Alpina-Standard-Bold.woff2 differ diff --git a/src/styles/alpina/GT-Alpina-Standard-Light-Italic.woff2 b/src/styles/alpina/GT-Alpina-Standard-Light-Italic.woff2 new file mode 100644 index 0000000..3f07cf9 Binary files /dev/null and b/src/styles/alpina/GT-Alpina-Standard-Light-Italic.woff2 differ diff --git a/src/styles/alpina/GT-Alpina-Standard-Light.woff2 b/src/styles/alpina/GT-Alpina-Standard-Light.woff2 new file mode 100644 index 0000000..2cadec7 Binary files /dev/null and b/src/styles/alpina/GT-Alpina-Standard-Light.woff2 differ diff --git a/src/styles/alpina/GT-Alpina-Standard-Medium-Italic.woff2 b/src/styles/alpina/GT-Alpina-Standard-Medium-Italic.woff2 new file mode 100644 index 0000000..219cbcc Binary files /dev/null and b/src/styles/alpina/GT-Alpina-Standard-Medium-Italic.woff2 differ diff --git a/src/styles/alpina/GT-Alpina-Standard-Medium.woff2 b/src/styles/alpina/GT-Alpina-Standard-Medium.woff2 new file mode 100644 index 0000000..e060e7e Binary files /dev/null and b/src/styles/alpina/GT-Alpina-Standard-Medium.woff2 differ diff --git a/src/styles/alpina/GT-Alpina-Standard-Regular-Italic.woff2 b/src/styles/alpina/GT-Alpina-Standard-Regular-Italic.woff2 new file mode 100644 index 0000000..35735ed Binary files /dev/null and b/src/styles/alpina/GT-Alpina-Standard-Regular-Italic.woff2 differ diff --git a/src/styles/alpina/GT-Alpina-Standard-Regular.woff2 b/src/styles/alpina/GT-Alpina-Standard-Regular.woff2 new file mode 100644 index 0000000..92f8dab Binary files /dev/null and b/src/styles/alpina/GT-Alpina-Standard-Regular.woff2 differ diff --git a/src/styles/alpina/GT-Alpina-Standard-Thin-Italic.woff2 b/src/styles/alpina/GT-Alpina-Standard-Thin-Italic.woff2 new file mode 100644 index 0000000..2c82083 Binary files /dev/null and b/src/styles/alpina/GT-Alpina-Standard-Thin-Italic.woff2 differ diff --git a/src/styles/alpina/GT-Alpina-Standard-Thin.woff2 b/src/styles/alpina/GT-Alpina-Standard-Thin.woff2 new file mode 100644 index 0000000..634f812 Binary files /dev/null and b/src/styles/alpina/GT-Alpina-Standard-Thin.woff2 differ diff --git a/src/styles/fonts.ts b/src/styles/fonts.ts new file mode 100644 index 0000000..924c2ce --- /dev/null +++ b/src/styles/fonts.ts @@ -0,0 +1,22 @@ +import { Inter } from 'next/font/google'; +import localFont from 'next/font/local'; + +export const interFont = Inter({ subsets: ['latin'], variable: '--font-inter' }); + +export const alpinaFont = localFont({ + src: [ + { + path: './alpina/GT-Alpina-Standard-Thin.woff2', + weight: '300', + }, + { + path: './alpina/GT-Alpina-Standard-Light.woff2', + weight: '400', + }, + { + path: './alpina/GT-Alpina-Standard-Regular.woff2', + weight: '500', + }, + ], + variable: '--font-alpina', +}); diff --git a/tailwind.config.js b/tailwind.config.js index 81efa6c..e4a5da9 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -38,7 +38,7 @@ module.exports = { }, fontFamily: { sans: ['var(--font-inter)', 'sans-serif'], - serif: ['Garamond', 'serif'], + serif: ['var(--font-alpina)', 'serif'], mono: ['Courier New', 'monospace'], }, fontSize: { @@ -70,7 +70,7 @@ module.exports = { }, backgroundImage: { 'diamond-texture': "url('/backgrounds/diamond-texture.png')", - } + }, }, },