Skip to content

Commit

Permalink
[fix] fixed issues with sign in buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
maeckes1 committed Mar 22, 2024
1 parent 10b1a16 commit 2bc29e6
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 7 deletions.
1 change: 1 addition & 0 deletions presenter/src/components/language/LanguageSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const languages = ref([
.language-select {
max-width: 80px;
min-width: 70px;
@include section-content-font;
Expand Down
55 changes: 48 additions & 7 deletions presenter/src/components/menu/HeaderMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<div class="d-flex align-center mr-0 mr-md-8 language-column">
<LanguageSelector />
</div>
<div v-if="showAuthentication" class="d-flex align-center mr-0 mr-md-8">
<div v-if="showAuthentication" class="d-none d-md-flex align-center mr-0 mr-md-8">
<div v-if="auth.isLoggedIn">
<!--<MainButton
variant="third-inverse"
Expand All @@ -36,25 +36,27 @@
/>-->
<MainButton
class="sign-out"
:class="[buttonsInBackground ? 'video-helper' : '']"
variant="third"
label="Sign Out"
size="small"
size="auto"
@click="signOut"
/>
</div>
<div v-else>
<div v-else class="d-flex">
<MainButton
variant="third-inverse"
class="mr-1 sign-in"
class="mr-4 sign-in"
label="Sign in"
size="small"
size="auto"
@click="signIn"
/>
<MainButton
class="sign-up"
:class="[buttonsInBackground ? 'video-helper' : '']"
variant="third"
label="Sign up"
size="small"
size="auto"
@click="signUp"
/>
</div>
Expand All @@ -72,7 +74,7 @@
location="right"
class="nav-drawer d-flex d-md-none"
>
<div class="d-flex flex-column py-8">
<div class="d-flex flex-column pt-8">
<!-- TODO same as above: refactor -->
<AnchorLink
class="ma-4"
Expand All @@ -93,6 +95,34 @@
@click="mobileMenu = !mobileMenu"
></AnchorLink>
</div>
<div v-if="showAuthentication" class="">
<v-divider class="ma-4"></v-divider>
<div v-if="!auth.isLoggedIn" class="d-flex flex-column justify-center align-center">
<MainButton
class="sign-out ma-4"
variant="third"
label="Sign Out"
size="auto"
@click="signOut"
/>
</div>
<div v-else class="d-flex flex-column justify-center align-center">
<MainButton
variant="third-inverse"
class="sign-in ma-4"
label="Sign in"
size="auto"
@click="signIn"
/>
<MainButton
class="sign-up ma-4 video-helper"
variant="third"
label="Sign up"
size="auto"
@click="signUp"
/>
</div>
</div>
</v-navigation-drawer>
</div>
</template>
Expand Down Expand Up @@ -165,20 +195,25 @@ async function signOut() {
const appBackground = ref('transparent')
const navBackground = ref('#d8d8d8')
const mobileMenu = ref(false)
const buttonsInBackground = ref(true)
let videoSlideObserver: IntersectionObserver
function changeAppBarBackground() {
if (appBackground.value !== '#f5f5f5') {
appBackground.value = '#f5f5f5'
navBackground.value = '#f5f5f5'
buttonsInBackground.value = false
}
}
function resetAppBarBackground() {
if (appBackground.value !== 'transparent') {
appBackground.value = 'transparent'
navBackground.value = 'transparent'
buttonsInBackground.value = true
}
}
Expand Down Expand Up @@ -226,6 +261,12 @@ onMounted(() => {
$background-color-primary 0.06%,
$background-color-primary-transition 100%
);
.video-helper {
color: $font-color-default !important;
background-color: transparent !important;
border: 1px solid $font-color-default !important;
}
}
</style>

Expand Down

0 comments on commit 2bc29e6

Please sign in to comment.