This commit is contained in:
T-A-H-prog
2026-08-11 18:04:38 +02:00
parent 1da3e05cf3
commit eef972c8d5
3 changed files with 49 additions and 48 deletions

View File

@@ -2,7 +2,6 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>th</title> <title>th</title>
</head> </head>

View File

@@ -16,8 +16,10 @@ const date = ref("--:--");
const time = ref(""); const time = ref("");
let interval; let interval;
const textHeader = "Welcome to my page. This space is currently under construction." const textHeader =
const texteSub = "Here you’ll find creative projects and ideas that inspire me at the moment." "Welcome to my page. This space is currently under construction.";
const texteSub =
"Here you’ll find creative projects and ideas that inspire me at the moment.";
function createTween() { function createTween() {
animation?.kill(); animation?.kill();
@@ -28,30 +30,31 @@ function createTween() {
pin: true, pin: true,
markers: true, markers: true,
start: "top top", start: "top top",
end : "+=500" end: "+=500",
} },
}) });
animation.to(".textblock__header", { animation
.to(".textblock__header", {
duration: 1, duration: 1,
scrambleText: { scrambleText: {
text: textHeader, text: textHeader,
chars: "TH", chars: "TH",
revealDelay: 0.5, revealDelay: 0.5,
speed: 0.7, speed: 0.7,
newClass: "myClass" newClass: "myClass",
} },
}).to(".textblock__subheader", { })
.to(".textblock__subheader", {
duration: 1, duration: 1,
scrambleText: { scrambleText: {
text: texteSub, text: texteSub,
chars: "TH", chars: "TH",
revealDelay: 0.5, revealDelay: 0.5,
speed: 0.7, speed: 0.7,
newClass: "myClass" newClass: "myClass",
} },
}); });
} }
onMounted(() => { onMounted(() => {
@@ -82,7 +85,6 @@ onUnmounted(() => {
window.removeEventListener("resize", handleResize); window.removeEventListener("resize", handleResize);
ctx?.revert(); ctx?.revert();
clearInterval(interval); clearInterval(interval);
}); });
function getTimeDate() { function getTimeDate() {
@@ -110,19 +112,23 @@ function getTimeDate() {
<div class="b-three"></div> <div class="b-three"></div>
<div class="b-four"></div> <div class="b-four"></div>
<div class="b-five"></div> <div class="b-five"></div>
<div class="b-six" text>Die Schweizer** <a href='https://en.wikipedia.org/wiki/Swiss_Style_(design)'> https://en.wikipedia.org/wiki/Swiss_Style_(design) </a></div> <div class="b-six" text>
Die Schweizer**
<a href="https://en.wikipedia.org/wiki/Swiss_Style_(design)">
https://en.wikipedia.org/wiki/Swiss_Style_(design)
</a>
</div>
<div class="textblock text"> <div class="textblock text">
<h4 class="text fontStyle">Tom Alexander Herpel</h4> <h4 class="text fontStyle">Tom Alexander Herpel</h4>
<h1 class="textblock__header text"> <h1 class="textblock__header text"></h1>
</h1> <h4 class="textblock__subheader text fontStyle"></h4>
<h4 class="textblock__subheader text fontStyle"> <p class="textblock__caption">
Oldenburg, Germany <br />
</h4> {{ time }} {{ date.value }}
</p>
<p class="textblock__caption">Oldenburg, Germany <br /> {{time}} {{date.value}}</p>
</div> </div>
</div> </div>
</template> </template>
@@ -135,7 +141,6 @@ function getTimeDate() {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
background: var(--bg-clr);
overflow: hidden; overflow: hidden;
position: relative; position: relative;
padding: 2rem; padding: 2rem;
@@ -147,16 +152,16 @@ function getTimeDate() {
.b-three, .b-three,
.b-four, .b-four,
.b-five { .b-five {
background: #ffffff; background: hsl(0, 0%, 100%);
} }
.b-one { .b-one {
grid-column: 1 / 4; grid-column: 1 / 3;
grid-row: 11 / 15; grid-row: 11 / 14;
} }
.b-two { .b-two {
grid-column: 4 / 12; grid-column: 4 / 11;
grid-row: 6 / 8; grid-row: 6 / 8;
} }
@@ -167,7 +172,7 @@ function getTimeDate() {
.b-four { .b-four {
grid-column: 11 / 30; grid-column: 11 / 30;
grid-row: 15 / 17; grid-row: 15 / 14;
} }
.b-five { .b-five {
@@ -175,11 +180,9 @@ function getTimeDate() {
grid-row: 4 / 11; grid-row: 4 / 11;
} }
.b-six { .b-six {
grid-column: 30 / 34; grid-column: 30 / 34;
grid-row: 12/ 13; grid-row: 12/ 13;
font-size: 0.85rem; font-size: 0.85rem;
} }
/* Textbereich */ /* Textbereich */

View File

@@ -83,7 +83,6 @@ onMounted(async () => {
}); });
onUnmounted(() => { onUnmounted(() => {
ctx?.revert(); ctx?.revert();
lenis?.destroy(); lenis?.destroy();
}); });
</script> </script>