Skip to content

Commit

Permalink
done!
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbloxhub committed Jul 22, 2023
1 parent a3ee3e8 commit f9e2020
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Greeting.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<script lang="ts">
export let greetings: Array<string>
let greeting = greetings[(Math.floor(Math.random() * greetings.length))]
</script>

<p>{greeting}</p>
2 changes: 2 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
import Layout from "../layouts/Layout.astro"
import Greeting from "../components/Greeting.svelte"
---

<Layout title="bitbloxhub's website">
<main class="m-auto p-6 max-w-6xl text-left">
<h1 class="text-5xl font-extrabold m-0">Welcome to bitbloxhub's website</h1>
<Greeting client:load greetings={["hello", "welcome", "good evening", "こんにちは", "こんばんは"]}></Greeting>
</main>
</Layout>

0 comments on commit f9e2020

Please sign in to comment.