Skip to content

Commit

Permalink
fixed fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
syxanash committed Dec 16, 2024
1 parent 246a0ab commit 3da06ba
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 7 deletions.
22 changes: 17 additions & 5 deletions assets/css/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
@font-face {
font-family: "Chicago Plain";
font-style: normal;
font-weight: normal;
src: local("Chicago Plain"), url("../fonts/Chicago.woff") format("woff");
@font-face{
font-family: "Chicago";
src: url("../fonts/Chicago.woff")format("woff"),
url("../fonts/Chicago.woff2")format("woff2"),
url("../fonts/Chicago.ttf")format("truetype");
font-weight:normal;
font-style:normal;
font-display:swap;
}

@font-face {
Expand All @@ -28,6 +31,15 @@
src: local("WhiteRabbit"), url("../fonts/WhiteRabbit.woff") format('woff');
}

@font-face{
font-family: "Space Mono";
src: url("../fonts/Space-Mono.woff")format("woff"),
url("../fonts/Space-Mono.woff2")format("woff2");
font-weight:normal;
font-style:normal;
font-display:swap;
}

* {
margin: 0;
padding: 0;
Expand Down
Binary file added assets/fonts/Chicago.ttf
Binary file not shown.
Binary file modified assets/fonts/Chicago.woff
Binary file not shown.
Binary file added assets/fonts/Chicago.woff2
Binary file not shown.
Binary file added assets/fonts/Space-Mono.woff
Binary file not shown.
Binary file added assets/fonts/Space-Mono.woff2
Binary file not shown.
9 changes: 7 additions & 2 deletions assets/js/bluerain.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ let deltaTime = 0;

const rainFonts = [
"monospace",
"Chicago Plain",
"Chicago",
"Matrix Code NFI",
"Courier New",
"DatCub-Bold",
"WhiteRabbit"
"WhiteRabbit",
"Space Mono"
];

let showEmojis = true;
Expand Down Expand Up @@ -222,6 +223,10 @@ ws.addEventListener("message", async (event) => {
const postId = message?.commit.rkey;
const postUrl = `https://bsky.app/profile/${did}/post/${postId}`;

// if (message?.commit.record.text.split(' ').some(item => item.toLowerCase() === '#nsfw')) {
// debugger;
// }

addPost(postMessage, postUrl);
}
});
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
<option>Courier New</option>
<option>DatCub</option>
<option>White Rabbit</option>
<option>Space Mono</option>
</select>
</div>
</div>
Expand Down

0 comments on commit 3da06ba

Please sign in to comment.