Skip to content

Commit

Permalink
Change serif font to GT Alpina
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrossy committed Mar 16, 2024
1 parent 64dd373 commit 795b470
Show file tree
Hide file tree
Showing 16 changed files with 29 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/governance/[id]/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
.proposal h2,
.proposal h3,
.proposal h4 {
font-family: 'Garamond', serif;
font-family: var(--font-alpina), serif;
}

.proposal h1,
Expand Down
6 changes: 2 additions & 4 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -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),
Expand Down Expand Up @@ -34,7 +32,7 @@ export const metadata: Metadata = {
export default function RootLayout({ children }: PropsWithChildren<any>) {
return (
<html lang="en" data-theme="light">
<body className={`${inter.variable} font-sans text-base`}>
<body className={`${interFont.variable} ${alpinaFont.variable} font-sans text-base`}>
<App>{children}</App>
</body>
</html>
Expand Down
2 changes: 1 addition & 1 deletion src/app/staking/[address]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ export const config: Config = Object.freeze({
fornoApiKey,
celoscanApiKey,
infuraApiKey,
watchBlockNumber: !isDevMode,
watchBlockNumber: false,
});
Binary file not shown.
Binary file added src/styles/alpina/GT-Alpina-Standard-Bold.woff2
Binary file not shown.
Binary file not shown.
Binary file added src/styles/alpina/GT-Alpina-Standard-Light.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/styles/alpina/GT-Alpina-Standard-Thin.woff2
Binary file not shown.
22 changes: 22 additions & 0 deletions src/styles/fonts.ts
Original file line number Diff line number Diff line change
@@ -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',
});
4 changes: 2 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -70,7 +70,7 @@ module.exports = {
},
backgroundImage: {
'diamond-texture': "url('/backgrounds/diamond-texture.png')",
}
},
},
},

Expand Down

0 comments on commit 795b470

Please sign in to comment.