@@ -3,32 +3,64 @@ import Link from "./Hero/Link.astro";
3
3
---
4
4
5
5
<div
6
- class =" w-full h-[80svh] relative flex items-center justify-center bg-zinc-900 overflow-clip"
6
+ class =" w-full h-[90svh] xl:h-[ 80svh] relative flex items-center justify-center bg-zinc-900 overflow-clip"
7
7
>
8
8
<div
9
9
class =" absolute top-0 left-0 bottom-0 right-0 bg-gradient-to-b from-indigo-700 via-sky-600 to-indigo-700 bg-cool"
10
10
>
11
11
</div >
12
12
13
- <h1 class =" relative text-5xl font-extrabold text-white" >
14
- Visualise <span id =" typer" >Thing</span > in a few clicks
13
+ <h1
14
+ class =" relative text-xl md:text-2xl lg:text-3xl xl:text-5xl 2xl:text-7xl font-extrabold text-white"
15
+ >
16
+ Visualise <span
17
+ id =" typer"
18
+ class =" bg-gradient-to-b from-lime-300 to-amber-300 bg-clip-text text-transparent"
19
+ ></span > in a few clicks
15
20
</h1 >
16
21
</div >
17
22
<div
18
- class =" w-full bg-white justify-center items-center flex flex-row py-2 text-zinc-700 shadow-md divide-x-2"
23
+ class =" w-full bg-white justify-center items-center flex flex-row h-[10svh] py-2 text-zinc-700 shadow-md divide-x-2"
19
24
>
20
25
<Link link =" #info" content =" Info" />
21
26
<Link link =" #download" content =" Download" />
22
27
<Link link =" #manual" content =" Manual" />
23
28
</div >
24
29
30
+ <script >
31
+ const typer = document.getElementById("typer");
32
+
33
+ const words = ["Task Mapping", "Temperature", "Routing Load", "Frequency"];
34
+ let wordIndex = 0;
35
+ let i = 0;
36
+
37
+ const doType = () => {
38
+ const word = words[wordIndex];
39
+
40
+ i += 1;
41
+ const display = word.slice(0, i);
42
+
43
+ if (typer) {
44
+ typer.textContent = display;
45
+ }
46
+
47
+ if (i === word.length) {
48
+ i = 0;
49
+ wordIndex = (wordIndex + 1) % words.length;
50
+ }
51
+
52
+ setTimeout(doType, i === 0 ? 1500 : 100);
53
+ };
54
+
55
+ doType();
56
+ </script >
57
+
25
58
<style >
26
59
.bg-cool {
27
- mask-image: url(mask.svg);
60
+ mask-image: url(https://manycore.barillari.me/ mask.svg);
28
61
mask-position: center;
29
62
mask-size: cover;
30
63
31
- /* background-position: 0% 20%; */
32
64
background-size: 100% 300%;
33
65
animation: move 5s ease infinite;
34
66
}
0 commit comments