Skip to content

Commit

Permalink
Merge pull request #2 from traP-jp/HomePage
Browse files Browse the repository at this point in the history
Home page
  • Loading branch information
shota973 authored Jun 15, 2024
2 parents b3f8fcb + fa50a16 commit c1ac4e7
Showing 1 changed file with 6 additions and 40 deletions.
46 changes: 6 additions & 40 deletions src/pages/HomePage.vue
Original file line number Diff line number Diff line change
@@ -1,49 +1,15 @@
<script setup lang="ts">
import { ref } from 'vue'
defineProps<{ msg: string }>()
const count = ref(0)
</script>

<template>
<h1>{{ msg }}</h1>

<div class="card">
<button
type="button"
@click="count++"
>
count is {{ count }}
</button>
<p>
Edit
<code>components/HelloWorld.vue</code> to test HMR
</p>
<div>
<button @click="() => $router.push({ path: '/rooms' })" class="changePageButton">ルームを探す</button>
<button @click="() => $router.push({ path: '/rooms/create' })" class="changePageButton">ルームを作成</button>
</div>

<p>
Check out
<a
href="https://vuejs.org/guide/quick-start.html#local"
target="_blank"
>create-vue</a>, the official Vue + Vite starter
</p>
<p>
Install
<a
href="https://github.com/vuejs/language-tools"
target="_blank"
>Volar</a>
in your IDE for a better DX
</p>
<p class="read-the-docs">
Click on the Vite and Vue logos to learn more
</p>
</template>

<style scoped>
.read-the-docs {
color: #888;
}
.changePageButton{
margin:10px;
}
</style>

0 comments on commit c1ac4e7

Please sign in to comment.