Skip to content

Commit 32f05fb

Browse files
committed
feat: add logo to title and footer
1 parent 555d7e3 commit 32f05fb

6 files changed

Lines changed: 42 additions & 40 deletions

File tree

website/data/about-france.jpg

-22.5 KB
Binary file not shown.

website/data/about-hana.png

-197 KB
Binary file not shown.

website/data/about-laura.jpg

-90.7 KB
Binary file not shown.

website/data/logo.png

130 KB
Loading

website/index.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<!-- Each .section becomes a full-screen panel -->
3232
<div class="section" data-anchor="title" style="--bg-img: url('data/intro_background.jpg')">
33-
<h1>Olympic Inequalities</h1>
33+
<img src="data/logo.png" alt="Title Logo" class="intro-logo">
3434
</div>
3535

3636
<div class="section" data-anchor="introduction">
@@ -288,8 +288,13 @@ <h2>Conclusion</h2>
288288
</p>
289289
</div>
290290

291-
<div class="section fp-auto-height">
292-
<footer>Olympic Inequalities website created by DataRizz team for EPFL course COM-480 Data visualisation</footer>
291+
<div class="section fp-auto-height" data-anchor="footer">
292+
<footer>
293+
<div class="footer-content">
294+
<img src="data/logo.png" alt="Footer Logo" class="footer-logo">
295+
<p>website created by DataRizz team for EPFL course COM-480 Data visualisation</p>
296+
</div>
297+
</footer>
293298
</div>
294299

295300
<!-- A section with horizontal slides -->

website/styles.css

Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ body {
4444
padding: 5%;
4545
}
4646

47-
/* Remove "Made with fullpage.js" link at bottom of page */
48-
.fp-watermark {
49-
display: none !important;
50-
}
51-
5247
/* =============================================
5348
Navigation dots
5449
=========================================== */
@@ -63,37 +58,6 @@ body {
6358
background: white;
6459
}
6560

66-
/* =============================================
67-
General layout
68-
=========================================== */
69-
70-
.container {
71-
display: flex;
72-
gap: 2%;
73-
align-items: center;
74-
justify-content: start;
75-
}
76-
77-
.text-container {
78-
flex: 1;
79-
}
80-
81-
.image-container {
82-
width: 60%;
83-
}
84-
85-
.image-container img {
86-
width: 100%;
87-
height: auto;
88-
display: block;
89-
}
90-
91-
.slide img {
92-
width: 100%;
93-
height: auto;
94-
display: block;
95-
}
96-
9761
/* =============================================
9862
Paragraph in two columns
9963
=========================================== */
@@ -163,12 +127,18 @@ p {
163127
.section[data-anchor="title"] {
164128
box-sizing: border-box;
165129
background-attachment: fixed;
166-
background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), var(--bg-img);
130+
background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), var(--bg-img);
167131
background-position: center;
168132
background-repeat: no-repeat;
169133
background-size: cover;
170134
}
171135

136+
.img[alt="Title Logo"] {
137+
max-width: 1217px;
138+
width: 80%;
139+
height: auto;
140+
}
141+
172142
/* =============================================
173143
Introduction section
174144
=========================================== */
@@ -870,4 +840,31 @@ p {
870840
.fair-wrapper select:focus,
871841
.fair-control select:focus {
872842
outline: 2px solid white !important;
843+
}
844+
845+
/* =============================================
846+
Footer
847+
=========================================== */
848+
849+
/* Remove "Made with fullpage.js" link at bottom of page */
850+
.fp-watermark {
851+
display: none !important;
852+
}
853+
854+
.footer-content {
855+
display: flex;
856+
align-items: center;
857+
gap: 20px;
858+
justify-content: center;
859+
text-align: center;
860+
}
861+
862+
.footer-logo {
863+
height: 50px;
864+
width: auto;
865+
}
866+
867+
[data-anchor="footer"] p {
868+
margin: 0;
869+
width: auto;
873870
}

0 commit comments

Comments
 (0)