Files
TueIT_App/layouts/PageHeader.vue
2023-11-13 19:30:52 +01:00

78 lines
1.5 KiB
Vue

<template>
<header>
<img id="header-logo"
loading="lazy" src="../tüit-logo.svg.png" />
<div class="profile">
<div class="username">username</div>
<div class="picture">
<img id="picture"
loading="lazy" src="" />
</div>
</div>
</header>
</template>
<script>
export default {
name: "PageHeader",
}
</script>
<style scoped>
* {
box-sizing: border-box;
}
header {
display: flex;
flex-direction: row;
position: sticky;
top: 0;
width: 100%;
height: 4.375rem;
align-self: stretch;
justify-content: space-between;
align-items: center;
padding: 0.625rem 1.25rem;
background-color: #2c2c2c;
}
#header-logo {
object-fit: contain;
object-position: center;
width: 5rem;
height: 2.5rem;
justify-content: center;
align-items: center;
overflow: hidden;
}
.profile {
display: flex;
flex-direction: row;
align-items: flex-end;
gap: 0.625rem;
padding: 0 0.625rem;
}
.username {
align-self: center;
margin: auto 0;
color: #fff;
text-align: right;
font: 200 0.875rem Overpass, sans-serif;
letter-spacing: 5%;
}
.picture {
display: flex;
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
background-color: #fff;
}
</style>