Skip to content

Commit abae953

Browse files
committed
new font, fix mobile scroll and slider
1 parent 75f86ef commit abae953

File tree

12 files changed

+138
-12
lines changed

12 files changed

+138
-12
lines changed

assets/scss/_common.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
body {
22
background-color: $body-color;
33
overflow-x: hidden;
4-
font-family: avenir, sans-serif !important;
4+
font-family: AvenirNextProDemi, avenir, sans-serif !important;
55
}
66

77
body::-webkit-scrollbar {

assets/scss/_custom.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}
4848

4949
.ac .ac-trigger {
50-
font-family: avenir, sans-serif;
50+
font-family: AvenirNextProDemi, avenir, sans-serif;
5151
}
5252

5353
.ac .ac-trigger::after {

assets/scss/_landingpage.scss

Lines changed: 79 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,53 @@
4242
}
4343

4444
.landing-page-title {
45-
font-size: 4rem;
45+
46+
47+
@media (max-width: 1200px) {
48+
font-size: 3rem;
49+
}
50+
51+
@media (min-width: 1200px) {
52+
font-size: 4.25rem;
53+
}
4654
text-align: center;
4755
font-weight: 600;
56+
font-family: AvenirNextProDemi, avenir, sans-serif;
4857
}
4958
.landing-page-slogan-title {
59+
@media (max-width: 1200px) {
60+
font-size: 1.5rem;
61+
}
62+
63+
@media (min-width: 1200px) {
64+
font-size: 2.5rem;
65+
}
5066
margin-top: 1rem;
5167
}
5268

5369
.landing-page-slogan-slider {
54-
margin-top: -0.25rem;
55-
height: 4.25rem;
70+
@media (max-width: 1200px) {
71+
height: 3.75rem;
72+
}
73+
74+
@media (min-width: 1200px) {
75+
margin-top: -0.5rem;
76+
height: 5rem;
77+
}
5678
}
5779

5880
.landing-page-slogan-slider-li {
5981
margin-top: 0.3rem;
6082
}
6183

6284
.landing-page-slide-title {
85+
@media (max-width: 1200px) {
86+
font-size: 1.5rem;
87+
}
88+
89+
@media (min-width: 1200px) {
90+
font-size: 2.5rem;
91+
}
6392
padding: 0.75rem;
6493
margin: 0;
6594
margin-top: -0.75rem;
@@ -202,6 +231,53 @@
202231
transform: rotate(-16deg);
203232
padding: 9%;
204233
}
234+
235+
.landing-page-scroll-container {
236+
z-index: 20;
237+
position: absolute;
238+
239+
@media (max-width: 1200px) {
240+
bottom: 20%;
241+
left: 43%;
242+
}
243+
244+
@media (min-width: 1200px) {
245+
bottom: 30%;
246+
left: 45%;
247+
}
248+
padding: 1rem;
249+
text-align: center;
250+
}
251+
252+
.landing-page-scroll-text {
253+
font-size: 1.8rem;
254+
color: #005aa7 !important;
255+
font-family: sans-serif;
256+
margin-bottom: 0rem;
257+
}
258+
.landing-page-scroll-icon {
259+
font-size: 1.5rem;
260+
color: #005aa7 !important;
261+
animation: bounce 2s infinite;
262+
animation-delay: 3s;
263+
}
264+
265+
@-moz-keyframes bounce {
266+
0%, 20%, 50%, 80%, 100% {-moz-transform: translateY(0);}
267+
40% {-moz-transform: translateY(-15px);}
268+
60% {-moz-transform: translateY(-7px);}
269+
}
270+
271+
@-o-keyframes bounce {
272+
0%, 20%, 50%, 80%, 100% {-o-transform: translateY(0);}
273+
40% {-o-transform: translateY(-15px);}
274+
60% {-o-transform: translateY(-7px);}
275+
}
276+
@keyframes bounce {
277+
0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
278+
40% {transform: translateY(-15px);}
279+
60% {transform: translateY(-7px);}
280+
}
205281
}
206282

207283
.landing-page-clear-bottom {

assets/scss/templates/_main.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ vertical-align: top;
744744
}
745745

746746
li {
747-
font-family: avenir, sans-serif;
747+
font-family: AvenirNextProDemi, avenir, sans-serif;
748748
line-height: 1.7;
749749
}
750750

content/english/_index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
Banner:
33
image: /images/svg-illustrations/main_illustration.svg
44
tag: definition
5-
title: Building public knowledge for responsible algorithms
5+
title_line1: Building public knowledge
6+
title_line2_before: for
7+
title_line2_underline: responsible
8+
title_line2_after: algorithms
69
phonetica: /æl.ɡə-ˈpruː.dəns/
710
type: noun
811
description1: Case-based normative advice for ethical algorithms

layouts/index.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@
2929
<div class="shape shape-circle-middle-left"></div>
3030
</div>
3131
<div class="landing-page-col landing-page-col-content col-xl-8 col-12">
32-
<h1 class="landing-page-title mt-5" style="color:#005aa7;">{{.title}}</h1>
32+
<h1 class="landing-page-title mt-5 mb-0" style="color:#005aa7;">{{.title_line1}}</h1>
33+
<h1 class="landing-page-title mt-0" style="color:#005aa7;">{{.title_line2_before}} <u>{{.title_line2_underline}}</u> {{.title_line2_after}}</h1>
3334
{{ with .slogan }}
3435
<!-- Slogan -->
3536
<div class="slider-wrapper">
3637

3738
<!-- main -->
38-
<h2 class="landing-page-slogan-title mb-0 d-inline-block" style="color:#005aa7; font-weight:100;">{{.title}}</h2>
39+
<h2 class="landing-page-slogan-title mb-3 d-inline-block" style="color:#005aa7; font-weight:100;">{{.title}}</h2>
3940
<!-- /main -->
4041

4142
<!-- slider -->
@@ -80,6 +81,10 @@ <h2 class="landing-page-slide-title" style="color:#005aa7; font-weight:100;"><i
8081
<div class="landing-page-col col-xl-8 col-12">
8182
<div class="shape shape-square-bottom-middle__most-left"></div>
8283
<div class="shape shape-square-bottom-middle__left"></div>
84+
<div class="landing-page-scroll-container">
85+
<p class="landing-page-scroll-text d-block">Scroll</p>
86+
<i class="fas fa-arrow-down landing-page-scroll-icon"></i>
87+
</div>
8388
<div class="shape shape-square-bottom-middle__right"></div>
8489
<div class="shape shape-square-bottom-middle__most-right"></div>
8590
</div>

layouts/partials/head.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
<script src="https://unpkg.com/[email protected]/dist/accordion.min.js"></script>
5858
<!-- /accordion -->
5959

60+
<link href="/css/MyWebfontsKit.css" rel="stylesheet">
61+
6062
<!-- Page specific links -->
6163
{{ if eq .Type "bias-detection-tool" }}
6264
<link rel="stylesheet" href="https://static-files-pdf.s3.amazonaws.com/assets/index.css">

static/css/MyWebfontsKit.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* @license
3+
* MyFonts Webfont Build ID 3867246, 2020-12-16T11:57:38-0500
4+
*
5+
* The fonts listed in this notice are subject to the End User License
6+
* Agreement(s) entered into by the website owner. All other parties are
7+
* explicitly restricted from using the Licensed Webfonts(s).
8+
*
9+
* You may obtain a valid license at the URLs below.
10+
*
11+
* Webfont: Avenir Next Pro Demi by Linotype
12+
* URL: https://www.myfonts.com/collections/linotype-foundry
13+
14+
* © 2025 MyFonts Inc. */
15+
16+
17+
18+
@font-face {
19+
font-family: "AvenirNextProDemi";
20+
src: url('webFonts/AvenirNextProDemi/font.woff2') format('woff2'), url('webFonts/AvenirNextProDemi/font.woff') format('woff');
21+
}
22+
34.5 KB
Binary file not shown.
33.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)