-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
62 lines (58 loc) · 1.29 KB
/
app.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
<script setup>
const creator = "<KamilKruszona />";
onMounted(() => {
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add("show");
}
});
});
const hiddenElements = document.querySelectorAll(".observerHidden");
hiddenElements.forEach((el) => observer.observe(el));
});
onBeforeUnmount(() => {
observer.disconnect();
});
useHead({
htmlAttrs: {
lang: "en",
},
title: "Kamil Kruszona",
meta: [
{
hid: "description",
name: "description",
content: "You can find sapyr's portfolio here!",
},
],
link: [
{
rel: "icon",
type: "image/x-icon",
href: "./favicon.ico",
},
],
});
</script>
<template>
<Body class="bg-darkBg text-slate-50 font-mono">
<div class="wrapper">
<Header :creator="creator" />
<main id="main">
<AboutMe />
<Skills />
<MyWork />
</main>
<footer class="bg-gray-800 flex justify-center pb-4">
<NuxtLink
class="text-xs text-gray-400 hover:text-gray-500"
to="https://github.com/sapirowsky/portfolio/"
target="_b"
>
Built by Kamil Kruszona
</NuxtLink>
</footer>
</div>
</Body>
</template>