Skip to content

Commit

Permalink
finally bring us back to 100s
Browse files Browse the repository at this point in the history
  • Loading branch information
iamawatermelo committed Oct 28, 2024
1 parent 032b16c commit e5d5f5f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
<script>
<!-- <script>
document.getElementById('font-preload').onload = function () {
this.onload = null;
this.rel = 'stylesheet';
};
</script>
</script> -->
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
Expand Down
2 changes: 0 additions & 2 deletions src/lib/fonts.css

This file was deleted.

5 changes: 2 additions & 3 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<script>
import DoubleArrow from '$lib/images/doublearrow.svg?component';
import fonts from '$lib/fonts.css?url';
import Gear from '$lib/images/gear.svg?component';
</script>

<svelte:head>
<noscript><link rel="stylesheet" href={fonts} /></noscript>
<!-- <noscript><link rel="stylesheet" href={fonts} /></noscript> -->
<!-- See app.html -->
<link rel="preload" as="style" href={fonts} id="font-preload" />
<!-- <link rel="preload" as="style" href={fonts} id="font-preload" /> -->

<meta name="theme-color" content="#2C1B10" />
</svelte:head>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const prerender = 'auto';
// export const prerender = 'auto';
4 changes: 2 additions & 2 deletions src/routes/api/background.svg/Background.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
export let height: number;
export let seed: number;
let boxWidth = Math.ceil(width / 32);
let boxHeight = Math.ceil(height / 32) / 2;
let boxWidth = Math.ceil(Math.min(width, 1024) / 32);
let boxHeight = Math.ceil(Math.min(height, 1024) / 32) * 2;
let svgWidth = boxWidth * 32;
let svgHeight = boxHeight * 16;
Expand Down

0 comments on commit e5d5f5f

Please sign in to comment.