-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from traP-jp/HomePage
Home page
- Loading branch information
Showing
1 changed file
with
6 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |