style: Try biome

This commit is contained in:
BuyMyMojo 2024-12-19 11:53:42 +11:00
parent 54b4349667
commit 7ed39cd0df
Signed by: aria
GPG key ID: 19AB7AA462B8AB3B
11 changed files with 180 additions and 152 deletions

View file

@ -1,7 +1,7 @@
---
const description = "Just my little website do be gay and do crime on~";
const embedImage = "https://aria.coffee/static/img/sites/avatar.png";
const embedColour = "#380A84"
const embedColour = "#380A84";
const { pageTitle } = Astro.props;
---

View file

@ -1,17 +1,20 @@
import { useState } from 'preact/hooks';
import { useState } from "preact/hooks";
export default function Greeting({messages}) {
export default function Greeting({ messages }) {
const randomMessage = () =>
messages[Math.floor(Math.random() * messages.length)];
const randomMessage = () => messages[(Math.floor(Math.random() * messages.length))];
const [greeting, setGreeting] = useState(messages[0]);
const [greeting, setGreeting] = useState(messages[0]);
return (
<div>
<h3>{greeting}! Thank you for visiting!</h3>
<button class="greetButton px-2 rounded-xl" onClick={() => setGreeting(randomMessage())}>
New Greeting
</button>
</div>
);
}
return (
<div>
<h3>{greeting}! Thank you for visiting!</h3>
<button
class="greetButton px-2 rounded-xl"
onClick={() => setGreeting(randomMessage())}
>
New Greeting
</button>
</div>
);
}