Skip to content

Commit

Permalink
Move IsetSans to styles/fonts from utils
Browse files Browse the repository at this point in the history
  • Loading branch information
sashachabin committed Dec 21, 2023
1 parent e693663 commit 97108d4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions pages/_app.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createContext } from 'react'
import Head from 'next/head'
import { isetSansFont } from '../utils/font'
import { IsetSans } from '../styles/fonts/IsetSans'

import '../styles/globals.css'
import 'ekb/style.css'
Expand All @@ -15,7 +15,7 @@ function MyApp({ Component, pageProps }) {
<title>Городские руководства</title>
</Head>

<main className={isetSansFont.className}>
<main className={IsetSans.className}>
<Component {...pageProps} />
</main>
</>
Expand Down
27 changes: 27 additions & 0 deletions styles/fonts/IsetSans.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import localFont from 'next/font/local'

export const IsetSans = localFont({
src: [
{
path: 'IsetSans-Light.woff2',
weight: '300',
},
{
path: 'IsetSans-Medium.woff2',
weight: '500',
},
{
path: 'IsetSans-SemiBold.woff2',
weight: '600',
},
{
path: 'IsetSans-Regular.woff2',
weight: '400',
},
{
path: 'IsetSans-Regular-Italic.woff2',
weight: '400',
style: 'italic',
},
],
})
27 changes: 0 additions & 27 deletions utils/font.js

This file was deleted.

1 comment on commit 97108d4

@ekbdev
Copy link

@ekbdev ekbdev commented on 97108d4 Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for guides ready!

✅ Preview
https://guides-3e18hcjon-ekbdev.vercel.app
https://eguides-refactor-utils.vercel.app

Built with commit 97108d4.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.