Skip to content

Commit 67d386f

Browse files
committed
Some final touches
Signed-off-by: Giuseppe Barillari <[email protected]>
1 parent 72e6e40 commit 67d386f

File tree

6 files changed

+51
-17
lines changed

6 files changed

+51
-17
lines changed

public/favicon.png

12.5 KB
Loading

public/favicon.svg

-9
This file was deleted.

public/render.png

344 KB
Loading

src/components/Hero.astro

+38-6
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,64 @@ import Link from "./Hero/Link.astro";
33
---
44

55
<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"
77
>
88
<div
99
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"
1010
>
1111
</div>
1212

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
1520
</h1>
1621
</div>
1722
<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"
1924
>
2025
<Link link="#info" content="Info" />
2126
<Link link="#download" content="Download" />
2227
<Link link="#manual" content="Manual" />
2328
</div>
2429

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+
2558
<style>
2659
.bg-cool {
27-
mask-image: url(mask.svg);
60+
mask-image: url(https://manycore.barillari.me/mask.svg);
2861
mask-position: center;
2962
mask-size: cover;
3063

31-
/* background-position: 0% 20%; */
3264
background-size: 100% 300%;
3365
animation: move 5s ease infinite;
3466
}

src/layouts/Layout.astro

+11-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,21 @@ const { title, description } = Astro.props;
1313
<meta charset="UTF-8" />
1414
<meta name="description" content={description} />
1515
<meta name="viewport" content="width=device-width" />
16-
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
16+
<link rel="icon" type="image/png" href="/favicon.png" />
1717
<meta name="generator" content={Astro.generator} />
1818
<title>{title}</title>
1919
</head>
2020
<body>
2121
<slot />
22+
<footer
23+
class="flex w-full py-4 text-center border-t-2 border-zinc-300 mt-10"
24+
>
25+
<span class="mx-auto"
26+
>&copy; 2024 <a
27+
href="https://barillari.me"
28+
class="underline text-indigo-700">Giuseppe Barillari</a
29+
></span
30+
>
31+
</footer>
2232
</body>
2333
</html>

src/pages/index.astro

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Layout from "../layouts/Layout.astro";
77
<Layout title="ManyCore Visualiser" description="">
88
<main>
99
<Hero />
10-
<section id="info" class="grid grid-cols-[50%_40%] px-5">
10+
<section id="info" class="grid grid-cols-[60%_40%] px-5">
1111
<div>
1212
<h2 class="text-5xl font-bold">What is ManyCore Visualiser?</h2>
1313
<p class="text-lg text-justify pt-4">
@@ -20,6 +20,7 @@ import Layout from "../layouts/Layout.astro";
2020
it in a publication.
2121
</p>
2222
</div>
23+
<img src="/render.png" class="object-contain w-3/4 self-center mx-auto"/>
2324
</section>
2425
<section
2526
id="download"

0 commit comments

Comments
 (0)