Skip to content

Commit 8c3bb06

Browse files
committed
feat: Add alt atttributes to images
1 parent e196982 commit 8c3bb06

2 files changed

Lines changed: 19 additions & 6 deletions

File tree

src/components/BitTreeScene.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
window.addEventListener("mousemove", (event) => {
7676
// Normalize coordinates to -1 to +1
7777
mouseX = (event.clientX / window.innerWidth) * 2 - 1;
78-
mouseY = -(event.clientY / window.innerHeight) * 2 + 1; // Invert Y because screen Y is top-down
78+
mouseY = -(event.clientY / window.innerHeight) * 2 + 1;
7979
});
8080

8181
const swayIntensity = 0.2;

src/pages/index.astro

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import "../styles/global.css";
44
import bitLogo from "../assets/bit.svg";
55
import aghLogo from "../assets/agh.svg";
66
import informatykaLogo from "../assets/informatyka.svg";
7+
78
import inaugurationPhoto from "../assets/inauguracja.jpg";
89
import hackathonPhoto from "../assets/hackathon.jpg";
910
import ludziePhoto from "../assets/ludzie.jpg";
@@ -16,12 +17,12 @@ import Section from "../components/Section.astro";
1617
import Container from "../components/Container.astro";
1718
import BitTreeScene from "../components/BitTreeScene.astro";
1819
19-
interface ISection {
20+
interface SectionItem {
2021
name: string;
2122
description: string;
2223
}
2324
24-
const sections: ISection[] = [
25+
const sections: SectionItem[] = [
2526
{
2627
name: "ALGO",
2728
description:
@@ -191,20 +192,28 @@ const navLinks = [
191192
<div class="flex items-center justify-center h-12 gap-12">
192193
<div class="w-2/5 flex justify-end">
193194
<a href="/">
194-
<img class="w-14" src={bitLogo.src} />
195+
<img
196+
class="w-14"
197+
alt="Logo koła naukowego BIT"
198+
src={bitLogo.src}
199+
/>
195200
</a>
196201
</div>
197202
<div class="w-1/5 flex justify-center">
198203
<a
199204
href="https://www.informatyka.agh.edu.pl/pl/"
200205
target="_blank"
201206
>
202-
<img class="w-36" src={informatykaLogo.src} />
207+
<img
208+
class="w-36"
209+
alt="Logo wydziału informatyki AGH"
210+
src={informatykaLogo.src}
211+
/>
203212
</a>
204213
</div>
205214
<div class="w-2/5 flex justify-start">
206215
<a href="https://www.agh.edu.pl/" target="_blank">
207-
<img class="w-8" src={aghLogo.src} />
216+
<img class="w-8" alt="Logo AGH" src={aghLogo.src} />
208217
</a>
209218
</div>
210219
</div>
@@ -234,18 +243,22 @@ const navLinks = [
234243
<img
235244
class="rounded-lg h-64 w-full object-cover"
236245
src={kaczkaPhoto.src}
246+
alt="Student szukający błędu w kodzie z żółtą kaczką"
237247
/>
238248
<img
239249
class="row-span-2 h-full w-full rounded-lg object-cover"
240250
src={inaugurationPhoto.src}
251+
alt="Zdjęcie studentów biorących udział w inauguracji koła naukowego BIT w roku 2025/2026"
241252
/>
242253
<img
243254
class="row-span-2 w-full h-full rounded-lg object-cover"
244255
src={hackathonPhoto.src}
256+
alt="Czterech członków zarządu koła pracujących przy laptopach podczas Hackathonu organizowanego przez koło naukowe BIT."
245257
/>
246258
<img
247259
class="h-64 w-full rounded-lg object-cover"
248260
src={ludziePhoto.src}
261+
alt="Czterech studentów w koszulkach koła naukowego BIT analizujących wyniki projektu na bardzo dużym monitorze"
249262
/>
250263
</div>
251264
</Container>

0 commit comments

Comments
 (0)