Skip to content

Commit

Permalink
Improve page performance
Browse files Browse the repository at this point in the history
  • Loading branch information
TibiNonEst committed Nov 21, 2024
1 parent 0c16cd9 commit b176586
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
7 changes: 7 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from "astro/config";

export default defineConfig({
image: {
domains: [ "static.tibs.gay" ]
}
});
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/check": "^0.9.4",
"@catppuccin/palette": "^1.7.1",
"@fortawesome/fontawesome-free": "^6.7.0",
"@fortawesome/fontawesome-free": "^6.7.1",
"astro": "^4.16.13",
"bootstrap": "^5.3.3",
"sass": "^1.81.0",
Expand Down
7 changes: 7 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const { title } = Astro.props;
<title>{title}</title>

<link rel="preconnect" href="https://static.tibs.gay">
<link rel="preconnect" href="https://fonts.bunny.net">

<link href="https://fonts.bunny.net/css?family=noto-sans:400,500" rel="stylesheet">
</head>

<body>
Expand All @@ -30,6 +33,10 @@ const { title } = Astro.props;
html, body {
height: 100%;
}

body {
font-family: "Noto Sans", "Open Sans", "Fira Sans", Roboto, sans-serif, system-ui, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
</style>

<style is:global lang="scss">
Expand Down
7 changes: 3 additions & 4 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
import Layout from '../layouts/Layout.astro';
import { Picture } from 'astro:assets';
---

<Layout title="tibs">
<main>
<a href="/">
<img src="https://static.tibs.gay/tibs.jpg" alt="tibs' avatar" class="avatar">
<Picture src="https://static.tibs.gay/tibs.jpg" formats={["avif", "webp"]} alt="tibs' avatar" width="160" height="160" />
<h1>tibs</h1>
</a>
<div class="links">
Expand Down Expand Up @@ -53,9 +54,7 @@ import Layout from '../layouts/Layout.astro';
margin-bottom: 0;
}

.avatar {
width: 10rem;
height: 10rem;
img {
border-radius: 5rem;
margin-bottom: .5rem;
}
Expand Down

0 comments on commit b176586

Please sign in to comment.