-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathhero.astro
More file actions
211 lines (203 loc) · 6.34 KB
/
Copy pathhero.astro
File metadata and controls
211 lines (203 loc) · 6.34 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
---
import { Picture } from "astro:assets";
import heroImage from "/public/images/conference_photo.jpg";
import IconWithLabel from "./icon-label.astro";
import Icon from "@ui/Icon.astro";
import Button from "@ui/Button.astro";
const action1 = "/tickets";
const action2 = "/sponsorship/sponsor/";
---
<section class="relative z-10">
<div
class="bg-icons relative flex flex-col items-center justify-center"
style=""
>
<div class="absolute inset-0 overflow-hidden -z-10">
<!-- Left side icons -->
<svg
class="bg-icon top-[5%] left-[15%] rotate-[23deg] xl:block hidden"
viewBox="-40 -40 200 200"
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9"
>{"{}"}</text
></svg
>
<svg
class="bg-icon top-[30%] left-[5%] rotate-[42deg] xl:block hidden"
viewBox="-40 -40 200 200"
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9"
>#</text
></svg
>
<svg
class="bg-icon bottom-[30%] left-[18%] rotate-[15deg] xl:block hidden"
viewBox="-40 -40 200 200"
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9"
></></text
></svg
>
<svg
class="bg-icon bottom-[5%] left-[7%] rotate-[10deg] xl:block hidden"
viewBox="-40 -40 200 200"
><text
x="10"
y="50"
font-size="80"
font-weight="bold"
fill="#A0B7E9"
set:html={"..."}
/></svg
>
<!-- Right side icons -->
<svg
class="bg-icon top-[5%] right-[17%] rotate-[30deg] xl:block hidden"
viewBox="-40 -40 200 200"
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9"
></></text
></svg
>
<svg
class="bg-icon top-[30%] right-[6%] rotate-[15deg] xl:block hidden"
viewBox="-40 -40 200 200"
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9"
>:=</text
></svg
>
<svg
class="bg-icon bottom-[30%] right-[20%] rotate-[45deg] xl:block hidden"
viewBox="-40 -40 200 200"
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9"
>>>></text
></svg
>
<svg
class="bg-icon bottom-[5%] right-[8%] rotate-[33deg] xl:block hidden"
viewBox="-40 -40 200 200"
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9"
>ƒ(x)</text
></svg
>
</div>
<div class="prose-xl relative z-10 text-center">
<div class="grid md:flex items-center space-x-3 p-10 md:mt-20 justify-center">
<div class="flex items-center justify-center">
<img
class="h-full block md:w-full lg:w-[200px] pr-3 lg:pr-8"
src="/logo.png"
height="188"
width="188"
alt="2025 EuroPython logo"
/>
</div>
<h1
class="text-6xl md:text-8xl lg:text-9xl mb-0 font-bold"
>
EuroPython
</h1>
</div>
<p
class="max-w-2xl mx-10 md:mx-40 text-center text-xl text-gray-700 mt-2"
>
Discover the latest Python trends, learn from 180+ expert speakers,
network with fellow developers, enjoy social events, and explore open
spaces to spark new ideas.
</p>
</div>
<!-- First 2x1 Grid -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mx-6 my-10">
<IconWithLabel icon="map-pin" label="Prague, Czech Republic" />
<IconWithLabel icon="calendar-days" label="14-20 July, 2025" />
</div>
<!-- Second 2x1 Grid with Action Buttons -->
<div class="text-center grid grid-cols-1 md:grid-cols-2 gap-4 m-6">
<div>
<Button secondary url={action1}> Register Now </Button>
</div>
<div class="btn-outline">
<Button outline url={action2}> Call for Sponsors </Button>
</div>
</div>
</div>
<div
class="bluebox relative flex flex-col items-center justify-center"
>
<div class="bluebox-shift">
<div class="hero-image overflow-hidden -mt-12">
<!-- Image with Rounded Corners and Shadow -->
<div class="px-5 md:px-10 md:m-10">
<Picture
src={heroImage}
alt="EuroPython 2025 Conference"
layout='full-width'
formats={['avif', 'webp', 'jpeg']}
class="lg:max-w-full h-auto lg:h-full rounded-2xl shadow-xl"
loading="eager"
priority={true}
/>
</div>
</div>
<!-- 3x1 Grid with Conference Stats -->
<div
class="stats flex flex-wrap flex-col md:flex-row justify-around items-center"
>
<div class="p-4 rounded-lg flex items-center">
<div
class="w-16 h-16 flex items-center justify-center rounded-full mr-4"
>
<Icon name="calendar-days" size="fa-3x" />
</div>
<div>
<h2 class="text-2xl md:text-5xl font-bold">7</h2>
<h3 class="text-xl md:text-3xl">Days</h3>
</div>
</div>
<div class="p-4 rounded-lg flex items-center">
<div
class="w-16 h-16 flex items-center justify-center rounded-full mr-4"
>
<Icon name="users" size="fa-3x" />
</div>
<div>
<h2 class="text-2xl md:text-5xl font-bold">1.3k+</h2>
<h3 class="text-xl md:text-3xl">Attendees</h3>
</div>
</div>
<div class="p-4 rounded-lg flex items-center">
<div
class="w-16 h-16 flex items-center justify-center rounded-full mr-4"
>
<Icon name="comments" size="fa-3x" />
</div>
<div>
<h2 class="text-2xl md:text-5xl font-bold">180+</h2>
<h3 class="text-xl md:text-3xl">Speakers</h3>
</div>
</div>
</div>
</div>
</div>
<style>
.bg-icons {
min-height: 600px;
padding-bottom: 150px;
overflow: hidden;
}
.bg-icon {
position: absolute;
width: 140px;
height: 140px;
opacity: 0.7;
}
.bluebox {
background-color: #d4d5e5;
z-index: -2;
}
.bluebox-shift {
position: relative;
top: -100px;
}
.stats {
position: relative;
top: 10px;
}
</style>
</section>