Skip to content

Commit dd3c1b9

Browse files
authored
Better logo (#9)
2 parents d3a6a23 + f448c69 commit dd3c1b9

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/assets/astronaut.png

-147 KB
Binary file not shown.

src/assets/logo_small.png

922 KB
Loading

src/components/splash.astro

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
import { Image } from "astro:assets";
3-
import { Icon } from "astro-icon/components";
4-
import astronautImage from "~/assets/astronaut.png";
3+
import logoImage from "~/assets/logo_small.png";
54
import HeroImage from "~/components/hero-image.astro";
65
import Starfield from "~/components/starfield.astro";
76
import GitHubCorner from "./github-corner.astro";
@@ -20,7 +19,6 @@ const sizes = "(min-width: 640px) 42vw, 67vw";
2019
<h2
2120
class="flex flex-col items-center gap-2 self-end sm:gap-4 sm:self-auto sm:justify-self-end"
2221
>
23-
<Icon name="logo_small" class="size-20 text-white md:size-32" />
2422
<div
2523
class="gradient-text text-center font-extrabold tracking-tighter text-6xl md:text-8xl"
2624
>
@@ -31,16 +29,16 @@ const sizes = "(min-width: 640px) 42vw, 67vw";
3129
</div>
3230
</h2>
3331
<div
34-
id="astronaut"
32+
id="logo-container"
3533
class="w-2/3 max-w-3xl self-start sm:w-10/12 sm:self-auto sm:justify-self-start"
3634
>
3735
<Image
3836
class="h-full w-full object-cover"
39-
src={astronautImage}
37+
src={logoImage}
4038
widths={widths}
4139
sizes={sizes}
4240
loading="eager"
43-
alt="A floating astronaut in a space suit"
41+
alt="Barcelona Java User Group Logo"
4442
/>
4543
</div>
4644
</div>
@@ -65,12 +63,12 @@ const sizes = "(min-width: 640px) 42vw, 67vw";
6563
}
6664
}
6765

68-
#astronaut {
66+
#logo-container {
6967
animation: float linear 2.5s infinite alternate;
7068
}
7169

7270
@media (prefers-reduced-motion: reduce) {
73-
#astronaut {
71+
#logo-container {
7472
@apply animate-none;
7573
}
7674

0 commit comments

Comments
 (0)