Skip to content

Commit dcd49bc

Browse files
committed
Merge main & update to bikkelhart/internet-nl@42214526
git fetch bikkelhart git merge -X theirs internetnl/main git checkout --no-overlay bikkelhart/bikkelhart-redesign -- frontend interface/templates interface/static translations git checkout --no-overlay main -- interface/static/question@internet.nl_0x45028563.asc interface/templates/statistics.html convert -resize 48x48 interface/static/favicon.{png,ico} git add interface/static/favicon.ico git commit --amend -m "Merge main & update to bikkelhart/internet-nl@$(git rev-parse bikkelhart/bikkelhart-redesign | cut -c1-8)"
2 parents 92432d1 + 89692de commit dcd49bc

File tree

12 files changed

+132
-66
lines changed

12 files changed

+132
-66
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ _Compared to the latest 1.10 release._
2020

2121
- ...
2222

23+
## 1.10.3
24+
25+
- Added [missing User-Agent](https://github.com/internetstandards/Internet.nl/issues/1048) to 0-RTT HTTP requests
26+
2327
## 1.10.2
2428

2529
- Updated unbound to fix an issue where

frontend/src/css/components.css

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,7 @@
161161
a {
162162
display: inline;
163163
color: var(--body-link-color);
164-
165-
&:hover {
166-
text-decoration: underline;
167-
}
164+
text-decoration: underline;
168165
}
169166

170167
code {
@@ -238,14 +235,29 @@
238235

239236
a {
240237
display: flex;
241-
flex-direction: column;
242238
padding: 1.5rem;
243239
gap: 1.5rem;
244240
position: relative;
245241
z-index: 1;
246-
justify-content: space-between;
247242
height: 100%;
248243
border-radius: 0.5rem;
244+
justify-content: space-between;
245+
align-items: center;
246+
flex-direction: row;
247+
}
248+
249+
.secondary-button.rounded {
250+
flex-shrink: 0;
251+
align-self: center;
252+
}
253+
254+
hgroup {
255+
gap: 1rem;
256+
flex: 1;
257+
258+
h2, h3 {
259+
font: var(--card-header-l);
260+
}
249261
}
250262

251263
&.news-card {
@@ -261,21 +273,10 @@
261273

262274
a {
263275
color: var(--card-heading-color-knowledge);
264-
}
265-
}
266-
267-
hgroup {
268-
gap: 1rem;
269276

270-
h2, h3 {
271-
font: var(--card-header-l);
272277
}
273278
}
274279

275-
&:hover h2,
276-
&:hover h3 {
277-
text-decoration: underline;
278-
}
279280

280281
&.large {
281282
translate: 0 3rem;

frontend/src/css/global.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ a {
106106
display: flex;
107107
}
108108

109+
p a {
110+
text-decoration: underline;
111+
}
112+
109113
button {
110114
cursor: pointer;
111115
border: none;
@@ -216,9 +220,13 @@ body:has(.nav-controls.active) {
216220
font: var(--section-header-xxs);
217221
}
218222

223+
224+
219225
.body-xl, .body-l, .body-m, .body-s {
220226
color: var(--body-color-primary);
221227

228+
229+
222230
&.color-secondary {
223231
color: var(--body-color-secondary);
224232
}

frontend/src/css/header.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,11 @@ header {
6262

6363
.header-logo {
6464
transition: opacity 0.3s;
65+
width: 227.5px;
6566

6667
&:hover {
6768
opacity: 0.8;
6869
}
69-
70-
img {
71-
@media (width <= 73.125rem) {
72-
width: 182px;
73-
}
74-
}
7570
}
7671

7772
.toggle-menu {
@@ -302,6 +297,7 @@ header nav {
302297
}
303298

304299
@media (width >= 73.125rem) {
300+
border: 1px solid var(--nav-sublist-border-color);
305301
gap: 1rem;
306302
position: absolute;
307303
padding: 1.25rem 1.5rem;

frontend/src/css/knowledge-section.css

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@
9191
gap: 0.5rem;
9292
height: auto;
9393

94-
> *,
95-
&::before {
94+
> * {
9695
z-index: 1;
9796
position: relative;
9897
}
@@ -121,10 +120,16 @@
121120
padding: 3rem 1.5rem 2rem;
122121
}
123122

124-
&::before {
125-
display: block;
126-
width: 2rem;
127-
height: 2rem;
123+
.card-container.knowledge {
124+
display: flex;
125+
gap: 1rem;
126+
align-items: center;
127+
128+
&::before {
129+
display: block;
130+
width: 1.6rem;
131+
height: 1.6rem;
132+
}
128133
}
129134

130135
&:nth-child(1) {
@@ -133,7 +138,7 @@
133138
grid-column: 1 / 4;
134139
}
135140

136-
&::before {
141+
.card-container.knowledge::before {
137142
mask-image: url("/static/icons/search.svg");
138143
}
139144
}
@@ -144,7 +149,7 @@
144149
grid-column: 1 / 4;
145150
}
146151

147-
&::before {
152+
.card-container.knowledge::before {
148153
mask-image: url("/static/icons/graph.svg");
149154
}
150155
}
@@ -156,7 +161,7 @@
156161
align-self: center;
157162
}
158163

159-
&::before {
164+
.card-container.knowledge::before {
160165
mask-image: url("/static/icons/eye.svg");
161166
}
162167
}

frontend/src/css/test-section.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@
305305
.card-container {
306306
display: flex;
307307
gap: 1rem;
308-
align-items: center;
309308
color: var(--card-heading-color-test);
310309

311310
&::before {

frontend/src/css/variables.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,18 @@
130130
--card-header-l: var(--heading-font-s);
131131
--card-header-m: var(--heading-font-xs);
132132
--card-header-s: var(--heading-font-xs);
133-
--card-header-xs: var(--heading-font-xxs);
133+
--card-header-xs: var(--heading-font-xs);
134134
--card-body-l: var(--body-font-xs);
135135
--card-body-m: var(--body-font-xs);
136-
--card-body-s: var(--body-font-xxs);
136+
--card-body-s: var(--body-font-xs);
137137
--card-body-xs: var(--body-font-s);
138138
--card-input: var(--body-font-s);
139139

140140
/* ACCORDION FONTS DESKTOP */
141141
--accordion-header: var(--heading-font-xs);
142-
--accordion-header-semibold: var(--heading-font-xxs-semibold);
143-
--accordion-body: var(--body-font-xxs);
144-
--accordion-body-semibold: var(--body-font-xxs-semibold);
142+
--accordion-header-semibold: var(--heading-font-xs-semibold);
143+
--accordion-body: var(--body-font-xs);
144+
--accordion-body-semibold: var(--body-font-xs-semibold);
145145
}
146146

147147
/* MARK: COLOR VARIABLES
@@ -152,6 +152,7 @@
152152

153153
/* HEADER COLORS LIGHTMODE */
154154
--nav-bg-color: light-dark(var(--white-100), var(--black-200));
155+
--nav-sublist-border-color: light-dark(var(--green-400), var(--white-100));
155156
--nav-text-color: light-dark(var(--green-500), var(--white-100));
156157
--nav-mobile-bg-color: light-dark(var(--green-200), var(--green-600));
157158
--nav-mobile-border: 0.5px solid light-dark(var(--green-400), var(--black-200));
@@ -208,7 +209,7 @@
208209
--card-bg-color-contact: light-dark(var(--green-400), var(--green-500));
209210
--card-heading-color-contact: light-dark(var(--white-100), var(--white-100));
210211
--card-body-color-contact: light-dark(var(--white-100), var(--white-100));
211-
--card-border: 2px solid light-dark(var(--transparent-100), var(--white-100));
212+
--card-border: 2px solid light-dark(var(--green-400), var(--white-100));
212213
--card-box-shadow: 0 4px 32px 0 light-dark(var(--transparent-600), var(--transparent-600));
213214
--card-bg-color-action: light-dark(var(--green-400), var(--green-500));
214215
--card-heading-color-action: var(--white-100);

frontend/src/js/base/theme.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,9 @@ function setCookie(name, value, days) {
4848
* @returns {string} Theme name
4949
*/
5050
function getPreferredTheme() {
51-
return (
52-
getCookie("theme") ||
53-
(window.matchMedia("(prefers-color-scheme: dark)").matches
54-
? "dark"
55-
: "light")
56-
);
51+
return window.matchMedia("(prefers-color-scheme: dark)").matches
52+
? "dark"
53+
: "light";
5754
}
5855

5956
/**
@@ -70,7 +67,7 @@ function setTheme(theme) {
7067
*/
7168
function themeSwitch() {
7269
// Set initial theme
73-
setTheme(getPreferredTheme());
70+
if (!getCookie("theme")) setTheme(getPreferredTheme());
7471

7572
// Add click handler for theme toggle
7673
elements.toggleTheme.addEventListener("click", () => {

interface/templates/about.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,22 @@ <h2 class="h3 color-secondary">{% include "string.html" with name="about_why_tes
7373
<p class="body-l">{% include "string.html" with name="about_why_test_description_newstring" %}</p>
7474
</hgroup>
7575
<ul class="knowledge-list" id="card-carousel">
76-
<li class="card home-variant knowledge-card ellipse icon">
77-
<h3 id="knowledge-dia-1">{% include "string.html" with name="about_reason_1_title_newstring" %}</h3>
76+
<li class="card home-variant knowledge-card ellipse">
77+
<div class="card-container knowledge icon">
78+
<h3 id="knowledge-dia-1">{% include "string.html" with name="about_reason_1_title_newstring" %}</h3>
79+
</div>
7880
<p>{% include "string.html" with name="about_reason_1_description_newstring" %}</p>
7981
</li>
80-
<li class="card home-variant knowledge-card ellipse icon">
81-
<h3 id="knowledge-dia-2">{% include "string.html" with name="about_reason_2_title_newstring" %}</h3>
82+
<li class="card home-variant knowledge-card ellipse">
83+
<div class="card-container knowledge icon">
84+
<h3 id="knowledge-dia-2">{% include "string.html" with name="about_reason_2_title_newstring" %}</h3>
85+
</div>
8286
<p>{% include "string.html" with name="about_reason_2_description_newstring" %}</p>
8387
</li>
84-
<li class="card home-variant knowledge-card ellipse icon">
85-
<h3 id="knowledge-dia-3">{% include "string.html" with name="about_reason_3_title_newstring" %}</h3>
88+
<li class="card home-variant knowledge-card ellipse">
89+
<div class="card-container knowledge icon">
90+
<h3 id="knowledge-dia-3">{% include "string.html" with name="about_reason_3_title_newstring" %}</h3>
91+
</div>
8692
<p>{% include "string.html" with name="about_reason_3_description_newstring" %}</p>
8793
</li>
8894
</ul>

interface/templates/base.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% load static %}
33
{% load i18n %}
44
{% load translate %}
5-
<html lang="{{request.current_language_code}}" >
5+
<html lang="{{request.current_language_code}}" data-theme="{{request.COOKIES.theme}}">
66

77
<head>
88
<meta charset="utf-8">
@@ -15,14 +15,14 @@
1515
<link rel="icon" href="{% static 'favicon.png' %}" sizes="192x192" />
1616
<link rel="apple-touch-icon-precomposed" href="{% static 'favicon.png' %}" />
1717
<meta name="msapplication-TileImage" content="{% static 'favicon.png' %}" />
18-
18+
1919
<link rel="stylesheet" href="{% static 'css/style-min.css' %}" />
20-
20+
2121
{% block scripting %}
22-
<script type="module" src="{% static 'js/base-min.js' %}"></script>
23-
<script nomodule src="{% static 'js/legacy-min.js' %}"></script>
22+
<script type="module" src="{% static 'js/base-min.js' %}"></script>
23+
<script nomodule src="{% static 'js/legacy-min.js' %}"></script>
2424
{% endblock %}
25-
25+
2626
</head>
2727
<body class="{{pageclass}}">
2828

@@ -40,11 +40,11 @@
4040
<a class="header-logo" href="/" aria-label="{% include "string.html" with name="base_header_homepage_label_newstring" %}">
4141
<picture class="light-visible">
4242
<source srcset="/static/logos/logo.svg" media="(width >= 900px)">
43-
<img src="/static/logos/logo-mobile.svg" alt="Internet.nl Logo" width="227.5" height="50">
43+
<img src="/static/logos/logo.svg" alt="Internet.nl Logo" width="227.5" height="50">
4444
</picture>
4545
<picture class="dark-visible">
4646
<source srcset="/static/logos/logo-white.svg" media="(width >= 900px)">
47-
<img src="/static/logos/logo-white-mobile.svg" alt="Internet.nl Logo" width="227.5" height="50">
47+
<img src="/static/logos/logo-white.svg" alt="Internet.nl Logo" width="227.5" height="50">
4848
</picture>
4949
</a>
5050
{% endif %}

0 commit comments

Comments
 (0)