Skip to content

Commit

Permalink
feat: merge noto sans kr variable
Browse files Browse the repository at this point in the history
  • Loading branch information
EATSTEAK committed Jun 30, 2024
1 parent 1347e49 commit 6d674b9
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 1,197 deletions.
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineConfig({
applyBaseStyles: false,
}),
compress({
CSS: false,
CSS: true,
})],
markdown: {
rehypePlugins: [sectionize],
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@solid-primitives/set": "^0.4.11",
"astro": "4.11.0",
"astro-compress": "^2.2.28",
"autoprefixer": "^10.4.19",
"cssnano": "^7.0.3",
"satori": "^0.10.13",
"sharp": "^0.33.4",
Expand Down
1 change: 1 addition & 0 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
plugins: [
require("autoprefixer"),
require("cssnano"),
]
};
Binary file added public/fonts/NotoSansKR-Variable.woff2
Binary file not shown.
4 changes: 3 additions & 1 deletion src/components/BaseHead.astro
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
// Import the global.css file here so that it is included on
// all pages through the use of the <BaseHead /> component.
import "../styles/global.css";
import "../styles/fonts.css";
import "../styles/global.css";
interface Props {
title: string;
Expand All @@ -24,6 +25,7 @@ const { title, description, image = "/blog-placeholder-1.jpg" } = Astro.props;
<link rel="preconnect" href="https://eatsteak.goatcounter.com">

<!-- Font preloads -->
<link rel="preload" href="/fonts/NotoSansKR-Variable.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/fonts/MonoplexKR-Regular.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/fonts/Jost-Latin.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/fonts/Jost-Italic-Latin.woff2" as="font" type="font/woff2" crossorigin>
Expand Down
2 changes: 1 addition & 1 deletion src/components/GrillContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const GrillContainer: Component<{
<div
class={
props.containerClassOverride ??
"slide-to-top grill-content"
"grill-content"
}
>
{props.children}
Expand Down
1,193 changes: 1 addition & 1,192 deletions src/styles/fonts.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"jsxImportSource": "solid-js",
"outDir": "dist"
},
"exclude": ["*.mjs"]
"exclude": ["**/*.cjs", "**/*.js", "**/*.mjs"]
}
3 changes: 2 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2561,7 +2561,7 @@ __metadata:
languageName: node
linkType: hard

"autoprefixer@npm:^10.4.15":
"autoprefixer@npm:^10.4.15, autoprefixer@npm:^10.4.19":
version: 10.4.19
resolution: "autoprefixer@npm:10.4.19"
dependencies:
Expand Down Expand Up @@ -3502,6 +3502,7 @@ __metadata:
"@typescript-eslint/parser": "npm:^7.13.1"
astro: "npm:4.11.0"
astro-compress: "npm:^2.2.28"
autoprefixer: "npm:^10.4.19"
cssnano: "npm:^7.0.3"
eslint: "npm:^9.5.0"
eslint-plugin-astro: "npm:^1.2.2"
Expand Down

0 comments on commit 6d674b9

Please sign in to comment.