Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use bootstrap tag を利用 #9

Merged
merged 4 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/History.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ recordList.value = data
</script>

<template>
<section>
<container>
<table class="table">
<thead>
<tr>
Expand All @@ -46,5 +46,5 @@ recordList.value = data
</tr>
</tbody>
</table>
</section>
</container>
</template>
36 changes: 23 additions & 13 deletions components/PostRecord.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,29 @@ const postButton = async (): Promise<void> => {
</script>

<template>
<section>
<container>
<Row justify-content="md-center">
<Col col="md-auto">
<BFormSelect v-model="selector" margin="b-4">
<b-option v-for="category in categoryList" :key="category.category_id">
{{ category.category_name }}
</b-option>
</BFormSelect>
</Col>

<select v-model="selector">
<option v-for="category in categoryList" :key="category.category_id">
{{ category.category_name }}
</option>
</select>
<Col col="md-auto">
<BFormFloating margin="b-2">
<BFormInput v-model="priceBox" type="number" placeholder="[email protected]" />
<BFormLabel for="floatingInput">
Price
</BFormLabel>
</BFormFloating>
</Col>
</Row>

<input v-model="priceBox" type="number" />

<div class="col">
<button @click="postButton" name="postButton" class="sendbutton" type="submit">Post</button>
</div>

</section>
<Col display="grid" gap="2" margin="x-auto" col="6">
<b-button button="primary" size="lg" @click="postButton" name="postButton" class="sendbutton"
type="submit">Post</b-button>
</Col>
</container>
</template>
Loading
Loading