Skip to content

Commit

Permalink
Revert header changes
Browse files Browse the repository at this point in the history
  • Loading branch information
brachkow committed Nov 14, 2023
1 parent 6713195 commit 1f7b5b0
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions src/layouts/VDefaultLayout/VDefaultLayout.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script lang="ts" setup>
// #TODO Remove test message when new-notion is merged
import VProfileMenu from '@/components/VProfileMenu/VProfileMenu.vue';
import VPreloader from '@/components/VPreloader/VPreloader.vue';
import VToastFeed from '@/components/VToastFeed/VToastFeed.vue';
Expand All @@ -11,29 +9,22 @@
const route = useRoute();
const loading = useLoading();
const hasHeader = computed(() => {
const hasProfile = computed(() => {
return !route.meta.isPublic;
});
const isNotionTest = computed(() =>
window.location.host.includes('new-notion'),
);
</script>

<template>
<main v-if="!loading.isLoading" class="container pb-128">
<p
v-if="isNotionTest"
class="p-8 px-16 bg-lightgray text-black rounded mt-16">
Это тестовая ветка с новым рендером ноушена. О багах писать
<a
class="link"
href="https://3.basecamp.com/5104612/buckets/29069198/todolists/6338720082"
>сюда</a
>.
</p>
<header v-if="hasHeader" class="flex justify-end pt-16 pb-24 tablet:pb-64">
<VProfileMenu class="w-full tablet:w-auto" />
<header
class="flex flex-wrap justify-between items-center pt-16 pb-24 tablet:pb-64 gap-8">
<RouterLink to="/">
<div class="flex gap-8 p-8 items-end">
<img src="/logo.svg" class="h-32" />
<img src="/logo-text.svg" class="h-[28px]" />
</div>
</RouterLink>
<VProfileMenu v-if="hasProfile" class="tablet:w-auto w-full" />
</header>
<slot />
</main>
Expand Down

0 comments on commit 1f7b5b0

Please sign in to comment.