Skip to content

Commit

Permalink
use embedde google code for font
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-chu committed Apr 22, 2024
1 parent 4270b7c commit ef16f64
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,14 @@ img {
}
}

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap");

.MuiBackdrop-root {
background-color: rgba(0,0,0,1);
opacity: 1;
}

.noto-sans-tc-regular {
font-family: "Noto Sans TC", sans-serif;
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
}
5 changes: 5 additions & 0 deletions src/app/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ export const metadata = {
export default function RootLayout({ children }) {
return (
<html lang="en">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap" rel="stylesheet" />
</head>
<body className={inter.className}>{children}</body>
</html>
);
Expand Down

0 comments on commit ef16f64

Please sign in to comment.