-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
196 lines (176 loc) · 7.12 KB
/
index.html
File metadata and controls
196 lines (176 loc) · 7.12 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
---
layout: default
hero:
autoplay_ms: 5000
slides:
- image: /images/hero/hero1.png
title: "Experiential Learning at Scale"
subtitle: "Find Real-scale experiences for real-world skill development"
link: /articles/
cta: "Dive into our Experiential Learning Knowledge Database"
- image: /images/hero/hero2.png
title: "High Definition Simulation Environments for learning and research"
subtitle: "Build complex systems to life with open-source simulation software"
link: /solutions/
cta: "Find Open Source Digital Solutions"
- image: /images/hero/hero3.png
title: "Cross Experiential Simulations"
subtitle: "Visualize Experiential Simulations into one Place"
link: /microverse/
cta: "Dive into PractiCity Microverse"
- image: /images/hero/hero4.png
title: "PractiCity Universal Live Simulation Event-Drivent Schema "
subtitle: "Discover PULSES, the new interoperability simulation standard (release 1.0 : 26 may 2026)"
link: /developers/
cta: "I am a developer, what's up ?"
---
{% if page.hero.slides and page.hero.slides.size > 0 %}
<!-- ===== Hero Banner Carousel ===== -->
<div class="hero-carousel" id="heroCarousel"
aria-label="Hero banner"
aria-roledescription="carousel">
<div class="hero-track" id="heroTrack">
{% for slide in page.hero.slides %}
<div class="hero-slide{% if forloop.first %} active{% endif %}"
role="group"
aria-roledescription="slide"
aria-label="{{ forloop.index }} of {{ forloop.length }}"
style="background-image: url('{{ slide.image | relative_url }}');">
<div class="hero-overlay"></div>
<div class="hero-caption">
{% if slide.title %}<h2 class="hero-title">{{ slide.title }}</h2>{% endif %}
{% if slide.subtitle %}<p class="hero-subtitle">{{ slide.subtitle }}</p>{% endif %}
{% if slide.link %}
<a href="{{ slide.link | relative_url }}" class="hero-cta">
{{ slide.cta | default: "Learn more" }}
</a>
{% endif %}
</div>
</div>
{% endfor %}
</div>
<!-- Dot indicators -->
<div class="hero-dots" role="tablist" aria-label="Slides">
{% for slide in page.hero.slides %}
<button class="hero-dot{% if forloop.first %} active{% endif %}"
role="tab"
aria-label="Go to slide {{ forloop.index }}"
onclick="heroGo({{ forloop.index | minus: 1 }})"></button>
{% endfor %}
</div>
</div>
<script>
(function () {
var total = {{ page.hero.slides.size }};
var current = 0;
var timer = null;
var ms = {{ page.hero.autoplay_ms | default: 5000 }};
function update(next) {
var slides = document.querySelectorAll('.hero-slide');
var dots = document.querySelectorAll('.hero-dot');
slides[current].classList.remove('active');
dots[current].classList.remove('active');
current = (next + total) % total;
slides[current].classList.add('active');
dots[current].classList.add('active');
}
window.heroMove = function (dir) { resetTimer(); update(current + dir); };
window.heroGo = function (idx) { resetTimer(); update(idx); };
function resetTimer() {
if (timer) clearInterval(timer);
if (ms > 0) timer = setInterval(function () { update(current + 1); }, ms);
}
var el = document.getElementById('heroCarousel');
if (el) {
el.addEventListener('mouseenter', function () { if (timer) clearInterval(timer); });
el.addEventListener('mouseleave', resetTimer);
}
document.addEventListener('keydown', function (e) {
if (e.key === 'ArrowLeft') heroMove(-1);
if (e.key === 'ArrowRight') heroMove(1);
});
if (ms > 0 && total > 1) resetTimer();
})();
</script>
{% endif %}
<!-- ===== Homepage content ===== -->
<div class="hp-sections">
<!-- Latest News -->
<section class="hp-section">
<div class="hp-section-header">
<h2>Latest News</h2>
<a href="{{ site.baseurl }}/posts/">See all →</a>
</div>
<div class="hp-grid">
{% assign recent_posts = site.posts | slice: 0, 4 %}
{% for post in recent_posts %}
<a class="hp-card" href="{{ post.url | relative_url }}">
<div class="hp-card-thumb">
{% if post.screenshot1 %}
<img src="{{ post.screenshot1 | relative_url }}" alt="{{ post.title }}">
{% else %}
<div class="hp-card-placeholder"></div>
{% endif %}
</div>
<p class="hp-card-title">{{ post.title }}</p>
<div class="hp-card-meta">
{% if post.date %}<span class="hp-card-date">{{ post.date | date: "%b %-d, %Y" }}</span>{% endif %}
{% if post.contributor_id %}{% assign _contrib = site.contributors | where: "contributor_id", post.contributor_id | first %}<span class="author-pill">{{ _contrib.title | default: post.contributor_id }}</span>{% endif %}
</div>
</a>
{% endfor %}
</div>
</section>
<!-- Latest Articles -->
<section class="hp-section">
<div class="hp-section-header">
<h2>Latest Articles</h2>
<a href="{{ site.baseurl }}/articles/">See all →</a>
</div>
<div class="hp-grid">
{% assign recent_articles = site.articles | slice: 0, 4 %}
{% for item in recent_articles %}
<a class="hp-card" href="{{ item.url | relative_url }}">
<div class="hp-card-thumb">
{% if item.screenshot1 %}
<img src="{{ item.screenshot1 | relative_url }}" alt="{{ item.title }}">
{% else %}
<div class="hp-card-placeholder"></div>
{% endif %}
</div>
<p class="hp-card-title">{{ item.title }}</p>
<div class="hp-card-meta">
{% if item.created_on %}<span class="hp-card-date">{{ item.created_on }}</span>{% endif %}
{% if item.contributor_id %}{% assign _contrib = site.contributors | where: "contributor_id", item.contributor_id | first %}<span class="author-pill">{{ _contrib.title | default: item.contributor_id }}</span>{% endif %}
</div>
</a>
{% endfor %}
</div>
</section>
<!-- Latest Solutions -->
<section class="hp-section">
<div class="hp-section-header">
<h2>Latest Solutions</h2>
<a href="{{ site.baseurl }}/solutions/">See all →</a>
</div>
<div class="hp-grid">
{% assign recent_solutions = site.solutions | slice: 0, 4 %}
{% for item in recent_solutions %}
<a class="hp-card" href="{{ item.url | relative_url }}">
<div class="hp-card-thumb">
{% if item.screenshot1 %}
<img src="{{ item.screenshot1 | relative_url }}" alt="{{ item.title }}">
{% else %}
<div class="hp-card-placeholder"></div>
{% endif %}
</div>
<p class="hp-card-title">{{ item.title }}</p>
<div class="hp-card-meta">
{% if item.last_survey %}<span class="hp-card-date">{{ item.last_survey }}</span>{% endif %}
{% if item.contributor_id %}{% assign _contrib = site.contributors | where: "contributor_id", item.contributor_id | first %}<span class="author-pill">{{ _contrib.title | default: item.contributor_id }}</span>{% endif %}
</div>
</a>
{% endfor %}
</div>
</section>
</div>