Переделала header с tailwind
This commit is contained in:
@@ -1,22 +1,22 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
div.header-wrapper
|
.header-wrapper.flex.flex-row.space-between.justify-between.box-border.py-2.px-6
|
||||||
div.header-left-side
|
.left-side.flex.items-center.box-border
|
||||||
img.logo-img(src="@/assets/images/logo.svg" alt="Logo")
|
img.logo-img(src="@/assets/images/logo.svg" alt="Logo")
|
||||||
div.header-right-side
|
.flex.flex-row
|
||||||
header-inputs
|
header-inputs.mr-10
|
||||||
button.header-buttons.btn-notification
|
button.header-buttons.flex.justify-center.items-center.mr-8.p-0
|
||||||
img.bell-icon(src="@/assets/icons/bell.svg" alt="Notifications")
|
.icon-bell
|
||||||
div.avatar-wrapper
|
.flex.flex-row.justify-centflexer.items-center
|
||||||
img.avatar-img(:src="avatarSrc")
|
img.avatar-img.mr-2(:src="avatarSrc")
|
||||||
button.header-buttons.btn-down-arrow
|
button.header-buttons
|
||||||
img.arrow-icon(src="@/assets/icons/down-arrow-2.svg" alt="Down Arrow")
|
.icon-down-arrow.flex.justify-center.items-center.p-0
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import img from '@/assets/images/avatar.svg'
|
import img from "@/assets/images/avatar.svg"
|
||||||
import HeaderInputs from './HeaderInputs.vue'
|
import HeaderInputs from "./HeaderInputs.vue"
|
||||||
export default {
|
export default {
|
||||||
name: 'TheHeader',
|
name: "TheHeader",
|
||||||
components: {HeaderInputs},
|
components: {HeaderInputs},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -26,70 +26,38 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang='sass' scoped>
|
<style lang="sass" scoped>
|
||||||
input
|
|
||||||
padding: 0
|
|
||||||
|
|
||||||
.header-buttons
|
.header-buttons
|
||||||
outline: none
|
outline: none
|
||||||
border: none
|
border: none
|
||||||
background-color: transparent
|
background-color: transparent
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
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
|
|
||||||
background-color: var(--bg-white-color)
|
background-color: var(--bg-white-color)
|
||||||
box-sizing: border-box
|
|
||||||
position: relative
|
position: relative
|
||||||
z-index: 2
|
z-index: 2
|
||||||
|
|
||||||
.header-right-side
|
.left-side
|
||||||
display: flex
|
|
||||||
flex-direction: row
|
|
||||||
|
|
||||||
.header-left-side
|
|
||||||
box-sizing: border-box
|
|
||||||
margin: 4px 0
|
|
||||||
height: 32px
|
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
|
|
||||||
.logo-img
|
.logo-img
|
||||||
height: 32px
|
height: 32px
|
||||||
width: 70px
|
width: 70px
|
||||||
|
|
||||||
.btn-notification
|
.icon-down-arrow
|
||||||
display: flex
|
|
||||||
justify-content: center
|
|
||||||
align-items: center
|
|
||||||
margin-right: 32px
|
|
||||||
|
|
||||||
.arrow-icon
|
|
||||||
width: 24px
|
width: 24px
|
||||||
height: 24px
|
height: 24px
|
||||||
|
|
||||||
.bell-icon
|
.icon-bell
|
||||||
width: 24px
|
width: 24px
|
||||||
height: 24px
|
height: 24px
|
||||||
|
font-size: 24px
|
||||||
.avatar-wrapper
|
color: var(--font-dark-blue-color)
|
||||||
display: flex
|
|
||||||
flex-direction: row
|
|
||||||
justify-content: center
|
|
||||||
align-items: center
|
|
||||||
|
|
||||||
.btn-down-arrow
|
|
||||||
display: flex
|
|
||||||
justify-content: center
|
|
||||||
align-items: center
|
|
||||||
|
|
||||||
.avatar-img
|
.avatar-img
|
||||||
width: 32px
|
width: 32px
|
||||||
height: 32px
|
height: 32px
|
||||||
margin-right: 8px
|
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user