Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
NoelDeMartin committed Oct 15, 2024
1 parent 58ffa6e commit c7bdb0f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
Binary file added src/assets/img/landing/landscape/clouds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions src/pages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { listName } from '@/utils/display';
import type TasksList from '@/models/TasksList';
import type WorkspaceModel from '@/models/Workspace';

import LandingBeta from './landing/LandingBeta.vue';
import Landing from './landing/Landing.vue';
// import LandingBeta from './landing/LandingBeta.vue';
import Workspace from './workspace/Workspace.vue';

export const bindings = defineRouteBindings({
Expand All @@ -23,7 +24,7 @@ export const routes = defineRoutes([
{
name: 'home',
path: '/',
component: LandingBeta,
component: Landing,
beforeEnter: () => Workspaces.open(),
},
{
Expand Down
27 changes: 27 additions & 0 deletions src/pages/landing/LandingHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
'animation-duration': `${FORM_ANIMATION_DURATION}ms`,
}"
/>

<div
class="fixed left-0 top-0 z-30 h-32 w-screen overflow-hidden"
:style="{
transform: `translateY(${showingForm ? '-100%' : '0%'})`,
'animation-duration': `${FORM_ANIMATION_DURATION}ms`,
}"
>
<div class="animate-clouds h-full w-[200vw] opacity-50" />
</div>
</template>

<script setup lang="ts">
Expand All @@ -16,3 +26,20 @@ import type { LandingContext } from './landing';
const { showingForm } = injectOrFail<LandingContext>('landing');
</script>

<style scoped>
@keyframes clouds {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-50%);
}
}
.animate-clouds {
animation: clouds 60s infinite linear;
background: url('@/assets/img/landing/landscape/clouds.png');
background-size: contain;
}
</style>

0 comments on commit c7bdb0f

Please sign in to comment.