-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.astro
109 lines (101 loc) · 4.17 KB
/
index.astro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
import Layout from "../layouts/Page.astro";
import TextAndImageHero from "../components/sections/heros/TextAndImageHero.astro";
import TitleAndImageSection from "../components/sections/TitleAndImageSection.astro";
import Container from "../components/core/Container.astro";
import Button from "../components/buttons/Button.astro";
const seo = {
title: "Maker Fest 2023",
description:
"Manifestacija mejkera i entuzijasta za robotiku, elektroniku, programiranje i IoT.",
};
type Image = {
default: {
src: string;
width: number;
height: number;
format: string;
};
};
const f19imgs = (
await Astro.glob<Image>("/public/assets/images/2019/*.JPG")
).map((o) => o.default.src);
const f18imgs = (await Astro.glob<Image>("/public/assets/images/2018/*.jpg")).map((o) => o.default);
const f17imgs = (await Astro.glob<Image>("/public/assets/images/2017/*.JPG")).map((o) => o.default);
---
<!-- Ovo je zgodno ako bude bilo nekih dogadjaja pa da ih reklamiramo -->
<!-- <AnnouncementBar
text="Read Our Latest Blog Post"
href="/blog/posts/remote-work-mental-health/"
slot="announcement-bar"
/> -->
<Layout {seo}>
<TextAndImageHero reversed>
<div slot="text-container">
<h1>Maker Fest 2023</h1>
<p>
Pozivamo Vas na Maker Fest 2023 koji će se održati 14. oktobra 2023. godine u <a href="https://maps.app.goo.gl/qrhHn6jX4YXH9rsr8">Naučno-tehnološkom parku u Novom Sadu</a>.
</p>
<p>
Ovaj događaj predstavlja priliku za sve entuzijaste, kreativce i inovatore da pokažu svoje veštine, znanje i inovativne projekte široj javnosti.
</p>
<Button href="https://calendar.google.com/calendar/event?action=TEMPLATE&tmeid=NDRlZ2U5bzRxdGQ4czdtczdkMDZnMWNjdHMgYnN0NHV0MnFwZHY0Ymk1NDhlazltbmQ4cDRAZw&tmsrc=bst4ut2qpdv4bi548ek9mnd8p4%40group.calendar.google.com">
Dodaj u kalendar
</Button>
</div>
<picture slot="image-container">
<img src="/assets/hero.jpg" alt="Mejkeri" id="home-hero-image" />
</picture>
</TextAndImageHero>
<Container>
<h2>Nekoliko momenata sa ranijih događaja</h2>
</Container>
<TitleAndImageSection>
<h3 slot="title">Maker Fest 2019</h3>
<div class="flex justify-center" slot="image-container">
<div class="carousel lg:w-1/2 rounded-3xl">
{f19imgs.map((img, index) => <div id={`f19-slide${index}`} class="carousel-item relative w-full">
<img src={img} class="w-full aspect-f19"/>
<div
class="absolute flex justify-between transform -translate-y-1/2 left-5 right-5 top-1/2"
>
{index > 0 ? <a href={`#f19-slide${index - 1}`} class="btn btn-circle">❮</a> : <div></div>}
{index < f19imgs.length - 1 ? <a href={`#f19-slide${index + 1}`} class="btn btn-circle">❯</a> : <div></div>}
</div>
</div>)}
</div>
</div>
</TitleAndImageSection>
<TitleAndImageSection>
<h3 slot="title">Maker Fest 2018</h3>
<div class="flex justify-center" slot="image-container">
<div class="carousel lg:w-1/2 rounded-3xl">
{f18imgs.map((img, index) => <div id={`f18-slide${index}`} class="carousel-item relative w-full">
<img src={img.src} class={`w-full aspect-f18`}/>
<div
class="absolute flex justify-between transform -translate-y-1/2 left-5 right-5 top-1/2"
>
{index > 0 ? <a href={`#f18-slide${index - 1}`} class="btn btn-circle">❮</a> : <div></div>}
{index < f18imgs.length - 1 ? <a href={`#f18-slide${index + 1}`} class="btn btn-circle">❯</a> : <div></div>}
</div>
</div>)}
</div>
</div>
</TitleAndImageSection>
<TitleAndImageSection>
<h3 slot="title">Maker Fest 2017</h3>
<div class="flex justify-center" slot="image-container">
<div class="carousel lg:w-1/2 rounded-3xl">
{f17imgs.map((img, index) => <div id={`f17-slide${index}`} class="carousel-item relative w-full">
<img src={img.src} class="w-full aspect-f17"/>
<div
class="absolute flex justify-between transform -translate-y-1/2 left-5 right-5 top-1/2"
>
{index > 0 ? <a href={`#f17-slide${index - 1}`} class="btn btn-circle">❮</a> : <div></div>}
{index < f19imgs.length - 1 ? <a href={`#f17-slide${index + 1}`} class="btn btn-circle">❯</a> : <div></div>}
</div>
</div>)}
</div>
</div>
</TitleAndImageSection>
</Layout>