-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
291 lines (257 loc) · 16.2 KB
/
index.html
File metadata and controls
291 lines (257 loc) · 16.2 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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>CarbOff</title>
<link href="img/favicon_dark.png" rel="icon" media="(prefers-color-scheme: light)">
<link href="img/favicon.png" rel="icon" media="(prefers-color-scheme: dark)">
<!--da farmi spiegare-->
<script src="https://code.jquery.com/jquery-3.7.0.min.js"
integrity="sha256-2Pmvv0kuTBOenSvLm6bvfBSSHrUJ+3A7x6P5Ebd07/g=" crossorigin="anonymous"></script>
<script src='https://code.jquery.com/ui/1.13.1/jquery-ui.min.js'></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="styles/style-selector.css" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;1,400;1,500&display=swap" rel="stylesheet">
<style>
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&family=Oswald:wght@200;300;400;500;600;700&display=swap');
</style>
<link id="style" rel="stylesheet" href="" />
<!--maps-->
<script src="scripts/main.js"></script>
<link rel="preload" href="styles/1500.css" as="style">
<link rel="preload" href="styles/90s.css" as="style">
<link rel="preload" href="styles/pulp.css" as="style">
<link rel="preload" href = "styles/future.css" as="style">
<script src='https://api.mapbox.com/mapbox-gl-js/v2.14.1/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v2.14.1/mapbox-gl.css' rel='stylesheet' />
</head>
<body class="home">
<!--navbar-->
<nav class="navbar navbar-expand-lg">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">CarbOFF</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Issues
</a>
<ul class="dropdown-menu" id="issue-dropdown">
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#issueList">See all issues</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="read.html?issue=docs&article=documentation" target="_blank">Documentation</a>
</li>
<li class="nav-item">
<a class="nav-link" id="disclaimer-button">Disclaimer</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#footer">About</a>
</li>
<li class="nav-item">
<a class="nav-link" id="change-style-button">Themes</a>
</li>
</ul>
</div>
</div>
</nav>
<button class="size-slider" onclick="sizeMain()"></button>
<main class="home">
<div class="disclaimer-container"></div>
<!--section-hero: introduction to the project-->
<section id="section-hero"> <div class="hero-image slider">
<div class="hero-text">
<div class="hero-text-container">
<h1>CarbOFF</h1>
<p>A changing view on climate change</p>
</div>
<div class="hero-button-container">
<button><a href="#project">Explore the project</a></button>
</div>
</div>
</div>
</section>
<div class="plp-column external" id="project">
<div class="plp-row external">
<section class="section-project-content">
<div class="plp-column border-btm margin-top slider">
<div class="plp-row center">
<h2>The Project</h2>
</div>
<div class="plp-row button-right">
<p>CarbOFF is a magazine facing one of the <i>hottest</i> topics nowadays: climate change. Explore diffent perspective in the articles while adapting your point of view using our <a href="#themes">different themes</a>: they will allow you to travel in time, from the Middle Ages to the fragile yet-to-come future. Not only, but you get to explore all the countries and all the places named in our issues through our <a href="#landing">Map</a>. This project is realised for the exam of <i>Web Technology and Information Modeling</i> of the master course in <i>Digital Humanities and Digital Knowledge</i> at <b><i>Alma Mater Studiorum</i>- Università di Bologna</b>.</p>
<button><a class="element-with-dynamic-dots" href="read.html?issue=docs&article=documentation" target="_blank">Documentation</a></button>
</div>
</div>
</section>
<section class="section-project-content" id="themes">
<div class="plp-column border-btm theme slider">
<div class="plp-row center">
<h2>The Themes</h2>
</div>
<div class="plp-row">
<p> Here you can find an overview of the historical themes. Select one of the styles below to change the homepage design, or click on the links under each theme icon to discover more about them in our documentation. </p>
</div>
<div class="plp-row card-container">
<div class="card">
<img src="issues/docs/img/1500/2560px-GenevaBible.JPG" alt="Denim Jeans" style="width:100%">
<div class="container">
<div class="center">
<h3>16th century</h3>
</div>
<p>Inspired by one of the most historically significant and revolutionary texts of its time, the Geneva Bible.</p>
<button><a onclick="changeStyle('1500.css')">Apply</a></button>
</div>
</div>
<div class="card">
<img src="issues/docs/img/pulp/cards/pulp-card.jpg" alt="Denim Jeans" style="width:100%">
<div class="container">
<div class="center">
<h3>Pulp Magazine</h3>
</div>
<p>Pulp magazines were inexpensive fiction magazines that were published from 1896 through the 1960s. This style is inspired by some of the top venues published during the 30s, the golden age of the pulps.</p>
<button><a onclick="changeStyle('pulp.css')">Apply</a></button>
</div>
</div>
<div class="card">
<img src="issues/docs/img/1990/raygun_cover.png" alt="Denim Jeans" style="width:100%">
<div class="container">
<div class="center">
<h3>Nineties</h3>
</div>
<p>Inspired by the deconstructive approach of the "grandfather of grunge", David Carson and his magazine "Ray Gun".</p>
<button><a onclick="changeStyle('90s.css')">Apply</a></button>
</div>
</div>
<div class="card">
<img src="issues/docs/img/future/cards/future-card.webp" alt="Denim Jeans" style="width:100%">
<div class="container">
<div class="center">
<h3>Future</h3>
</div>
<p>This theme gets its inspiration from the uprising technologies of the transparent glasses. The question here is: how can we focus on something, if we are always distracted by the background?</p>
<button><a onclick="changeStyle('future.css')">Apply</a></button>
</div>
</div>
</div>
</div>
</section>
<section class="slideshow-issues" id="issueList">
<div class="plp-column border-btm issues slider">
<div class="plp-row center">
<h2>See Our Issues</h2>
</div>
<!-- Slideshow container -->
<div class="slideshow-container">
<!-- Full-width images with number and caption text -->
<div class="mySlides fade">
<div class="numbertext">1 / 2</div>
<img src="img/slideshow/issue-1.jpg" style="width:100%">
<div class="slideshow-text">The Emotion Issue</div>
</div>
<div class="mySlides fade">
<div class="numbertext">2 / 2</div>
<img src="img/slideshow/issue-2.jpg" style="width:100%">
<div class="slideshow-text">The Nuclear Issue</div>
</div>
<!-- Next and previous buttons -->
<a class="prev" onclick="plusSlides(-1)">❮</a>
<a class="next" onclick="plusSlides(1)">❯</a>
</div>
<!-- The dots/circles -->
<div class="dots-container">
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
</div>
</div>
</section>
<section class="section-map" id="landing">
<div class="plp-column slider">
<div class="plp-row center">
<h2>Explore locations</h2>
</div>
<div class="map-container">
<div class="map" id="map"></div>
</div>
</div>
</section>
</div>
</div>
</main>
<!-- footer -->
<footer class="home" id="footer">
<div class="container p-4">
<div class="row">
<div class="col-lg-6 col-md-12 mb-4">
<h5 class="mb-3">CarbOFF</h5>
<p>
This website is a project developed by Leonardo Zilli and Daniele Spedicati for the 2022/2023 course <a href="https://www.unibo.it/en/teaching/course-unit-catalogue/course-unit/2023/454464">Information Modeling and Web Technologies</a> held by <a href="https://www.unibo.it/sitoweb/fabio.vitali/">Professor Fabio Vitali</a>.
</p>
</div>
<div class="col-lg-3 col-md-6 mb-4">
<h5 class="mb-3">links</h5>
<ul class="list-unstyled mb-0">
<li class="mb-1">
<a id="disclaimer-button">Disclaimer</a>
</li>
<li class="mb-1">
<a href="read.html?issue=docs&article=documentation" target="_blank">Documentation</a>
</li>
</ul>
</div>
</div>
</div>
<div class="text-center p-3">
© 2024 Copyright: Leonardo Zilli, Daniele Spedicati
</div>
<!-- Copyright -->
</footer>
<!-- slideshow script -->
<script>
let slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
let i;
let slides = document.getElementsByClassName("mySlides");
let dots = document.getElementsByClassName("dot");
if (n > slides.length) {slideIndex = 1}
if (n < 1) {slideIndex = slides.length}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
}
function updateDots() {
const element = document.querySelector('.element-with-dynamic-dots');
const contentWidth = element.clientWidth;
const dots = element.querySelector('::before');
//const dotsWidth = dots.clientWidth;
//const maxDots = Math.floor(contentWidth / dotsWidth);
//dots.style.content = '. '.repeat(Math.max(maxDots, 1)).trim();
}
// Call the function initially and whenever the window is resized
updateDots();
window.addEventListener('resize', updateDots);
</script>
</body>
</html>