Skip to content

Commit 455b152

Browse files
authored
Merge pull request #24 from fiit-tp7-2023/front-page-ui-fix
Front page fixes
2 parents 6cf8a29 + 9df3b31 commit 455b152

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

components/layout/FooterComponent.vue

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
11
<template>
2-
<div class="w-full flex justify-center items-center bg-slate-600 p-4 text-white">ChainMates @ FIIT_STU</div>
2+
<div class="w-full absolute flex justify-center items-center p-4 space-x-3 text-white">
3+
<div class="h-6">
4+
<NuxtLink to="https://github.com/fiit-tp7-2023" target="_blank" class="transition-all hover:text-[#fe0854]">
5+
<Icon size="1.5em" name="mdi:github" class="!align-top" />
6+
GitHub
7+
</NuxtLink>
8+
</div>
9+
<div class="h-6">•</div>
10+
<div class="h-6">ChainMates</div>
11+
<div class="h-6">•</div>
12+
<div class="h-6">
13+
<NuxtLink to="https://www.fiit.stuba.sk" target="_blank" class="transition-all hover:text-[#fe0854]"
14+
>FIIT STU</NuxtLink
15+
>
16+
</div>
17+
<div class="h-6">•</div>
18+
<div class="h-6">{{ new Date().getFullYear() }}</div>
19+
</div>
320
</template>

pages/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const initTypingEffect = (elem: string, text: string, speed: number, finishCb?:
2222
const typing = () => {
2323
if (index < text.length) {
2424
// Random erase effect
25-
if (Math.random() < 0.1) {
25+
if (Math.random() < 0.07 && element.innerHTML.length > 1) {
2626
element.innerHTML = element.innerHTML.slice(0, -1);
2727
index--;
2828
} else {
@@ -93,12 +93,12 @@ function init() {
9393
function updateMousePoint(e: MouseEvent) {
9494
if (!canvas.value) return;
9595
d.value = Math.min(Math.max(Math.abs(mousePoint.value.x - e.x), 10), 20);
96-
mousePoint.value = { x: e.x - canvas.value.offsetLeft, y: e.y - 80 };
96+
mousePoint.value = { x: e.x - canvas.value.offsetLeft, y: e.offsetY };
9797
}
9898
9999
function resizeReset() {
100100
if (!canvas.value) return;
101-
bgWidth.value = canvas.value.width = window.outerWidth;
101+
bgWidth.value = canvas.value.width = document.body.clientWidth;
102102
bgHeight.value = canvas.value.height = window.innerHeight;
103103
}
104104

0 commit comments

Comments
 (0)