From e8bb639ebdb333289c61fa2c0fe40439d6bb49e1 Mon Sep 17 00:00:00 2001 From: Jegor Date: Sat, 15 May 2021 21:42:52 +0200 Subject: [PATCH] wip: component rewritten, simple grid applied. --- .../components/top-bar/top-bar.component.css | 53 +++++++++++++++++++ .../components/top-bar/top-bar.component.html | 30 +++++++++-- .../src/assets/images/search_black_24dp.svg | 1 + Frontend/src/styles.css | 12 +++-- 4 files changed, 88 insertions(+), 8 deletions(-) create mode 100644 Frontend/src/assets/images/search_black_24dp.svg diff --git a/Frontend/src/app/components/top-bar/top-bar.component.css b/Frontend/src/app/components/top-bar/top-bar.component.css index 8b13789..74e9f16 100644 --- a/Frontend/src/app/components/top-bar/top-bar.component.css +++ b/Frontend/src/app/components/top-bar/top-bar.component.css @@ -1 +1,54 @@ +.top-bar-wrapper { + display: grid; + grid-template-columns: 200px 360px 820px 20px 250px; + grid-template-rows: 40px; + grid-column-gap: 0px; + grid-row-gap: 0px; + align-items: center; +} +.top-logo { + grid-area: 1/1; +} + +#better { + font-size: 28px; + font-weight: bold; + color: #3480E3; +} + +#zon { + font-size: 28px; + font-weight: bold; + color: #E53167; +} + +.search-button { + /*background-color: #E53167;*/ +} + +.sign-up { + /*background-color: #E53167;*/ + margin-left: 50px; + margin-right: 25px; +} + +.login { + margin-right: 25px; +} + +#signin { + border-radius: 25px; + background-color: #E53167; +} + +._links > a { + /*background-color: #E53167;*/ + margin-left: 10px; + margin-right: 10px; +} + +._signing_links > a { + /*background-color: #E53167;*/ + margin-left: 50px; +} diff --git a/Frontend/src/app/components/top-bar/top-bar.component.html b/Frontend/src/app/components/top-bar/top-bar.component.html index c67d5cf..921a3cf 100644 --- a/Frontend/src/app/components/top-bar/top-bar.component.html +++ b/Frontend/src/app/components/top-bar/top-bar.component.html @@ -1,4 +1,26 @@ - - Betterzon Logo - - shopping_cartCheckout +
+
+ BETTERZON +
+ + +
+ + Sarch button + +
+ +
diff --git a/Frontend/src/assets/images/search_black_24dp.svg b/Frontend/src/assets/images/search_black_24dp.svg new file mode 100644 index 0000000..7b3962b --- /dev/null +++ b/Frontend/src/assets/images/search_black_24dp.svg @@ -0,0 +1 @@ + diff --git a/Frontend/src/styles.css b/Frontend/src/styles.css index d14b926..ca68ca6 100644 --- a/Frontend/src/styles.css +++ b/Frontend/src/styles.css @@ -107,15 +107,19 @@ label { /* Top Bar */ app-top-bar { - width: 100%; - height: 68px; - background-color: #f2f2f2; + width: 1640px; + height: 70px; + background-color: #ffffff; padding: 16px; + position: fixed; + left: 50%; + top:0; + margin-left: -820px; display: flex; flex-direction: row; justify-content: space-between; align-items: center; - box-shadow: 0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12) + /*box-shadow: 0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)*/ } app-top-bar h1 {