-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f415a11
commit 2d75cbb
Showing
12 changed files
with
2,440 additions
and
2,721 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
import Unfont from 'unplugin-fonts/astro/component.astro'; | ||
--- | ||
|
||
<html> | ||
<head> | ||
<Unfont /> | ||
</head> | ||
<body> | ||
<h1>Hello Astro!</h1> | ||
<h2>I'm using a local font in a subfolder !</h2> | ||
<div class="fontsource-abeezee">I'm a ABeeZee fontsource</div> | ||
<div class="fontsource-truculenta">I'm a Truculenta fontsource</div> | ||
<a href="https://vitejs.dev/guide/features.html" target="_blank">Documentation</a> | ||
</body> | ||
</html> | ||
|
||
<style> | ||
body { | ||
font-family: "Crimson Pro", Avenir, Helvetica, Arial, sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
text-align: center; | ||
color: #2c3e50; | ||
margin-top: 60px; | ||
} | ||
|
||
a { | ||
font-family: "Open Sans", Avenir, Helvetica, Arial, sans-serif; | ||
} | ||
|
||
h2 { | ||
font-family: "Dancing Script", sans-serif; | ||
font-size: 3rem; | ||
font-weight: 600; | ||
} | ||
|
||
.fontsource-abeezee { | ||
font-family: "ABeeZee", sans-serif; | ||
} | ||
|
||
.fontsource-truculenta { | ||
font-family: "Truculenta", sans-serif; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
{ | ||
"name": "sveltekit-test", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json", | ||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch" | ||
}, | ||
"devDependencies": { | ||
"@fontsource/abeezee": "^4.5.10", | ||
"@fontsource/truculenta": "^4.5.12", | ||
"@neoconfetti/svelte": "^1.0.0", | ||
"@sveltejs/adapter-auto": "^2.0.0", | ||
"@sveltejs/kit": "^1.5.0", | ||
"@types/cookie": "^0.5.1", | ||
"svelte": "^3.54.0", | ||
"svelte-check": "^3.0.1", | ||
"unplugin-fonts": "workspace:*", | ||
"vite": "^4.0.0", | ||
"typescript": "^5.0.2" | ||
} | ||
"name": "sveltekit-test", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json", | ||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch" | ||
}, | ||
"devDependencies": { | ||
"@fontsource/abeezee": "^4.5.10", | ||
"@fontsource/truculenta": "^4.5.12", | ||
"@neoconfetti/svelte": "^1.0.0", | ||
"@sveltejs/adapter-auto": "^2.0.0", | ||
"@sveltejs/kit": "^1.15.5", | ||
"@types/cookie": "^0.5.1", | ||
"svelte": "^3.58.0", | ||
"svelte-check": "^3.2.0", | ||
"typescript": "^5.0.4", | ||
"unplugin-fonts": "workspace:*", | ||
"vite": "^4.2.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
<script> | ||
import { links } from 'unplugin-fonts/head' | ||
import 'unfonts.css' | ||
</script> | ||
|
||
<svelte:head> | ||
{#each links as link} | ||
<link {...link?.attrs || {}} /> | ||
{/each} | ||
</svelte:head> | ||
|
||
<main> | ||
<slot /> | ||
</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.