Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
191 lines (179 loc) · 8.31 KB
/
Copy pathindex.html
File metadata and controls
191 lines (179 loc) · 8.31 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
---
layout: default
---
<main class="content">
<header class="hero">
<img src="/assets/images/hero_bg.png" alt="RubyConf Austria Hero Background">
<div class="hero__inner">
<div class="hero__stats" role="region" aria-label="Conference statistics">
<div class="hero__stats__slider">
<button onClick="prevHeroStat()" class="hero__stats__arrow hero__stats__arrow--prev" aria-label="Previous statistic">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M15 18L9 12L15 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
<div class="hero__stats__slider__inner">
<div class="hero__stats__item is-showing" id="hero_stat_1" role="group" aria-roledescription="slide" aria-label="Slide 1 of 6">
<div class="hero__stats__number">1</div>
<div class="hero__stats__text">Single Track</div>
</div>
<div class="hero__stats__item is-hidden" id="hero_stat_2" role="group" aria-roledescription="slide" aria-label="Slide 2 of 6">
<div class="hero__stats__number">3</div>
<div class="hero__stats__text">
Keynote
<span class="display--block">Speakers</span>
</div>
</div>
<div class="hero__stats__item is-hidden" id="hero_stat_3" role="group" aria-roledescription="slide" aria-label="Slide 3 of 6">
<div class="hero__stats__number">10</div>
<div class="hero__stats__text">Talks</div>
</div>
<div class="hero__stats__item is-hidden" id="hero_stat_4" role="group" aria-roledescription="slide" aria-label="Slide 4 of 6">
<div class="hero__stats__number">2</div>
<div class="hero__stats__text">Workshops</div>
</div>
<div class="hero__stats__item is-hidden" id="hero_stat_5" role="group" aria-roledescription="slide" aria-label="Slide 5 of 6">
<div class="hero__stats__number">1</div>
<div class="hero__stats__text">Vienna.rb Meetup</div>
</div>
<div class="hero__stats__item is-hidden" id="hero_stat_6" role="group" aria-roledescription="slide" aria-label="Slide 6 of 6">
<div class="hero__stats__number">2</div>
<div class="hero__stats__text">Social Activities</div>
</div>
</div>
<button onClick="nextHeroStat()" class="hero__stats__arrow hero__stats__arrow--next" aria-label="Next statistic">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9 18L15 12L9 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
<div class="hero__stats__controls" role="tablist" aria-label="Statistics controls">
<button onClick="showHeroStat(1)" class="hero__stats__control is-active" id="hero_stat_button_1" role="tab" aria-selected="true" aria-label="Show statistic 1"></button>
<button onClick="showHeroStat(2)" class="hero__stats__control" id="hero_stat_button_2" role="tab" aria-selected="false" aria-label="Show statistic 2"></button>
<button onClick="showHeroStat(3)" class="hero__stats__control" id="hero_stat_button_3" role="tab" aria-selected="false" aria-label="Show statistic 3"></button>
<button onClick="showHeroStat(4)" class="hero__stats__control" id="hero_stat_button_4" role="tab" aria-selected="false" aria-label="Show statistic 4"></button>
<button onClick="showHeroStat(5)" class="hero__stats__control" id="hero_stat_button_5" role="tab" aria-selected="false" aria-label="Show statistic 5"></button>
<button onClick="showHeroStat(6)" class="hero__stats__control" id="hero_stat_button_6" role="tab" aria-selected="false" aria-label="Show statistic 6"></button>
</div>
</div>
</div>
</div>
</header>
{% include about_section.html %}
<hr class="section__divider" />
<section class="section section--title-bar" id="venue-title" aria-label="The Venue">
<div class="section__content">
<h2 class="section__title-bar__text">THE VENUE</h2>
</div>
</section>
<hr class="section__divider" />
{% include location_section.html %}
<hr class="section__divider" />
<section class="section section--title-bar" id="spotlight-title" aria-label="Spotlight">
<div class="section__content">
<h2 class="section__title-bar__text">SPEAKERS & PERFORMERS</h2>
</div>
</section>
<hr class="section__divider" />
{% include speakers_section.html %}
<hr class="section__divider" />
<section class="section section--title-bar" id="agenda" aria-label="Agenda">
<div class="section__content">
<h2 class="section__title-bar__text">AGENDA</h2>
</div>
</section>
<hr class="section__divider" />
{% include agenda_section.html %}
<hr class="section__divider" />
<section class="section section--title-bar section--title-bar--red" id="sponsorships-title" aria-label="Sponsorships">
<div class="section__content">
<h2 class="section__title-bar__text section__title-bar__text--black">SPONSORSHIPS</h2>
</div>
</section>
<hr class="section__divider" />
{% include sponsorships_section.html %}
<hr class="section__divider" />
<section class="section section--title-bar" id="sponsors" aria-label="Sponsors">
<div class="section__content">
<h2 class="section__title-bar__text">SPONSORS</h2>
</div>
</section>
<hr class="section__divider" />
{% include sponsors_section.html %}
<hr class="section__divider" />
<section class="section section--title-bar" id="community-partners-title" aria-label="Community Partners">
<div class="section__content">
<h2 class="section__title-bar__text">COMMUNITY PARTNERS</h2>
</div>
</section>
<hr class="section__divider" />
{% include partners_section.html %}
</main>
<script type="text/javascript">
var currentHeroStat = 1;
var totalHeroStats = 6;
function updateHeroStatAriaStates(activeIndex) {
for (var i = 1; i <= totalHeroStats; i++) {
var button = document.getElementById('hero_stat_button_' + i);
if (button) {
button.setAttribute('aria-selected', i === activeIndex ? 'true' : 'false');
}
}
}
function showHeroStat(index) {
if (index < 1) index = totalHeroStats;
if (index > totalHeroStats) index = 1;
currentHeroStat = index;
for (var i = 1; i <= totalHeroStats; i++) {
var stat = document.getElementById('hero_stat_' + i);
var button = document.getElementById('hero_stat_button_' + i);
if (i === index) {
removeElementClass('hero_stat_' + i, 'is-hidden');
setElementClass('hero_stat_' + i, 'is-showing');
setElementClass('hero_stat_button_' + i, 'is-active');
} else {
setElementClass('hero_stat_' + i, 'is-hidden');
removeElementClass('hero_stat_' + i, 'is-showing');
removeElementClass('hero_stat_button_' + i, 'is-active');
}
}
updateHeroStatAriaStates(index);
}
function nextHeroStat() {
showHeroStat(currentHeroStat + 1);
}
function prevHeroStat() {
showHeroStat(currentHeroStat - 1);
}
// Auto-advance slider on mobile
document.addEventListener('DOMContentLoaded', function() {
var heroStatsElement = document.querySelector('.hero__stats');
if (heroStatsElement && window.innerWidth <= 768) {
// Touch swipe support
var touchStartX = 0;
var touchEndX = 0;
heroStatsElement.addEventListener('touchstart', function(e) {
touchStartX = e.changedTouches[0].screenX;
}, { passive: true });
heroStatsElement.addEventListener('touchend', function(e) {
touchEndX = e.changedTouches[0].screenX;
handleHeroSwipe();
}, { passive: true });
function handleHeroSwipe() {
var diffX = touchStartX - touchEndX;
if (Math.abs(diffX) > 50) {
if (diffX > 0) {
nextHeroStat();
} else {
prevHeroStat();
}
}
}
// Auto-advance every 3 seconds
setInterval(function() {
if (window.innerWidth <= 768) {
nextHeroStat();
}
}, 3000);
}
});
</script>