-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.vue
99 lines (90 loc) · 1.97 KB
/
index.vue
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
98
99
<!-- Home -->
<template>
<div
class="home-page-container relative flex flex-col justify-center align-center"
>
<h4 class="">ch.01</h4>
<h1 class="home-page-main-text">
Creative <br />
Web Developer
</h1>
<p>Explore My Journey</p>
<div class="flex justify-center align-center py-6">
<nuxt-link to="/projects"><Eye /></nuxt-link>
</div>
<rotating-circle class="rotating-circle-1"> </rotating-circle>
<rotating-circle class="rotating-circle-2"> </rotating-circle>
<HomeBackground></HomeBackground>
<Footer />
</div>
</template>
<script>
import Eye from "~/components/Eye.vue";
import RotatingCircle from "~/components/RotatingCircle.vue";
import Footer from "@/components/Footer.vue";
import HomeBackground from "@/components/HomeBackground.vue";
// import gsap from "gsap";
export default {
name: "IndexPage",
head: {
title: "Web Portfolio",
meta: [
{
hid: "description",
name: "description",
content:
"Snowie Wong - A Hong Kong web developer passionate in frontend web development, now based in Vancouver",
},
],
},
// transition: "intro",
components: {
Eye,
RotatingCircle,
Footer,
HomeBackground,
},
mounted() {
this.$root.$refs.customCursor.removeCursorActiveStyle();
this.$root.$refs.customCursor.initActiveCursorDetection();
},
};
</script>
<style scoped>
body {
overflow: hidden;
}
.home-page-container {
width: 100%;
max-width: 100vw;
height: 100vh;
height: -webkit-fill-available;
text-align: center;
overflow: hidden;
}
.home-page-main-text {
font-size: clamp(2.4rem, 5vw, 6rem);
line-height: 1.3;
margin-top: 2rem;
margin-bottom: 3rem;
}
.rotating-circle-1 {
top: 7%;
right: -70px;
animation-direction: reverse;
}
.rotating-circle-2 {
bottom: 7%;
left: -70px;
}
@screen lg {
.rotating-circle-1 {
top: 10%;
right: -7%;
}
.rotating-circle-2 {
bottom: 10%;
left: -7%;
}
}
</style>