Skip to content

Commit f07e40c

Browse files
authored
Merge pull request #320 from kpi-ua/KB-970-intellect-kpi-ua-update-fonts
KB-970-intellect-kpi-ua-update-fonts
2 parents d0c50a6 + f135d44 commit f07e40c

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

src/app/global.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
}
254254

255255
body {
256-
font-family: 'Inter', sans-serif;
256+
font-family: 'Exo 2', sans-serif;
257257
-webkit-font-smoothing: antialiased;
258258
-moz-osx-font-smoothing: grayscale;
259259
}
@@ -276,10 +276,6 @@
276276
}
277277
}
278278

279-
* {
280-
font-family: 'Inter', sans-serif;
281-
}
282-
283279
:root {
284280
font-size: 0.875rem;
285281
line-height: 1.25rem;

src/app/layout.tsx

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import type { Metadata, Viewport } from 'next';
33
import { GoogleAnalytics } from '@next/third-parties/google';
4+
import { Exo_2 } from 'next/font/google';
45
import 'feather-icons/dist/feather';
56
import './global.css';
67

@@ -12,6 +13,12 @@ export const viewport: Viewport = {
1213
themeColor: '#1f4d80',
1314
};
1415

16+
const exo2 = Exo_2({
17+
subsets: ['cyrillic', 'latin'],
18+
display: 'swap',
19+
weight: ['400', '500', '600', '700', '800', '900'],
20+
});
21+
1522
export const metadata: Metadata = {
1623
metadataBase: new URL('https://intellect.kpi.ua'),
1724
title: 'Інтелект | Викладачі та науковці',
@@ -48,22 +55,9 @@ export const metadata: Metadata = {
4855

4956
export default function RootLayout({ children }: { children: React.ReactNode }) {
5057
return (
51-
<html lang="uk">
58+
<html lang="uk" className={exo2.className}>
5259
<head>
5360
<meta charSet="utf-8" />
54-
<link rel="preconnect" href="https://fonts.googleapis.com" />
55-
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
56-
<link
57-
href="https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
58-
rel="stylesheet"
59-
/>
60-
<link
61-
rel="stylesheet"
62-
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
63-
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
64-
crossOrigin="anonymous"
65-
referrerPolicy="no-referrer"
66-
/>
6761
</head>
6862
<body>
6963
<main className="main-layout-wrapper">{children}</main>

0 commit comments

Comments
 (0)