From a7e10cc94417175c31495db4332e710248bc3220 Mon Sep 17 00:00:00 2001 From: Konstantin Vinokurov Date: Wed, 1 Jun 2022 23:31:50 +0700 Subject: [PATCH] +Vue +edited backend --- frontend/src/assets/css/catalog.css | 9 ++-- frontend/src/assets/css/offer.css | 26 ++++++++++++ frontend/src/components/ProfileAbout.vue | 14 ++++--- frontend/src/views/CatalogView.vue | 52 ++++++++---------------- 4 files changed, 57 insertions(+), 44 deletions(-) diff --git a/frontend/src/assets/css/catalog.css b/frontend/src/assets/css/catalog.css index f46575a..550f793 100644 --- a/frontend/src/assets/css/catalog.css +++ b/frontend/src/assets/css/catalog.css @@ -206,7 +206,7 @@ h1, h2, h3, h4, h5, h6 { .suggestions__images { margin: 2% 12%; display: flex; - justify-content: space-between; + /*justify-content: space-between;*/ flex-wrap: wrap; align-items: center; } @@ -215,7 +215,7 @@ h1, h2, h3, h4, h5, h6 { width: 100%; height: 100%; margin: 4% 0 1% auto; - /*background: linear-gradient(to top, rgba(1, 80, 140, 1), rgba(37, 45, 45, 0.6));*/ + background: linear-gradient(to top, rgba(1, 80, 140, 1), rgba(37, 45, 45, 0.6)); background-repeat: no-repeat; background-size: cover; transition: transform .2s linear; @@ -235,7 +235,6 @@ h1, h2, h3, h4, h5, h6 { } .gradient { - display: inline-block; position: relative; line-height: 0; @@ -258,6 +257,10 @@ h1, h2, h3, h4, h5, h6 { position: relative; width: 369px; height: 460px; + + margin-top: 1em; + margin-left: 1em; + margin-right: 1em; } .podlozhka:hover .sugg__img { diff --git a/frontend/src/assets/css/offer.css b/frontend/src/assets/css/offer.css index c3584ac..a983465 100644 --- a/frontend/src/assets/css/offer.css +++ b/frontend/src/assets/css/offer.css @@ -115,10 +115,27 @@ h1, h2, h3, h4, h5, h6 { flex-direction: row; } +.main__image { + width: 728px; + height: 416px; + + background-size: cover; + background-repeat: no-repeat; + transition: background 0.2s ease; +} + .other__images a{ + margin-top: 2%; margin-right: 2%; } +.other__images a > img{ + margin-right: 2%; + + width: 220px; + height: 140px; +} + .adv__host { display: flex; flex-direction: row; @@ -134,6 +151,15 @@ h1, h2, h3, h4, h5, h6 { margin: 3% 0; } +.userlogo { + width: 148px; + height: 148px; + border-radius: 50%; + + background: center no-repeat; + background-size: cover; +} + .host__stat { display: flex; flex-direction: row; diff --git a/frontend/src/components/ProfileAbout.vue b/frontend/src/components/ProfileAbout.vue index 6f55361..46ee91a 100644 --- a/frontend/src/components/ProfileAbout.vue +++ b/frontend/src/components/ProfileAbout.vue @@ -1,11 +1,11 @@