Skip to content

Commit

Permalink
Merge pull request #9 from azuki774/apply-css-1
Browse files Browse the repository at this point in the history
use bootstrap tag を利用
  • Loading branch information
azuki774 authored Aug 15, 2024
2 parents 4180ab5 + 65666d3 commit 9195ace
Show file tree
Hide file tree
Showing 5 changed files with 290 additions and 260 deletions.
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

0 comments on commit 9195ace

Please sign in to comment.