Updated packages
Some checks failed
Upload via SSH / build (push) Failing after 26s
Upload via SSH / deploy (push) Has been skipped

This commit is contained in:
Bethlenfalvi, Lorinc (ext)
2026-01-05 22:59:15 +01:00
parent 15aa4575bc
commit 01db7a8bb1
4 changed files with 1804 additions and 1868 deletions

View File

@@ -71,7 +71,7 @@ function break_lines(input: string, width: number): string {
.join("\n")
}
export default function Fortune(): React.ReactElement {
export default function FortuneComponent(): React.ReactElement {
const id = Math.floor(Math.random() * messages.length);
window.localStorage.setItem("martinRefShown", id === 6 ? "yes" : "no");
const text = break_lines(messages[id], 60);

View File

@@ -1,8 +1,8 @@
---
import Main from "../layouts/Main.astro";
import Fortune from "../components/Fortune";
import FortuneComponent from "../components/Fortune";
---
<Main title="Fortune" description="Wisdom from Tux">
<Fortune client:only="react" />
</Main>
<FortuneComponent client:only="react" />
</Main>