<template>
    <header :class="[darkMode ? 'header-darkmode' : 'header-lightmode']">
        <img id="header-logo" loading="lazy" src="../tüit-logo.svg.png" />
        <div class="profile">
            <div :class="['username', darkMode ? 'username-darkmode' : 'username-lightmode']">username</div>
            <div :class="['picture', darkMode ? 'picture-darkmode' : 'picture-lightmode']">
                <img id="picture" loading="lazy" src="" />
            </div>
        </div>
    </header>
</template>


<script setup>
import { ref } from 'vue';

const darkMode = ref(true)

</script>

<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;
}

.header-darkmode {
    background-color: #212121;
    border-bottom: 0.125em solid #000;
}

.header-lightmode {
    background-color: #EBEBEB;
    border-bottom: 0.125em solid #8e8e8e61;
}

#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;
    text-align: right;
    font: 200 0.875rem Overpass, sans-serif;
    letter-spacing: 5%;
}

.username-darkmode {
    color: #fff;
}

.username-lightmode {
    color: #000;
}

.picture {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

.picture-darkmode {
    background-color: #fff;
}

.picture-lightmode {
    background-color: #000;
}
</style>