Merge pull request #6 from dderbentsov/UC-1
Исправлен нейминг классов header
This commit is contained in:
@@ -1,25 +1,25 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
div.header-wrapper.flex.flex-row.center.space-between
|
div.header-wrapper
|
||||||
div.logo-wrapper
|
div.header-left-side
|
||||||
img.logo-img(src="../../assets/images/logo.svg" alt="Logo")
|
img.logo-img(src="../../assets/images/logo.svg" alt="Logo")
|
||||||
div.flex.flex-row
|
div.header-right-side
|
||||||
div.inputs-wrapper
|
div.header-inputs-wrapper
|
||||||
img.search-icon(src="../../assets/icons/search.svg" alt="Search")
|
img.search-icon(src="../../assets/icons/search.svg" alt="Search")
|
||||||
select.inputs.select(v-model="selectedFilter")
|
select.header-inputs.select(v-model="selectedFilter")
|
||||||
option(v-for="filter in filters" :key="filter" :value="filter") {{ filter }}
|
option(v-for="filter in filters" :key="filter" :value="filter") {{ filter }}
|
||||||
span.separator
|
span.header-inputs-separator
|
||||||
input.inputs.search-input(placeholder="Искать ...")
|
input.header-inputs.search-input(placeholder="Искать ...")
|
||||||
button.flex.center.btn-notification
|
button.header-buttons.btn-notification
|
||||||
img.bell-icon(src="../../assets/icons/bell.svg" alt="Notifications")
|
img.bell-icon(src="../../assets/icons/bell.svg" alt="Notifications")
|
||||||
div.flex.flex-row.center
|
div.avatar-wrapper
|
||||||
img.avatar-img(:src="avatarSrc")
|
img.avatar-img(:src="avatarSrc")
|
||||||
button.flex.flex-center
|
button.header-buttons.btn-down-arrow
|
||||||
img.arrow-icon(src="../../assets/icons/down-arrow-2.svg" alt="Down Arrow")
|
img.arrow-icon(src="../../assets/icons/down-arrow-2.svg" alt="Down Arrow")
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import img from '../../assets/images/avatar.svg'
|
import img from '../../assets/images/avatar.svg'
|
||||||
export default {
|
export default {
|
||||||
name: 'HeaderComponent',
|
name: 'HeaderComponent',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -28,15 +28,14 @@ export default {
|
|||||||
avatarSrc: img
|
avatarSrc: img
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang='sass'>
|
<style lang='sass'>
|
||||||
|
input
|
||||||
input
|
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
button
|
.header-buttons
|
||||||
outline: none
|
outline: none
|
||||||
border: none
|
border: none
|
||||||
background-color: transparent
|
background-color: transparent
|
||||||
@@ -44,61 +43,58 @@ button
|
|||||||
padding: 0
|
padding: 0
|
||||||
color: var(--font-dark-blue-color)
|
color: var(--font-dark-blue-color)
|
||||||
|
|
||||||
.header-wrapper
|
.header-wrapper
|
||||||
|
display: flex
|
||||||
|
flex-direction: row
|
||||||
|
justify-content: space-between
|
||||||
width: 100%
|
width: 100%
|
||||||
padding: 8px 24px
|
padding: 8px 24px
|
||||||
background-color: var(--bg-white-color)
|
background-color: var(--bg-white-color)
|
||||||
box-sizing: border-box
|
box-sizing: border-box
|
||||||
|
|
||||||
.flex
|
.header-right-side
|
||||||
display: flex
|
display: flex
|
||||||
|
|
||||||
.flex-row
|
|
||||||
flex-direction: row
|
flex-direction: row
|
||||||
|
|
||||||
.center
|
.header-left-side
|
||||||
justify-content: center
|
|
||||||
align-items: center
|
|
||||||
|
|
||||||
.space-between
|
|
||||||
justify-content: space-between
|
|
||||||
|
|
||||||
.logo-wrapper
|
|
||||||
box-sizing: border-box
|
box-sizing: border-box
|
||||||
margin: 4px 0
|
margin: 4px 0
|
||||||
height: 32px
|
height: 32px
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
|
|
||||||
.logo-img
|
.logo-img
|
||||||
height: 32px
|
height: 32px
|
||||||
width: 70px
|
width: 70px
|
||||||
|
|
||||||
.inputs-wrapper
|
.header-inputs-wrapper
|
||||||
display: inline-block
|
display: inline-block
|
||||||
background-color: rgba(65, 105, 225, 0.1)
|
background-color: rgba(65, 105, 225, 0.1)
|
||||||
padding: 8px 18px 8px 16px
|
padding: 8px 18px 8px 16px
|
||||||
border-radius: 4px
|
border-radius: 4px
|
||||||
margin-right: 46px
|
margin-right: 46px
|
||||||
|
|
||||||
.search-icon
|
.search-icon
|
||||||
position: absolute
|
position: absolute
|
||||||
height: 24px
|
height: 24px
|
||||||
width: 24px
|
width: 24px
|
||||||
color: var(--btn-blue-color)
|
color: var(--btn-blue-color)
|
||||||
opacity: 0.7
|
opacity: 0.7
|
||||||
|
|
||||||
.btn-notification
|
.btn-notification
|
||||||
|
display: flex
|
||||||
|
justify-content: center
|
||||||
|
align-items: center
|
||||||
margin-right: 32px
|
margin-right: 32px
|
||||||
|
|
||||||
.arrow-icon
|
.arrow-icon
|
||||||
width: 24px
|
width: 24px
|
||||||
height: 24px
|
height: 24px
|
||||||
|
|
||||||
.bell-icon
|
.bell-icon
|
||||||
width: 24px
|
width: 24px
|
||||||
height: 24px
|
height: 24px
|
||||||
|
|
||||||
.inputs
|
.header-inputs
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
border: none
|
border: none
|
||||||
outline: none
|
outline: none
|
||||||
@@ -118,7 +114,7 @@ button
|
|||||||
color: var(--btn-blue-color)
|
color: var(--btn-blue-color)
|
||||||
opacity: 0.5
|
opacity: 0.5
|
||||||
|
|
||||||
.select
|
.select
|
||||||
-webkit-appearance: none
|
-webkit-appearance: none
|
||||||
-moz-appearance: none
|
-moz-appearance: none
|
||||||
-ms-appearance: none
|
-ms-appearance: none
|
||||||
@@ -128,22 +124,31 @@ button
|
|||||||
margin-right: 16px
|
margin-right: 16px
|
||||||
padding: 2px 20px 2px 30px
|
padding: 2px 20px 2px 30px
|
||||||
|
|
||||||
.search-input
|
.search-input
|
||||||
margin-left: 14px
|
margin-left: 14px
|
||||||
padding: 2px
|
padding: 2px
|
||||||
|
|
||||||
.separator
|
.header-inputs-separator
|
||||||
display: inline-block
|
display: inline-block
|
||||||
vertical-align: middle
|
vertical-align: middle
|
||||||
height: 254px
|
|
||||||
border-left: 1px solid var(--btn-blue-color)
|
border-left: 1px solid var(--btn-blue-color)
|
||||||
opacity: 0.5
|
opacity: 0.5
|
||||||
border-radius: 4px
|
border-radius: 4px
|
||||||
height: 100%
|
height: 100%
|
||||||
|
|
||||||
.avatar-img
|
.avatar-wrapper
|
||||||
|
display: flex
|
||||||
|
flex-direction: row
|
||||||
|
justify-content: center
|
||||||
|
align-items: center
|
||||||
|
|
||||||
|
.btn-down-arrow
|
||||||
|
display: flex
|
||||||
|
justify-content: center
|
||||||
|
align-items: center
|
||||||
|
|
||||||
|
.avatar-img
|
||||||
width: 32px
|
width: 32px
|
||||||
height: 32px
|
height: 32px
|
||||||
margin-right: 8px
|
margin-right: 8px
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user