Исправлен нейминг классов header
This commit is contained in:
@@ -1,149 +1,154 @@
|
|||||||
<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 {
|
||||||
selectedFilter: 'Календарь',
|
selectedFilter: 'Календарь',
|
||||||
filters: ['Календарь', 'Вариант 2', 'Вариант 3'],
|
filters: ['Календарь', 'Вариант 2', 'Вариант 3'],
|
||||||
avatarSrc: img
|
avatarSrc: img
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang='sass'>
|
<style lang='sass'>
|
||||||
|
input
|
||||||
|
padding: 0
|
||||||
|
|
||||||
input
|
.header-buttons
|
||||||
padding: 0
|
outline: none
|
||||||
|
border: none
|
||||||
|
background-color: transparent
|
||||||
|
cursor: pointer
|
||||||
|
padding: 0
|
||||||
|
color: var(--font-dark-blue-color)
|
||||||
|
|
||||||
button
|
.header-wrapper
|
||||||
outline: none
|
display: flex
|
||||||
border: none
|
flex-direction: row
|
||||||
background-color: transparent
|
justify-content: space-between
|
||||||
cursor: pointer
|
width: 100%
|
||||||
padding: 0
|
padding: 8px 24px
|
||||||
color: var(--font-dark-blue-color)
|
background-color: var(--bg-white-color)
|
||||||
|
box-sizing: border-box
|
||||||
|
|
||||||
.header-wrapper
|
.header-right-side
|
||||||
width: 100%
|
display: flex
|
||||||
padding: 8px 24px
|
flex-direction: row
|
||||||
background-color: var(--bg-white-color)
|
|
||||||
box-sizing: border-box
|
|
||||||
|
|
||||||
.flex
|
.header-left-side
|
||||||
display: flex
|
box-sizing: border-box
|
||||||
|
margin: 4px 0
|
||||||
|
height: 32px
|
||||||
|
cursor: pointer
|
||||||
|
|
||||||
.flex-row
|
.logo-img
|
||||||
flex-direction: row
|
height: 32px
|
||||||
|
width: 70px
|
||||||
|
|
||||||
.center
|
.header-inputs-wrapper
|
||||||
justify-content: center
|
display: inline-block
|
||||||
align-items: center
|
background-color: rgba(65, 105, 225, 0.1)
|
||||||
|
padding: 8px 18px 8px 16px
|
||||||
|
border-radius: 4px
|
||||||
|
margin-right: 46px
|
||||||
|
|
||||||
.space-between
|
.search-icon
|
||||||
justify-content: space-between
|
position: absolute
|
||||||
|
height: 24px
|
||||||
.logo-wrapper
|
width: 24px
|
||||||
box-sizing: border-box
|
|
||||||
margin: 4px 0
|
|
||||||
height: 32px
|
|
||||||
cursor: pointer
|
|
||||||
|
|
||||||
.logo-img
|
|
||||||
height: 32px
|
|
||||||
width: 70px
|
|
||||||
|
|
||||||
.inputs-wrapper
|
|
||||||
display: inline-block
|
|
||||||
background-color: rgba(65, 105, 225, 0.1)
|
|
||||||
padding: 8px 18px 8px 16px
|
|
||||||
border-radius: 4px
|
|
||||||
margin-right: 46px
|
|
||||||
|
|
||||||
.search-icon
|
|
||||||
position: absolute
|
|
||||||
height: 24px
|
|
||||||
width: 24px
|
|
||||||
color: var(--btn-blue-color)
|
|
||||||
opacity: 0.7
|
|
||||||
|
|
||||||
.btn-notification
|
|
||||||
margin-right: 32px
|
|
||||||
|
|
||||||
.arrow-icon
|
|
||||||
width: 24px
|
|
||||||
height: 24px
|
|
||||||
|
|
||||||
.bell-icon
|
|
||||||
width: 24px
|
|
||||||
height: 24px
|
|
||||||
|
|
||||||
.inputs
|
|
||||||
cursor: pointer
|
|
||||||
border: none
|
|
||||||
outline: none
|
|
||||||
background-color: transparent
|
|
||||||
color: var(--btn-blue-color)
|
|
||||||
height: 100%
|
|
||||||
box-sizing: border-box
|
|
||||||
font-family: Raleway
|
|
||||||
font-style: normal
|
|
||||||
font-weight: 500
|
|
||||||
font-size: 16px
|
|
||||||
line-height: 19px
|
|
||||||
font-feature-settings: 'pnum' on, 'lnum' on
|
|
||||||
display: inline-block
|
|
||||||
vertical-align: middle
|
|
||||||
&::placeholder
|
|
||||||
color: var(--btn-blue-color)
|
color: var(--btn-blue-color)
|
||||||
|
opacity: 0.7
|
||||||
|
|
||||||
|
.btn-notification
|
||||||
|
display: flex
|
||||||
|
justify-content: center
|
||||||
|
align-items: center
|
||||||
|
margin-right: 32px
|
||||||
|
|
||||||
|
.arrow-icon
|
||||||
|
width: 24px
|
||||||
|
height: 24px
|
||||||
|
|
||||||
|
.bell-icon
|
||||||
|
width: 24px
|
||||||
|
height: 24px
|
||||||
|
|
||||||
|
.header-inputs
|
||||||
|
cursor: pointer
|
||||||
|
border: none
|
||||||
|
outline: none
|
||||||
|
background-color: transparent
|
||||||
|
color: var(--btn-blue-color)
|
||||||
|
height: 100%
|
||||||
|
box-sizing: border-box
|
||||||
|
font-family: Raleway
|
||||||
|
font-style: normal
|
||||||
|
font-weight: 500
|
||||||
|
font-size: 16px
|
||||||
|
line-height: 19px
|
||||||
|
font-feature-settings: 'pnum' on, 'lnum' on
|
||||||
|
display: inline-block
|
||||||
|
vertical-align: middle
|
||||||
|
&::placeholder
|
||||||
|
color: var(--btn-blue-color)
|
||||||
|
opacity: 0.5
|
||||||
|
|
||||||
|
.select
|
||||||
|
-webkit-appearance: none
|
||||||
|
-moz-appearance: none
|
||||||
|
-ms-appearance: none
|
||||||
|
appearance: none
|
||||||
|
background: url(../../assets/icons/down-arrow-1.svg) no-repeat right top 4px
|
||||||
|
overflow: hidden
|
||||||
|
margin-right: 16px
|
||||||
|
padding: 2px 20px 2px 30px
|
||||||
|
|
||||||
|
.search-input
|
||||||
|
margin-left: 14px
|
||||||
|
padding: 2px
|
||||||
|
|
||||||
|
.header-inputs-separator
|
||||||
|
display: inline-block
|
||||||
|
vertical-align: middle
|
||||||
|
border-left: 1px solid var(--btn-blue-color)
|
||||||
opacity: 0.5
|
opacity: 0.5
|
||||||
|
border-radius: 4px
|
||||||
|
height: 100%
|
||||||
|
|
||||||
.select
|
.avatar-wrapper
|
||||||
-webkit-appearance: none
|
display: flex
|
||||||
-moz-appearance: none
|
flex-direction: row
|
||||||
-ms-appearance: none
|
justify-content: center
|
||||||
appearance: none
|
align-items: center
|
||||||
background: url(../../assets/icons/down-arrow-1.svg) no-repeat right top 4px
|
|
||||||
overflow: hidden
|
|
||||||
margin-right: 16px
|
|
||||||
padding: 2px 20px 2px 30px
|
|
||||||
|
|
||||||
.search-input
|
.btn-down-arrow
|
||||||
margin-left: 14px
|
display: flex
|
||||||
padding: 2px
|
justify-content: center
|
||||||
|
align-items: center
|
||||||
.separator
|
|
||||||
display: inline-block
|
|
||||||
vertical-align: middle
|
|
||||||
height: 254px
|
|
||||||
border-left: 1px solid var(--btn-blue-color)
|
|
||||||
opacity: 0.5
|
|
||||||
border-radius: 4px
|
|
||||||
height: 100%
|
|
||||||
|
|
||||||
.avatar-img
|
|
||||||
width: 32px
|
|
||||||
height: 32px
|
|
||||||
margin-right: 8px
|
|
||||||
|
|
||||||
|
.avatar-img
|
||||||
|
width: 32px
|
||||||
|
height: 32px
|
||||||
|
margin-right: 8px
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user