mirror of
https://github.com/robonen/metr.git
synced 2026-03-20 02:44:42 +00:00
+Vue +edited backend
This commit is contained in:
@@ -37,7 +37,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
/* Intro */
|
||||
.intro {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content:center;
|
||||
|
||||
@@ -242,7 +242,15 @@ h1, h2, h3, h4, h5, h6 {
|
||||
margin: 1% 0;
|
||||
}
|
||||
|
||||
.rewiew__comment{
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.review__stars {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.user__stat{
|
||||
padding-right: 10px;
|
||||
}
|
||||
@@ -20,7 +20,7 @@
|
||||
<div class="about__describtions">
|
||||
<div class="descriptions__name">
|
||||
<h4>Название для объявления:</h4>
|
||||
<input type="text" size="40" v-model.trim="offer.name">
|
||||
<input type="text" size="40" placeholder="Пример: Просторная квартира на Елисеевке" v-model.trim="offer.name">
|
||||
</div>
|
||||
<div class="descriptions__name">
|
||||
<h4>Тип:</h4>
|
||||
@@ -32,11 +32,11 @@
|
||||
</div>
|
||||
<div class="descriptions__address">
|
||||
<h4>Адрес:</h4>
|
||||
<input type="text" size="40" v-model.trim="offer.location">
|
||||
<input type="text" size="40" placeholder="Пример: Комарино 12, д. 3" v-model.trim="offer.location">
|
||||
</div>
|
||||
<div class="descriptions__price">
|
||||
<h4>Цена:</h4>
|
||||
<input type="text" size="40" v-model.number="offer.price">
|
||||
<input type="text" size="40" placeholder="Пример: '1200000'" v-model.number="offer.price">
|
||||
</div>
|
||||
<div class="descriptions__flats">
|
||||
<h4>Кол-во комнат:</h4>
|
||||
@@ -49,11 +49,12 @@
|
||||
</div>
|
||||
<div class="descriptions__square">
|
||||
<h4>Площадь:</h4>
|
||||
<input type="text" size="40" v-model.number="offer.space">
|
||||
<input type="text" size="40" placeholder="Пример: '45'" v-model.number="offer.space">
|
||||
</div>
|
||||
<div class="descriptions__text">
|
||||
<h4>Описание:</h4>
|
||||
<input type="text" size="40" v-model.trim="offer.description">
|
||||
<!-- <input type="text" size="40" v-model.trim="offer.description">-->
|
||||
<textarea placeholder="Описание" class="descriptions__textarea" v-model.trim="offer.description"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<button @click="action">Отправить</button>
|
||||
@@ -263,12 +264,28 @@ export default {
|
||||
margin-top: 1%;
|
||||
}
|
||||
|
||||
.descriptions__textarea{
|
||||
background-color: rgb(201, 233, 252);
|
||||
border-radius: 5px;
|
||||
border-color: white;
|
||||
box-shadow: none;
|
||||
border: 1px solid rgb(83, 110, 136);
|
||||
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
|
||||
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
.about__describtions input {
|
||||
background-color: rgb(201, 233, 252);
|
||||
border-radius: 5px;
|
||||
border-color: white;
|
||||
box-shadow: none;
|
||||
border: 1px solid rgb(83, 110, 136);
|
||||
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
.about__describtions h4 {
|
||||
@@ -278,5 +295,6 @@ export default {
|
||||
.descriptions__text input {
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
|
||||
}
|
||||
</style>
|
||||
@@ -30,10 +30,8 @@
|
||||
</div>
|
||||
<div class="header__search">
|
||||
<div class="search">
|
||||
<div class="search__block">
|
||||
|
||||
</div>
|
||||
<div class="search__img">
|
||||
<input text="" class="search__block" placeholder="Поиск" v-model.trim="query" @keydown.enter="search">
|
||||
<div class="search__img" @click.prevent="search">
|
||||
<a class="nav__link" href="#">
|
||||
<img src="@/assets/images/search.jpg" alt="">
|
||||
</a>
|
||||
@@ -63,6 +61,7 @@ export default {
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<style scoped>
|
||||
/* Container */
|
||||
.container {
|
||||
@@ -137,7 +136,8 @@ export default {
|
||||
width: 300px;
|
||||
height: 40px;
|
||||
margin: 0;
|
||||
padding-top: 20px;
|
||||
|
||||
font-size: 1em;
|
||||
|
||||
background: white;
|
||||
border: 1px solid black;
|
||||
|
||||
@@ -75,9 +75,9 @@
|
||||
</div>
|
||||
<div class="reviews__blocks">
|
||||
<div v-if="offer?.user?.feedback" class="review" v-for="(review, i) in offer.user.feedback" :key="i">
|
||||
<div class="review__avatar">
|
||||
<img src="@/assets/images/forcomment.png" alt="">
|
||||
</div>
|
||||
<!-- <div class="review__avatar">-->
|
||||
<!-- <img src="@/assets/images/forcomment.png" alt="">-->
|
||||
<!-- </div>-->
|
||||
<div class="rewiew__comment">
|
||||
<h5>{{ review.comment }}</h5>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user