[CLEAR-58] Fix header

This commit is contained in:
Gabriela Pałka 2020-01-08 15:07:28 +01:00
parent a31e08f9c4
commit 68b3c5ebc4

View File

@ -1,13 +1,17 @@
<template> <template>
<Header> <Header>
<Menu mode="horizontal" theme="dark" active-name="1"> <Menu mode="horizontal" theme="dark" active-name="1">
<Row>
<Col span="8">
<NuxtLink to="/"> <NuxtLink to="/">
<div class="layout-logo"> <div class="layout-logo">
<img class="logo" src="../../static/bowl.png"/> <img class="logo" src="../../static/bowl.png"/>
<div class="logo-text">ClearBowl</div> <div class="logo-text">ClearBowl</div>
</div> </div>
</NuxtLink> </NuxtLink>
<div v-if="!$auth.loggedIn" class="layout-nav"> </Col>
<Col span="8" offset="8">
<div v-if="!$auth.loggedIn" style="position: relative; float: right">
<NuxtLink to="/login"> <NuxtLink to="/login">
<MenuItem name="login"> <MenuItem name="login">
<Icon type="ios-log-in" size="20"/> <Icon type="ios-log-in" size="20"/>
@ -21,17 +25,23 @@
</MenuItem> </MenuItem>
</NuxtLink> </NuxtLink>
</div> </div>
<div v-else class="layout-nav"> <div v-else>
<div style="display: flex"> <Row style="margin-bottom: 10px;">
<Col span="16" style="text-align: right">
<div>Witaj, {{ $auth.user.email }}</div> <div>Witaj, {{ $auth.user.email }}</div>
</Col>
<Col span="8">
<MenuItem name="logout"> <MenuItem name="logout">
<div @click="logout"> <div @click="logout">
<Icon type="ios-log-out" size="20"/> <Icon type="ios-log-out" size="20"/>
<span>Wyloguj</span> <span>Wyloguj</span>
</div> </div>
</MenuItem> </MenuItem>
</Col>
</Row>
</div> </div>
</div> </Col>
</Row>
</Menu> </Menu>
</Header> </Header>
</template> </template>
@ -80,11 +90,11 @@
margin-left: 5px; margin-left: 5px;
} }
.layout-nav { /*.layout-nav {*/
width: 320px; /* width: 320px;*/
margin: 0 auto; /* margin: 0 auto;*/
margin-right: 20px; /* margin-right: 20px;*/
} /*}*/
.ivu-menu-dark.ivu-menu-horizontal .ivu-menu-item, .ivu-menu-dark.ivu-menu-horizontal .ivu-menu-submenu { .ivu-menu-dark.ivu-menu-horizontal .ivu-menu-item, .ivu-menu-dark.ivu-menu-horizontal .ivu-menu-submenu {
color: black; color: black;