-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.vue
More file actions
97 lines (89 loc) · 1.99 KB
/
app.vue
File metadata and controls
97 lines (89 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<template>
<section class="main">
<div class="main__content" @mouseenter="isMouseOver = true" @mouseleave="isMouseOver = false">
<img class="main__image" src="/encomp-logo-large.svg" alt="Logo do sexto encomp com detalhes verdes e letras brancas">
<h1 class="main__text">
Em breve...
</h1>
<NuxtLink class="main__link" target="_blank" external href="https://www.instagram.com/encompceunes/">
Nos encontre no Instagram
</NuxtLink>
</div>
<div ref="blob" class="blob" :class="isMouseOver ? 'hovered': ''" />
</section>
</template>
<script setup>
useHead({
title: 'VI Encomp',
meta: [
{
hid: 'description',
name: 'description',
content: 'Em breve...'
}
]
})
const isMouseOver = ref(false)
const { x, y } = useMouse()
const blob = ref(null)
onMounted(() => {
const el = blob.value
watch([x, y], ([x, y]) => {
el.style.transform = `translate(${x - 75}px, ${y - 75}px)`
})
})
</script>
<style lang="scss">
@import "@/assets/styles/base.scss";
.main {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-image: url("/assets/images/texture-bg.png");
&__content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 50%;
height: 50%;
}
&__text {
color: var(--color-white);
font-size: 3rem;
}
&__image{
width: 100%;
max-width: 500px;
}
&__link {
color: var(--color-black);
transition: color 200ms ease-in-out;
margin-top: 1rem;
&:hover {
color: var(--color-white);
}
}
}
.blob {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
background-color: var(--color-purple-primary);
z-index: -1;
border-radius: 50%;
opacity: 0.75;
filter: blur(25px);
transition: width 200ms ease-in-out, height 200ms ease-in-out;
display: flex;
justify-content: center;
&.hovered {
width: 150px;
height: 150px;
}
}
</style>