Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
19 changes: 15 additions & 4 deletions frontend/src/layouts/new-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useRouter } from 'next/router'
import { isEmpty } from 'lodash'
import { Avatar, Button, Dropdown, Menu, notification } from 'antd'
import localFont from 'next/font/local'
import { DM_Sans } from 'next/font/google'
import { UIStore } from '../store'
import classNames from 'classnames'
import Footer from '../components/footer/Footer'
Expand Down Expand Up @@ -54,10 +53,22 @@ const archia = localFont({
},
],
})
const dmSans = DM_Sans({
subsets: ['latin'],
const dmSans = localFont({
src: [
{
path: '../../public/fonts/dmsans-regular-webfont.woff2',
weight: '400',
},
{
path: '../../public/fonts/dmsans-medium-webfont.woff2',
weight: '500',
},
{
path: '../../public/fonts/dmsans-bold-webfont.woff2',
weight: '700',
},
],
variable: '--font-dm-sans',
weight: ['400', '500', '700'],
})

const NewLayout = ({
Expand Down