-
Mozilla
+
);
}
diff --git a/src/components/views/NextButton.jsx b/src/components/views/NextButton.jsx
index 1dc4695d..261c3670 100644
--- a/src/components/views/NextButton.jsx
+++ b/src/components/views/NextButton.jsx
@@ -5,6 +5,9 @@ import './css/NextButton.css';
export default props => (
- {props.text}
+
+ {props.text}
+
+
);
diff --git a/src/components/views/fonts/FiraSans/firasansot-bold-webfont.eot b/src/components/views/fonts/FiraSans/firasansot-bold-webfont.eot
deleted file mode 100755
index f6b4ccd6..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-bold-webfont.eot and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-bold-webfont.svg b/src/components/views/fonts/FiraSans/firasansot-bold-webfont.svg
deleted file mode 100755
index 7756e179..00000000
--- a/src/components/views/fonts/FiraSans/firasansot-bold-webfont.svg
+++ /dev/null
@@ -1,953 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/src/components/views/fonts/FiraSans/firasansot-bold-webfont.ttf b/src/components/views/fonts/FiraSans/firasansot-bold-webfont.ttf
deleted file mode 100755
index 38d13902..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-bold-webfont.ttf and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-bold-webfont.woff b/src/components/views/fonts/FiraSans/firasansot-bold-webfont.woff
deleted file mode 100755
index 5e35365f..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-bold-webfont.woff and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-bolditalic-webfont.eot b/src/components/views/fonts/FiraSans/firasansot-bolditalic-webfont.eot
deleted file mode 100755
index 647b8db6..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-bolditalic-webfont.eot and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-bolditalic-webfont.svg b/src/components/views/fonts/FiraSans/firasansot-bolditalic-webfont.svg
deleted file mode 100755
index 0e7b5853..00000000
--- a/src/components/views/fonts/FiraSans/firasansot-bolditalic-webfont.svg
+++ /dev/null
@@ -1,942 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/src/components/views/fonts/FiraSans/firasansot-bolditalic-webfont.ttf b/src/components/views/fonts/FiraSans/firasansot-bolditalic-webfont.ttf
deleted file mode 100755
index 7aad87c0..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-bolditalic-webfont.ttf and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-bolditalic-webfont.woff b/src/components/views/fonts/FiraSans/firasansot-bolditalic-webfont.woff
deleted file mode 100755
index 08551f93..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-bolditalic-webfont.woff and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-light-webfont.eot b/src/components/views/fonts/FiraSans/firasansot-light-webfont.eot
deleted file mode 100755
index 02ba84d4..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-light-webfont.eot and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-light-webfont.svg b/src/components/views/fonts/FiraSans/firasansot-light-webfont.svg
deleted file mode 100755
index a21f2094..00000000
--- a/src/components/views/fonts/FiraSans/firasansot-light-webfont.svg
+++ /dev/null
@@ -1,953 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/src/components/views/fonts/FiraSans/firasansot-light-webfont.ttf b/src/components/views/fonts/FiraSans/firasansot-light-webfont.ttf
deleted file mode 100755
index 035e9151..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-light-webfont.ttf and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-light-webfont.woff b/src/components/views/fonts/FiraSans/firasansot-light-webfont.woff
deleted file mode 100755
index b2e51493..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-light-webfont.woff and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-lightitalic-webfont.eot b/src/components/views/fonts/FiraSans/firasansot-lightitalic-webfont.eot
deleted file mode 100755
index 955eddda..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-lightitalic-webfont.eot and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-lightitalic-webfont.svg b/src/components/views/fonts/FiraSans/firasansot-lightitalic-webfont.svg
deleted file mode 100755
index 23253bec..00000000
--- a/src/components/views/fonts/FiraSans/firasansot-lightitalic-webfont.svg
+++ /dev/null
@@ -1,942 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/src/components/views/fonts/FiraSans/firasansot-lightitalic-webfont.ttf b/src/components/views/fonts/FiraSans/firasansot-lightitalic-webfont.ttf
deleted file mode 100755
index a0e44927..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-lightitalic-webfont.ttf and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-lightitalic-webfont.woff b/src/components/views/fonts/FiraSans/firasansot-lightitalic-webfont.woff
deleted file mode 100755
index 035dfaba..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-lightitalic-webfont.woff and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-medium-webfont.eot b/src/components/views/fonts/FiraSans/firasansot-medium-webfont.eot
deleted file mode 100755
index 73bf06b5..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-medium-webfont.eot and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-medium-webfont.svg b/src/components/views/fonts/FiraSans/firasansot-medium-webfont.svg
deleted file mode 100755
index 35b5bc8e..00000000
--- a/src/components/views/fonts/FiraSans/firasansot-medium-webfont.svg
+++ /dev/null
@@ -1,953 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/src/components/views/fonts/FiraSans/firasansot-medium-webfont.ttf b/src/components/views/fonts/FiraSans/firasansot-medium-webfont.ttf
deleted file mode 100755
index 980e4d14..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-medium-webfont.ttf and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-medium-webfont.woff b/src/components/views/fonts/FiraSans/firasansot-medium-webfont.woff
deleted file mode 100755
index c7baaf71..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-medium-webfont.woff and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-mediumitalic-webfont.eot b/src/components/views/fonts/FiraSans/firasansot-mediumitalic-webfont.eot
deleted file mode 100755
index e417de30..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-mediumitalic-webfont.eot and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-mediumitalic-webfont.svg b/src/components/views/fonts/FiraSans/firasansot-mediumitalic-webfont.svg
deleted file mode 100755
index b21fdfd1..00000000
--- a/src/components/views/fonts/FiraSans/firasansot-mediumitalic-webfont.svg
+++ /dev/null
@@ -1,942 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/src/components/views/fonts/FiraSans/firasansot-mediumitalic-webfont.ttf b/src/components/views/fonts/FiraSans/firasansot-mediumitalic-webfont.ttf
deleted file mode 100755
index 52946a5c..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-mediumitalic-webfont.ttf and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-mediumitalic-webfont.woff b/src/components/views/fonts/FiraSans/firasansot-mediumitalic-webfont.woff
deleted file mode 100755
index e6d874d0..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-mediumitalic-webfont.woff and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-regular-webfont.eot b/src/components/views/fonts/FiraSans/firasansot-regular-webfont.eot
deleted file mode 100755
index 2b880f5a..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-regular-webfont.eot and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-regular-webfont.svg b/src/components/views/fonts/FiraSans/firasansot-regular-webfont.svg
deleted file mode 100755
index 41e3a386..00000000
--- a/src/components/views/fonts/FiraSans/firasansot-regular-webfont.svg
+++ /dev/null
@@ -1,953 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/src/components/views/fonts/FiraSans/firasansot-regular-webfont.ttf b/src/components/views/fonts/FiraSans/firasansot-regular-webfont.ttf
deleted file mode 100755
index f37d72b0..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-regular-webfont.ttf and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-regular-webfont.woff b/src/components/views/fonts/FiraSans/firasansot-regular-webfont.woff
deleted file mode 100755
index a6ad0299..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-regular-webfont.woff and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-regularitalic-webfont.eot b/src/components/views/fonts/FiraSans/firasansot-regularitalic-webfont.eot
deleted file mode 100755
index 259d8d15..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-regularitalic-webfont.eot and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-regularitalic-webfont.svg b/src/components/views/fonts/FiraSans/firasansot-regularitalic-webfont.svg
deleted file mode 100755
index 375cec44..00000000
--- a/src/components/views/fonts/FiraSans/firasansot-regularitalic-webfont.svg
+++ /dev/null
@@ -1,941 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/src/components/views/fonts/FiraSans/firasansot-regularitalic-webfont.ttf b/src/components/views/fonts/FiraSans/firasansot-regularitalic-webfont.ttf
deleted file mode 100755
index ffb8bf58..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-regularitalic-webfont.ttf and /dev/null differ
diff --git a/src/components/views/fonts/FiraSans/firasansot-regularitalic-webfont.woff b/src/components/views/fonts/FiraSans/firasansot-regularitalic-webfont.woff
deleted file mode 100755
index 65ab4c41..00000000
Binary files a/src/components/views/fonts/FiraSans/firasansot-regularitalic-webfont.woff and /dev/null differ
diff --git a/src/components/views/fonts/mozilla-headline/MozillaHeadline-Variable.woff2 b/src/components/views/fonts/mozilla-headline/MozillaHeadline-Variable.woff2
new file mode 100644
index 00000000..d5d3117d
Binary files /dev/null and b/src/components/views/fonts/mozilla-headline/MozillaHeadline-Variable.woff2 differ
diff --git a/src/components/views/fonts/mozilla-text/MozillaText-BoldItalic.woff2 b/src/components/views/fonts/mozilla-text/MozillaText-BoldItalic.woff2
new file mode 100644
index 00000000..8e55af74
Binary files /dev/null and b/src/components/views/fonts/mozilla-text/MozillaText-BoldItalic.woff2 differ
diff --git a/src/components/views/fonts/mozilla-text/MozillaText-Italic.woff2 b/src/components/views/fonts/mozilla-text/MozillaText-Italic.woff2
new file mode 100644
index 00000000..a59c77e3
Binary files /dev/null and b/src/components/views/fonts/mozilla-text/MozillaText-Italic.woff2 differ
diff --git a/src/components/views/fonts/mozilla-text/MozillaText-SemiBoldItalic.woff2 b/src/components/views/fonts/mozilla-text/MozillaText-SemiBoldItalic.woff2
new file mode 100644
index 00000000..61f033b7
Binary files /dev/null and b/src/components/views/fonts/mozilla-text/MozillaText-SemiBoldItalic.woff2 differ
diff --git a/src/components/views/fonts/mozilla-text/MozillaText-Variable.woff2 b/src/components/views/fonts/mozilla-text/MozillaText-Variable.woff2
new file mode 100644
index 00000000..4963ebe5
Binary files /dev/null and b/src/components/views/fonts/mozilla-text/MozillaText-Variable.woff2 differ
diff --git a/src/components/views/img/diagonal-line_yellow.png b/src/components/views/img/diagonal-line_yellow.png
deleted file mode 100644
index a579df05..00000000
Binary files a/src/components/views/img/diagonal-line_yellow.png and /dev/null differ
diff --git a/src/components/views/img/footer/bluesky-white.svg b/src/components/views/img/footer/bluesky-white.svg
new file mode 100644
index 00000000..e0e5d20f
--- /dev/null
+++ b/src/components/views/img/footer/bluesky-white.svg
@@ -0,0 +1,3 @@
+
diff --git a/src/components/views/img/footer/firefox-logo-white.svg b/src/components/views/img/footer/firefox-logo-white.svg
new file mode 100644
index 00000000..7ab025dc
--- /dev/null
+++ b/src/components/views/img/footer/firefox-logo-white.svg
@@ -0,0 +1,80 @@
+
diff --git a/src/components/views/img/footer/instagram-white.svg b/src/components/views/img/footer/instagram-white.svg
new file mode 100644
index 00000000..9354bd32
--- /dev/null
+++ b/src/components/views/img/footer/instagram-white.svg
@@ -0,0 +1 @@
+
diff --git a/src/components/views/img/footer/linkedin-white.svg b/src/components/views/img/footer/linkedin-white.svg
new file mode 100644
index 00000000..c158bb9c
--- /dev/null
+++ b/src/components/views/img/footer/linkedin-white.svg
@@ -0,0 +1 @@
+
diff --git a/src/components/views/img/footer/spotify-white.svg b/src/components/views/img/footer/spotify-white.svg
new file mode 100644
index 00000000..8bffa578
--- /dev/null
+++ b/src/components/views/img/footer/spotify-white.svg
@@ -0,0 +1 @@
+
diff --git a/src/components/views/img/footer/tiktok-white.svg b/src/components/views/img/footer/tiktok-white.svg
new file mode 100644
index 00000000..d0f8c13d
--- /dev/null
+++ b/src/components/views/img/footer/tiktok-white.svg
@@ -0,0 +1 @@
+
diff --git a/src/components/views/img/footer/youtube-white.svg b/src/components/views/img/footer/youtube-white.svg
new file mode 100644
index 00000000..6bf8bc93
--- /dev/null
+++ b/src/components/views/img/footer/youtube-white.svg
@@ -0,0 +1 @@
+
diff --git a/src/components/views/img/icons/forward-16.svg b/src/components/views/img/icons/forward-16.svg
new file mode 100644
index 00000000..26a87b9e
--- /dev/null
+++ b/src/components/views/img/icons/forward-16.svg
@@ -0,0 +1,3 @@
+
diff --git a/src/components/views/img/moz-wordmark-light-reverse.svg b/src/components/views/img/moz-wordmark-light-reverse.svg
deleted file mode 100644
index f618a060..00000000
--- a/src/components/views/img/moz-wordmark-light-reverse.svg
+++ /dev/null
@@ -1,8 +0,0 @@
-
\ No newline at end of file
diff --git a/src/components/views/img/social_logos_sprite.png b/src/components/views/img/social_logos_sprite.png
deleted file mode 100644
index 598bdfdd..00000000
Binary files a/src/components/views/img/social_logos_sprite.png and /dev/null differ
diff --git a/src/components/views/styl/Application.styl b/src/components/views/styl/Application.styl
index 8594b574..acc1be53 100644
--- a/src/components/views/styl/Application.styl
+++ b/src/components/views/styl/Application.styl
@@ -4,123 +4,48 @@ html {
box-sizing: border-box;
}
-/**
- * The PostScript names for these fonts can (which are specified within local())
- * can be determined by using the Font Book application on Mac.
- *
- * https://apple.stackexchange.com/a/79889
- *
- * The SVG IDs (which come after the # in the svg filename) can be determined by
- * inspecting the raw text content of the SVG files.
- */
+// Only woff2: every browser that can run this app supports it.
+// Mozilla Text has no italic axis, so italics come from static files.
// @stylint off
@font-face {
- src: local('FiraSansOTLight'),
- local('FiraSansLight'),
- local('Fira Sans OT Light'),
- local('Fira Sans Light'),
- url('../fonts/FiraSans/firasansot-light-webfont.woff') format('woff'),
- url('../fonts/FiraSans/firasansot-light-webfont.ttf') format('truetype'),
- url('../fonts/FiraSans/firasansot-light-webfont.svg#fira_sans_otlight') format('svg');
- font-family: FiraSansWeb;
- font-weight: 200;
-}
-
-@font-face {
- src: local('FiraSansOT'),
- local('FiraSans'),
- local('Fira Sans OT'),
- local('Fira Sans'),
- url('../fonts/FiraSans/firasansot-regular-webfont.woff') format('woff'),
- url('../fonts/FiraSans/firasansot-regular-webfont.ttf') format('truetype'),
- url('../fonts/FiraSans/firasansot-regular-webfont.svg#fira_sans_otregular') format('svg');
- font-family: FiraSansWeb;
- font-weight: 400;
-}
-
-@font-face {
- src: local('FiraSansOTMedium'),
- local('FiraSansMedium'),
- local('Fira Sans OT Medium'),
- local('Fira Sans Medium'),
- url('../fonts/FiraSans/firasansot-medium-webfont.woff') format('woff'),
- url('../fonts/FiraSans/firasansot-medium-webfont.ttf') format('truetype'),
- url('../fonts/FiraSans/firasansot-medium-webfont.svg#fira_sans_otmedium') format('svg');
- font-family: FiraSansWeb;
- font-weight: 500;
+ src: url('../fonts/mozilla-headline/MozillaHeadline-Variable.woff2') format('woff2');
+ font-family: 'Mozilla Headline VF';
+ font-display: swap;
+ font-stretch: 75% 125%;
+ font-style: normal;
+ font-weight: 200 700;
}
@font-face {
- /* Yes, the PostScript name contains a hyphen. Not a typo. */
- src: local('FiraSansOT-Bold'),
- local('FiraSans-Bold'),
- local('Fira Sans OT Bold'),
- local('Fira Sans Bold'),
- url('../fonts/FiraSans/firasansot-bold-webfont.woff') format('woff'),
- url('../fonts/FiraSans/firasansot-bold-webfont.ttf') format('truetype'),
- url('../fonts/FiraSans/firasansot-bold-webfont.svg#fira_sans_otbold') format('svg');
- font-family: FiraSansWeb;
- font-weight: 600;
+ src: url('../fonts/mozilla-text/MozillaText-Variable.woff2') format('woff2');
+ font-family: 'Mozilla Text VF';
+ font-display: swap;
+ font-style: normal;
+ font-weight: 200 700;
}
@font-face {
- /* Yes, the PostScript name contains a hyphen. Not a typo. */
- src: local('FiraSansOTLight-Italic'),
- local('FiraSansLight-Italic'),
- local('Fira Sans OT Light Italic'),
- local('Fira Sans Light Italic'),
- url('../fonts/FiraSans/firasansot-lightitalic-webfont.woff') format('woff'),
- url('../fonts/FiraSans/firasansot-lightitalic-webfont.ttf') format('truetype'),
- url('../fonts/FiraSans/firasansot-lightitalic-webfont.svg#fira_sans_otlight_italic') format('svg');
- font-family: FiraSansWeb;
- font-weight: 200;
+ src: url('../fonts/mozilla-text/MozillaText-Italic.woff2') format('woff2');
+ font-family: 'Mozilla Text VF';
+ font-display: swap;
font-style: italic;
-}
-
-@font-face {
- /* Yes, the PostScript name contains a hyphen. Not a typo. */
- src: local('FiraSansOT-Italic'),
- local('FiraSans-Italic'),
- local('Fira Sans OT Italic'),
- local('Fira Sans Italic'),
- url('../fonts/FiraSans/firasansot-regularitalic-webfont.woff') format('woff'),
- url('../fonts/FiraSans/firasansot-regularitalic-webfont.ttf') format('truetype'),
- url('../fonts/FiraSans/firasansot-regularitalic-webfont.svg#fira_sans_otitalic') format('svg');
- font-family: FiraSansWeb;
font-weight: 400;
- font-style: italic;
}
@font-face {
- /* Yes, the PostScript name contains a hyphen. Not a typo. */
- src: local('FiraSansOTMedium-Italic'),
- local('FiraSansMedium-Italic'),
- local('Fira Sans OT Medium Italic'),
- local('Fira Sans Medium Italic'),
- url('../fonts/FiraSans/firasansot-mediumitalic-webfont.woff') format('woff'),
- url('../fonts/FiraSans/firasansot-mediumitalic-webfont.ttf') format('truetype'),
- url('../fonts/FiraSans/firasansot-mediumitalic-webfont.svg#fira_sans_otmedium_italic') format('svg');
- font-family: FiraSansWeb;
- font-weight: 500;
+ src: url('../fonts/mozilla-text/MozillaText-SemiBoldItalic.woff2') format('woff2');
+ font-family: 'Mozilla Text VF';
+ font-display: swap;
font-style: italic;
+ font-weight: 600;
}
@font-face {
- /**
- * Yes, the PostScript name contains a hyphen. And yes, the word Bold comes
- * after the hyphen, not before the hyphen like Medium and Light. Weird, but
- * not a typo.
- */
- src: local('FiraSansOT-BoldItalic'),
- local('FiraSans-BoldItalic'),
- local('Fira Sans OT Bold Italic'),
- local('Fira Sans Bold Italic'),
- url('../fonts/FiraSans/firasansot-bolditalic-webfont.woff') format('woff'),
- url('../fonts/FiraSans/firasansot-bolditalic-webfont.ttf') format('truetype'),
- url('../fonts/FiraSans/firasansot-bolditalic-webfont.svg#fira_sans_otbold_italic') format('svg');
- font-family: FiraSansWeb;
- font-weight: 600;
+ src: url('../fonts/mozilla-text/MozillaText-BoldItalic.woff2') format('woff2');
+ font-family: 'Mozilla Text VF';
+ font-display: swap;
font-style: italic;
+ font-weight: 700;
}
// @stylint on
@@ -131,8 +56,8 @@ html {
body {
color: #000;
- font-family: 'Fira Sans OT', 'Fira Sans', FiraSansWeb, sans-serif;
- font-size: 13px;
+ font-family: $font-family-text;
+ font-size: 16px;
font-weight: 200;
margin: 0;
padding: 0;
@@ -188,13 +113,20 @@ main:focus,
}
a {
- color: $link-color-normal;
- text-decoration: none;
+ color: $link-color;
font-weight: bold;
+ text-decoration: none;
}
-a:hover {
- border-bottom: 1px solid $link-color-normal;
+a:hover, a:focus-visible {
+ color: $link-color-hover;
+ text-decoration: underline;
+ text-underline-offset: .15em;
+}
+
+a:focus-visible {
+ outline: 2px solid $link-color-hover;
+ outline-offset: 2px;
}
p, span {
@@ -203,19 +135,25 @@ p, span {
margin: 10px 0;
}
+h1, h2, h3, h4, h5, h6 {
+ color: $dark-purple;
+ font-family: $font-family-headline;
+}
+
h2, h3 {
font-size: 17px;
}
.contrasted {
align-items: center;
- background-color: #000;
+ background-color: $dark-purple;
color: #fff;
display: flex;
- font-size: 14px;
- font-weight: 200;
+ font-size: 32px;
+ font-weight: normal;
line-height: 1.2;
padding: 10px;
+ margin-top: 40px;
}
dd {
@@ -224,7 +162,7 @@ dd {
@media $base-tablet {
body {
- font-size: 14px;
+ font-size: 16px;
}
#application {
diff --git a/src/components/views/styl/Chart.styl b/src/components/views/styl/Chart.styl
index 95c1ac93..4daa78d3 100644
--- a/src/components/views/styl/Chart.styl
+++ b/src/components/views/styl/Chart.styl
@@ -6,7 +6,7 @@
showing or clearing the hovered value never moves anything on the page.
When the line is too long, only the population name is cut short. */
.chart-readout {
- contain: inline-size; // @stylint ignore
+ contain: inline-size;
display: flex;
font-size: .9rem;
font-weight: 400;
diff --git a/src/components/views/styl/DashboardSection.styl b/src/components/views/styl/DashboardSection.styl
index 0623d200..fe659cce 100644
--- a/src/components/views/styl/DashboardSection.styl
+++ b/src/components/views/styl/DashboardSection.styl
@@ -1,4 +1,4 @@
.dashboard-section-title {
- font-size: 1.2rem;
+ font-size: 1.5rem;
font-weight: normal;
}
diff --git a/src/components/views/styl/Footer.styl b/src/components/views/styl/Footer.styl
index 593f36be..a4e650d5 100644
--- a/src/components/views/styl/Footer.styl
+++ b/src/components/views/styl/Footer.styl
@@ -1,148 +1,291 @@
@import 'includes/lib';
-footer {
- padding: 40px 0 50px;
- background-color: #000;
+// Forked from Protocol's footer component (mzp-c-footer), with tokens resolved
+// to literal values. Protocol's breakpoints differ from lib.styl's.
+$footer-sm = unquote('(min-width: 480px)');
+$footer-md = unquote('(min-width: 768px)');
+$footer-lg = unquote('(min-width: 1024px)');
+$footer-sm-only = unquote('(min-width: 480px) and (max-width: 1023px)');
+$footer-secondary = #c8b2f6;
+
+footer-line() {
+ border-bottom: 1px solid $footer-secondary;
+}
+
+clearfix() {
+ &::after {
+ clear: both;
+ content: '';
+ display: block;
+ height: 0;
+ visibility: hidden;
+ }
+}
+
+image-replaced() {
+ direction: ltr;
+ overflow: hidden;
+ text-align: left;
+ text-indent: -9999px;
+ white-space: nowrap;
+}
+
+.c-footer {
+ background: #210340;
+ clear: both;
color: #fff;
- text-align: center;
+ font-family: $font-family-text;
+ font-weight: normal;
+ margin: 0;
+ padding: 48px 0;
+ width: 100%;
+ // Undo the global link, paragraph, and heading styles from Application.styl.
+ // :where() keeps the resets at class-level specificity so the c-footer-*
+ // rules below can override them.
a {
color: #fff;
- border-bottom: 1px solid #fff;
+ font-weight: normal;
+ text-decoration: underline;
- &:hover {
- border-bottom: 1px solid #fff;
+ &:hover, &:focus-visible, &:active {
+ border-bottom: 0;
+ color: #fff;
+ text-decoration: none;
+ }
+
+ &:focus-visible {
+ outline-color: #fff;
}
}
- ul {
- list-style: none;
+
+ :where(p), :where(span) {
+ font-size: inherit;
+ line-height: inherit;
+ margin: 0;
+ }
+
+ :where(ul) {
+ margin: 0;
padding: 0;
- text-align: center;
- margin: 0 0 40px;
}
- h3 {
- margin: 0 0 6px;
- line-height: 32px;
+}
+
+
+.c-footer-primary {
+ box-sizing: border-box;
+ font-size: 1rem;
+ line-height: 1.25;
+ margin: 0 auto 32px;
+ clearfix();
+
+ @media $footer-lg {
+ margin-bottom: 24px;
}
}
-.footer-primary {
- display: flex;
- flex-direction: column;
+.c-footer-primary-logo {
+ margin-bottom: 32px;
- ul {
- font-size: 12px;
- line-height: 18px;
+ @media $footer-lg {
+ margin-bottom: 64px;
}
- li {
- margin: 0 0 10px;
+
+ a {
+ background: url(../img/footer/firefox-logo-white.svg) no-repeat;
+ background-size: contain;
+ display: inline-block;
+ height: 40px;
+ width: 140px;
+ image-replaced();
}
}
-.footer-secondary {
- font-size: 10px;
+.c-footer-sections {
+ padding-bottom: 32px;
+ footer-line();
+ clearfix();
- ul {
- display: flex;
- justify-content: space-around;
- }
- p {
- font-size: 10px;
- text-align: center;
- line-height: 18px;
+ @media $footer-sm {
+ padding-bottom: 0;
}
}
-.footer-social {
- padding-top: 3px;
+.c-footer-section {
+ margin-bottom: 8px;
+ clearfix();
+
+ @media $footer-sm {
+ margin-bottom: 0;
+ }
a {
- text-indent: 120%;
- background: url(../img/social_logos_sprite.png) no-repeat;
- background-position: 0 2px;
- display: inline-block;
- background-size: 16px;
- height: 16px;
- width: 16px;
- margin-right: 15px;
- border: 0;
- overflow: hidden;
+ text-decoration: none;
- &:hover {
- border: 0;
+ &:hover, &:focus-visible, &:active {
+ text-decoration: underline;
}
}
- ul {
- display: flex;
- justify-content: center;
- margin: 0;
+
+ @media $footer-sm-only {
+ box-sizing: border-box;
+ float: left;
+ width: 50%;
+
+ &:nth-child(odd) {
+ clear: left;
+ padding-right: 24px;
+ }
+
+ &:nth-child(even) {
+ padding-left: 24px;
+ }
}
- li {
- &:nth-child(2) a {
- background-position: 0 -16px;
+
+ // Protocol sizes columns for 2-6 sections; ensemble only ever has two.
+ @media $footer-lg {
+ float: left;
+ padding: 0 24px;
+ width: calc(50% - 24px);
+
+ &:first-child {
+ padding-left: 0;
}
- &:last-child a {
- background-position: 0 -32px;
+
+ &:last-child {
+ padding-right: 0;
}
}
}
-// Stylint falsely sees this as a duplicate target. It's a specificity override.
-.footer-primary > div:last-child .footer-social li:last-child a { // @stylint ignore
- background-position: 0 -48px;
+.c-footer-heading {
+ background-color: transparent;
+ color: $footer-secondary;
+ font-family: $font-family-text;
+ font-size: 1.1rem;
+ font-weight: bold;
+ line-height: 1.25;
+ margin: 0;
+ padding: 16px 0;
+ position: relative;
+ text-align: left;
+ width: 100%;
+
+ @media $footer-sm {
+ padding: 0 0 16px;
+ }
+
+ @media $footer-lg {
+ padding-bottom: 24px;
+ }
}
-.footer-logo {
- background: url(../img/moz-wordmark-light-reverse.svg) no-repeat;
- background-size: 100px 32px;
- overflow: hidden;
- text-indent: 120%;
- display: none;
- height: 32px;
- width: 100px;
+.c-footer-list {
+ margin-bottom: 32px;
+ margin-top: 16px;
+
+ @media $footer-sm {
+ margin-top: 0;
+ }
- &:hover {
- border: 0;
+ @media $footer-lg {
+ margin-bottom: 64px;
+ }
+
+ li {
+ list-style-type: none;
+ margin-bottom: 16px;
}
}
-@media $base-tablet {
- footer {
- text-align: left;
+.c-footer-secondary {
+ color: $footer-secondary;
+ font-size: 1rem;
+ line-height: 1.25;
+ position: relative;
- ul {
- text-align: left;
- margin: 0;
- }
- a {
- border: 0;
+ .c-footer & a {
+ color: $footer-secondary;
+
+ &:hover, &:focus-visible, &:active {
+ color: $footer-secondary;
+ text-decoration: none;
}
}
+}
- .footer-primary {
- flex-direction: row;
- justify-content: space-between;
+.c-footer-links-social {
+ li {
+ display: inline-block;
+ list-style-type: none;
+ margin: 0 16px 0 0;
+ vertical-align: bottom;
}
- .footer-logo {
- display: inline-block;
+ a {
+ background-repeat: no-repeat;
+ border-bottom: 1px solid transparent;
+ display: block;
+ height: 16px;
+ width: 16px;
+ image-replaced();
+
+ &:hover, &:focus-visible {
+ border-bottom: 1px solid #fff;
+ }
+
+ &.bluesky {
+ background-image: url(../img/footer/bluesky-white.svg);
+ }
+
+ &.instagram {
+ background-image: url(../img/footer/instagram-white.svg);
+ }
+
+ &.linkedin {
+ background-image: url(../img/footer/linkedin-white.svg);
+ }
+
+ &.spotify {
+ background-image: url(../img/footer/spotify-white.svg);
+ }
+
+ &.tiktok {
+ background-image: url(../img/footer/tiktok-white.svg);
+ }
+
+ &.youtube {
+ background-image: url(../img/footer/youtube-white.svg);
+ }
}
+}
- .footer-secondary {
- margin-top: 50px;
+.c-footer-legal {
+ li {
+ list-style-type: none;
+ margin-bottom: 16px;
- ul {
- justify-content: flex-start;
+ &:last-child {
+ margin-bottom: 0;
}
+ }
+
+ @media $footer-md {
li {
- padding: 0 20px 0 0;
- }
- p {
- text-align: left;
+ display: inline-block;
+ padding-right: 24px;
+
+ &:last-child {
+ padding-right: 0;
+ }
}
}
+}
+
+.c-footer-license {
+ margin-bottom: 32px;
- .footer-social ul {
- justify-content: flex-start;
+ @media $footer-lg {
+ margin-bottom: 24px;
}
}
diff --git a/src/components/views/styl/Header.styl b/src/components/views/styl/Header.styl
index d2e0adcc..2b532dde 100644
--- a/src/components/views/styl/Header.styl
+++ b/src/components/views/styl/Header.styl
@@ -14,14 +14,13 @@ h1 {
a {
color: inherit;
- border-bottom: 0;
- background-color: #f5e14a;
line-height: 1.5;
display: inline-block;
- padding: 0 10px;
+ text-decoration: none;
- &:hover {
- border-bottom: 0;
+ &:hover, &:focus-visible {
+ color: inherit;
+ text-decoration: underline;
}
}
}
@@ -42,10 +41,17 @@ h1 {
}
a {
- border-bottom: none;
color: #000;
font-size: 1.1rem;
font-weight: 200;
+ text-decoration: none;
+
+ &:hover, &:focus-visible {
+ color: #000;
+ text-decoration: underline;
+ text-decoration-thickness: 2px;
+ text-underline-offset: .3em;
+ }
}
}
}
diff --git a/src/components/views/styl/MetricOverview.styl b/src/components/views/styl/MetricOverview.styl
index 8097db1b..32615c2a 100644
--- a/src/components/views/styl/MetricOverview.styl
+++ b/src/components/views/styl/MetricOverview.styl
@@ -27,7 +27,7 @@
// to 400px tall, below the 20px margin and 28px readout line above it.
.metric-and-legend > .spinner {
align-items: center;
- aspect-ratio: 1; // @stylint ignore
+ aspect-ratio: 1;
margin-top: 48px;
max-height: 400px;
width: 100%;
diff --git a/src/components/views/styl/NextButton.styl b/src/components/views/styl/NextButton.styl
index a3428926..63a8d67c 100644
--- a/src/components/views/styl/NextButton.styl
+++ b/src/components/views/styl/NextButton.styl
@@ -1,4 +1,10 @@
-$btn-color = #f5e14a;
+@import 'includes/lib';
+
+// Flare's primary button (springfield media/css/cms/components/flare-button.css),
+// with its tokens resolved to literal values.
+$btn-color = #7543e3;
+$btn-color-hover = #6132bc;
+$btn-color-active = #3a0f6e;
.next-button {
display: flex;
@@ -6,29 +12,52 @@ $btn-color = #f5e14a;
margin: 50px 0;
a {
+ align-items: center;
background-color: $btn-color;
- border: 0;
- color: #000;
- display: inline-block;
- height: 48px;
- line-height: 28px;
- padding: 10px 15px;
- position: relative;
+ border: 2px solid transparent;
+ border-radius: 128px;
+ color: #fff;
+ display: inline-flex;
+ font-family: $font-family-text;
+ font-size: 1rem;
+ font-weight: 600;
+ gap: 12px;
+ justify-content: center;
+ line-height: 1;
+ padding: 12px 24px;
+ text-align: center;
+ text-decoration: none;
+ transition: background-color .15s ease, color .15s ease, border-color .15s ease;
+
+ // Flare's forward icon, masked so it takes the text colour.
+ .next-button-icon {
+ background-color: currentColor;
+ display: inline-block;
+ flex-shrink: 0;
+ height: 16px;
+ margin: 0; // the global span margin would make the button taller
+ width: 16px;
+ -webkit-mask: url(../img/icons/forward-16.svg) no-repeat center / contain;
+ mask: url(../img/icons/forward-16.svg) no-repeat center / contain;
+ }
&:hover {
- border-bottom: 0;
+ background-color: $btn-color-hover;
+ color: #fff;
+ text-decoration: none;
}
- &::after {
- background-color: $btn-color;
- border: 24px solid #fff;
- border-left: 24px solid $btn-color;
- content: '';
- height: 0;
- top: 0;
- left: 100%;
- position: absolute;
- width: 0;
- z-index: -1;
+
+ &:active {
+ background-color: $btn-color-active;
+ border-color: $btn-color-active;
+ outline: none;
+ }
+
+ &:focus-visible {
+ color: #fff;
+ outline: 2px solid $btn-color;
+ outline-offset: 2px;
+ text-decoration: none;
}
}
}
diff --git a/src/components/views/styl/Spinner.styl b/src/components/views/styl/Spinner.styl
index b8792dcc..f1369d9a 100644
--- a/src/components/views/styl/Spinner.styl
+++ b/src/components/views/styl/Spinner.styl
@@ -1,6 +1,4 @@
-// Stylint wants to complain here since we're doing spinner specific overrides
-// on targets started in previous files. This is the intended approach.
-main > .spinner { // @stylint ignore
+main > .spinner {
display: flex;
align-items: center;
justify-content: center;
diff --git a/src/components/views/styl/StripedHeader.styl b/src/components/views/styl/StripedHeader.styl
index 4079d2b4..1bddc7b9 100644
--- a/src/components/views/styl/StripedHeader.styl
+++ b/src/components/views/styl/StripedHeader.styl
@@ -1,26 +1,12 @@
.striped {
- background: url(../img/diagonal-line_yellow.png) repeat-x left center;
- background-size: 20px 40px;
+ font-size: 18px;
+ font-weight: 700;
line-height: 40px;
+ padding: 0 2px;
text-align: left;
- font-size: 16px;
+ border-bottom: 2px solid currentColor;
span {
- background-color: #f5e14a;
- display: inline-block;
- padding: 0 10px;
- position: relative;
- line-height: inherit;
- margin: 0;
-
- &::before {
- background-color: #f5e14a;
- content: '';
- height: 40px;
- position: absolute;
- transform: skew(-20deg);
- width: 100%;
- z-index: -1;
- }
+ font-size: 18px;
}
}
diff --git a/src/components/views/styl/includes/lib.styl b/src/components/views/styl/includes/lib.styl
index 5f8bdb85..2aabe561 100644
--- a/src/components/views/styl/includes/lib.styl
+++ b/src/components/views/styl/includes/lib.styl
@@ -3,6 +3,15 @@ $base-tablet = unquote('all and (min-width: 550px)');
$base-desktop = unquote('all and (min-width: 1200px)');
// Colours
-$link-color-normal = #0070ff;
+// Protocol's $color-link and $color-link-hover tokens
+$link-color = #0060df;
+$link-color-hover = #0250bb;
+
+// Firefox dark purple (springfield's --token-color-dark-purple)
+$dark-purple = #210340;
// TODO: padding/margin spacing.
+
+// Fonts, from springfield's --token-font-family-* tokens
+$font-family-headline = 'Mozilla Headline VF', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
+$font-family-text = 'Mozilla Text VF', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
diff --git a/src/tests/jest/Chart.test.jsx b/src/tests/jest/Chart.test.jsx
index 132db7b7..3397994f 100644
--- a/src/tests/jest/Chart.test.jsx
+++ b/src/tests/jest/Chart.test.jsx
@@ -176,6 +176,16 @@ it('A single population is shaded below its line; several populations are not',
expect(renderChart({ data: twoPopulations }).svg.querySelector('g.chart-area')).toBeNull();
});
+it('A single population is drawn in purple over an opaque pale purple area, beneath the axes', () => {
+ const { svg } = renderChart({ data: [twoPopulations[0]], legend: ['Only'] });
+ const area = svg.querySelector('g.chart-area');
+
+ expect(lineStrokes(svg)).toEqual(['#7543e3']);
+ expect(area.getAttribute('fill')).toBe('#f1e7f8');
+ expect(area.getAttribute('fill-opacity')).toBeNull();
+ expect(area.compareDocumentPosition(svg.querySelector('.chart-axis-line')) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();
+});
+
it('A population with a single point is drawn as a dot', () => {
const svg = renderChart({ data: [[{ x: dates[0], y: 9 }], twoPopulations[1]] }).svg;
diff --git a/tests/playwright/specs/footer.spec.js b/tests/playwright/specs/footer.spec.js
index b7baf103..cf7e6813 100644
--- a/tests/playwright/specs/footer.spec.js
+++ b/tests/playwright/specs/footer.spec.js
@@ -9,8 +9,9 @@ test('Footer appears', async ({ page }) => {
const notFoundPaths = ['/this-page-does-not-exist', '/dashboard/not-a-dashboard'];
// The 375px window is tall enough to fit the header, the page, and the footer,
-// which on a phone is taller than many phone screens.
-for (const [width, height] of [[1280, 900], [375, 1000]]) {
+// whose sections stay expanded on a phone, making it taller than most phone
+// screens on its own.
+for (const [width, height] of [[1280, 900], [375, 1600]]) {
for (const path of ['/contact', ...notFoundPaths]) {
test(`On a page shorter than the window, the footer sits at the bottom of the window (${path} at ${width}×${height})`, async ({ page }) => {
test.skip(
@@ -27,3 +28,67 @@ for (const [width, height] of [[1280, 900], [375, 1000]]) {
});
}
}
+
+test.describe('Footer content', () => {
+ test.beforeEach(async ({ page }) => {
+ await page.goto('/');
+ });
+
+ test('Footer sections and logo are correct', async ({ page }) => {
+ await expect(page.locator('.c-footer-heading')).toHaveText(['Mozilla', 'Firefox']);
+ await expect(page.locator('.c-footer-primary-logo a')).toHaveAttribute('href', 'https://www.firefox.com/');
+ });
+
+ test('Footer Mozilla links are correct', async ({ page }) => {
+ const links = page.locator('.c-footer-section:nth-child(1) .c-footer-list > li > a');
+
+ await expect(links).toHaveText(['Mozilla.org', 'About', 'Donate', 'Data Privacy Principles']);
+ expect(await links.evaluateAll(els => els.map(el => el.getAttribute('href')))).toEqual([
+ 'https://www.mozilla.org/',
+ 'https://www.mozilla.org/about/',
+ 'https://donate.mozilla.org/',
+ 'https://www.mozilla.org/privacy/principles/',
+ ]);
+ });
+
+ test('Footer Firefox links are correct', async ({ page }) => {
+ const links = page.locator('.c-footer-section:nth-child(2) .c-footer-list > li > a');
+
+ await expect(links).toHaveText(['Download Firefox', 'Release Notes', 'Support', 'Firefox Privacy Notice']);
+ expect(await links.evaluateAll(els => els.map(el => el.getAttribute('href')))).toEqual([
+ 'https://www.firefox.com/',
+ 'https://www.firefox.com/firefox/notes/',
+ 'https://support.mozilla.org/',
+ 'https://www.mozilla.org/privacy/firefox/',
+ ]);
+ });
+
+ test('Footer social and legal links are correct', async ({ page }) => {
+ const hrefs = selector => page.locator(selector).evaluateAll(els => els.map(el => el.getAttribute('href')));
+
+ expect(await hrefs('.c-footer-links-social a')).toEqual([
+ 'https://bsky.app/profile/mozilla.org',
+ 'https://www.instagram.com/mozilla/',
+ 'https://www.linkedin.com/company/mozilla-corporation/',
+ 'https://www.tiktok.com/@mozilla',
+ 'https://open.spotify.com/show/0vT7LJMeVDxyQ2ZamHKu08?si=_uDRD6bRR_6M5YZyISGXgA',
+ 'https://bsky.app/profile/firefox.com',
+ 'https://www.instagram.com/firefox/',
+ 'https://www.youtube.com/user/firefoxchannel',
+ 'https://www.tiktok.com/@firefox',
+ ]);
+ expect(await hrefs('.c-footer-terms a')).toEqual([
+ 'https://www.mozilla.org/privacy/',
+ 'https://www.mozilla.org/privacy/websites/#cookies',
+ 'https://www.mozilla.org/about/legal/',
+ 'https://www.mozilla.org/about/legal/fraud-report/',
+ 'https://github.com/mozilla/ensemble',
+ ]);
+ });
+
+ test('Footer links open in a new tab', async ({ page }) => {
+ const links = page.locator('footer a');
+ await expect(links.first()).toHaveAttribute('target', '_blank');
+ expect(await links.evaluateAll(els => els.every(el => el.target === '_blank' && el.rel === 'noopener noreferrer'))).toBe(true);
+ });
+});
diff --git a/tests/playwright/specs/links.spec.js b/tests/playwright/specs/links.spec.js
new file mode 100644
index 00000000..456d03f4
--- /dev/null
+++ b/tests/playwright/specs/links.spec.js
@@ -0,0 +1,34 @@
+const { test, expect } = require('../fixtureData');
+
+
+test.beforeEach(async ({ page }) => {
+ await page.goto('/');
+});
+
+test('Body links use the accessible link colour and change on hover', async ({ page }) => {
+ const link = page.locator('main a').first();
+
+ await expect(link).toHaveCSS('color', 'rgb(0, 96, 223)');
+ await expect(link).toHaveCSS('text-decoration-line', 'none');
+
+ await link.hover();
+ await expect(link).toHaveCSS('color', 'rgb(2, 80, 187)');
+ await expect(link).toHaveCSS('text-decoration-line', 'underline');
+});
+
+test('Header navigation links are underlined on hover', async ({ page }) => {
+ const link = page.locator('#main-navigation a').first();
+
+ await expect(link).toHaveCSS('text-decoration-line', 'none');
+ await link.hover();
+ await expect(link).toHaveCSS('text-decoration-line', 'underline');
+});
+
+test('Next button uses the Flare primary button colours', async ({ page }) => {
+ const link = page.locator('.next-button a');
+
+ await expect(link).toHaveCSS('background-color', 'rgb(117, 67, 227)');
+ await expect(link).toHaveCSS('color', 'rgb(255, 255, 255)');
+ await link.hover();
+ await expect(link).toHaveCSS('background-color', 'rgb(97, 50, 188)');
+});