style: Try biome
This commit is contained in:
parent
54b4349667
commit
7ed39cd0df
11 changed files with 180 additions and 152 deletions
|
@ -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;
|
||||
---
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue