Skip to content

Commit

Permalink
fix: hotspot modal 변경 및 입력 양식 수정 #8
Browse files Browse the repository at this point in the history
  • Loading branch information
swy0123 committed May 18, 2023
1 parent c5aec96 commit 20a55dd
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 6 deletions.
1 change: 0 additions & 1 deletion frontend/src/components/home/HotSpotCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ export default {
position: absolute;
top: -35%;
right: 10%;
background-color: aqua;
width: 30px;
height: 30px;
}
Expand Down
63 changes: 58 additions & 5 deletions frontend/src/components/hotspot/HotspotAdd.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,34 @@
<template>
<div>
<div class="contents-block">
<h2>Hot Spots</h2>
<h5>나만의 핫스팟을 인증샷과 함께 자랑해주세요</h5>
<hr />
<div>
경로 입력
<!-- <plan-card></plan-card> -->
<b-form-select
v-model="rootselected"
:options="rootoptions"
></b-form-select>

<div class="mt-3">
선택됨: <strong>{{ rootselected }}</strong>
</div>
</div>
<div>
관광지 선택
<b-form-select
v-model="attrselected"
:options="attroptions"
></b-form-select>

<div class="mt-3">
선택됨: <strong>{{ attrselected }}</strong>
</div>
</div>

<hr />

<div class="center">
<div class="img-upload-form">
<div v-if="images" class="w-full h-full flex items-center">
Expand Down Expand Up @@ -38,21 +64,43 @@
</div>
</div>
</div>
<div>
사진 추가
</div>
<div>사진 추가</div>
<b-button class="btn-pos" squared variant="outline-danger" @click="$router.push({ name: 'hotspotList' })">뒤로가기</b-button>
<b-button class="btn-pos" squared variant="outline-info" @click="$router.push({name: 'hotspotList'})">글쓰기</b-button>
</div>
</template>

<script>
// https://arikong.tistory.com/22
//해당 사용자의 모든 계획들 불러와서 rootption에 넣고
//rootselect가 선택되면 해당 계획의 모든 관광지들을 attroption에 넣어야 함
// import PlanCard from '@/components/home/PlanCard.vue'
export default {
name: "HotspotAdd",
components: {},
components: {
// PlanCard
},
data() {
return {
images: "",
rootselected: null,
rootoptions: [
{ value: null, text: "Please select an option" },
{ value: "a", text: "This is First option" },
{ value: "b", text: "Selected Option" },
{ value: { C: "3PO" }, text: "This is an option with object value" },
{ value: "d", text: "This one is disabled", disabled: true },
],
attrselected: null,
attroptions: [
{ value: null, text: "Please select an option" },
{ value: "a", text: "This is First option" },
{ value: "b", text: "Selected Option" },
{ value: { C: "3PO" }, text: "This is an option with object value" },
{ value: "d", text: "This one is disabled", disabled: true },
],
};
},
created() {},
Expand Down Expand Up @@ -83,6 +131,11 @@ export default {
</script>

<style scoped>
.contents-block {
max-width: 1500px;
justify-content: center;
margin: 0 auto;
}
.center {
display: flex;
justify-content: center;
Expand Down

0 comments on commit 20a55dd

Please sign in to comment.