Skip to content

Commit f61f6f2

Browse files
authored
chore: webinar visual update (#201)
1 parent a0d1846 commit f61f6f2

6 files changed

Lines changed: 30 additions & 9 deletions

File tree

apps/webinar/app/components/ForWhom.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
>
1111
<div
1212
class="w-full h-fit aspect-square min-h-56 text-muted bg-cover rounded-lg"
13-
:class="{ 'motion-preset-slide-right': isVisible }"
13+
:class="{ 'motion-preset-slide-right motion-preset-pop motion-duration-2000': isVisible }"
1414
style="background-image: url('/bg-whom.png');"
1515
/>
1616
</UPageSection>
@@ -45,7 +45,9 @@ const firstSectionItems = [
4545
]
4646
4747
const target = useTemplateRef<HTMLDivElement>('target')
48-
const targetIsVisible = useElementVisibility(target)
48+
const targetIsVisible = useElementVisibility(target, {
49+
rootMargin: '0px 0px -100px 0px',
50+
})
4951
5052
const isVisible = ref(false)
5153
watch(targetIsVisible, () => {

apps/webinar/app/components/Header.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
<UContainer class="mt-4 md:mt-6 flex flex-row gap-2 items-center justify-between">
33
<UNavigationMenu
44
:items="items"
5+
variant="link"
56
class="hidden md:flex"
67
:ui="{
7-
item: 'mr-2',
8-
link: '!text-xl',
8+
item: 'mr-3',
9+
link: '!text-xl text-primary hover:text-secondary pl-0.5',
910
}"
1011
/>
1112

apps/webinar/app/components/Hero.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</UButton>
4343

4444
<div class="mt-2 max-w-120 flex flex-row gap-3.5 items-center">
45-
<UIcon name="i-lucide-gift" class="shrink-0 size-12 text-secondary motion-preset-wobble-sm" />
45+
<UIcon name="i-lucide-gift" class="shrink-0 size-12 text-secondary motion-preset-pulse motion-duration-2000" />
4646
<p class="text-base/5">
4747
Сразу <span class="font-bold">после регистрации получи</span> гайд по документообороту открытия своего заведения
4848
</p>

apps/webinar/app/components/Register.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
Узнай все секреты бизнеса в сфере общепита и применяй их уже завтра!
1818
</h2>
1919
<div class="text-lg sm:text-2xl/7 text-muted text-pretty">
20-
Каждому, в конце вебинара, <span class="font-semibold">мы подарим “Пошаговую инструкцию по открытию своего заведения”.</span>
20+
Каждому, в конце вебинара, <span class="font-bold">мы подарим “Пошаговую инструкцию по открытию своего заведения”.</span>
2121
</div>
2222
</div>
2323

apps/webinar/app/components/SpeakerCard.vue

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<template>
2-
<div class="flex flex-col gap-3.5 motion-preset-slide-up">
2+
<div
3+
ref="target"
4+
class="flex flex-col gap-3.5"
5+
:class="{ 'motion-preset-slide-up motion-duration-2000': isVisible }"
6+
>
37
<div class="shrink-0 relative w-full h-auto aspect-square">
48
<div class="w-full h-full bg-secondary mask-[url(/heart-fill.svg)] mask-origin-fill mask-cover mask-center -rotate-4" />
59
<div
@@ -24,4 +28,16 @@
2428

2529
<script setup lang="ts">
2630
defineProps<{ speaker: { name: string, caption: string, description: string, image: string } }>()
31+
32+
const target = useTemplateRef<HTMLDivElement>('target')
33+
const targetIsVisible = useElementVisibility(target)
34+
35+
const isVisible = ref(false)
36+
watch(targetIsVisible, () => {
37+
if (!targetIsVisible.value) {
38+
return
39+
}
40+
41+
isVisible.value = targetIsVisible.value
42+
})
2743
</script>

apps/webinar/app/components/WillKnow.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
>
1212
<div
1313
class="w-full h-fit aspect-square min-h-56 text-muted bg-cover rounded-lg"
14-
:class="{ 'motion-preset-slide-left': isVisible }"
14+
:class="{ 'motion-preset-slide-left motion-preset-pop motion-duration-2000': isVisible }"
1515
style="background-image: url('/bg-know.png');"
1616
/>
1717
</UPageSection>
@@ -57,7 +57,9 @@ const secondSectionItems = [
5757
]
5858
5959
const target = useTemplateRef<HTMLDivElement>('target')
60-
const targetIsVisible = useElementVisibility(target)
60+
const targetIsVisible = useElementVisibility(target, {
61+
rootMargin: '0px 0px -100px 0px',
62+
})
6163
6264
const isVisible = ref(false)
6365
watch(targetIsVisible, () => {

0 commit comments

Comments
 (0)