Skip to content

Commit 519e38e

Browse files
committed
chore(404): adjust pathing and load font for 404 page
1 parent ee0c51d commit 519e38e

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

.storybook/assets/404.html

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@
44
<meta charset="utf-8" />
55
<title>Page not found</title>
66
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
7-
<link rel="icon" type="image/svg+xml" href="./favicon.svg">
7+
<link rel="icon" type="image/svg+xml" href="https://opensource.adobe.com/spectrum-css/favicon.svg">
8+
<!-- This preconnect opens the connection for typekit to more quickly load fonts -->
9+
<link rel="preconnect" href="https://use.typekit.net" crossorigin />
10+
<!-- This is the script that attempts to pre-load the typekit fonts -->
11+
<script src="https://use.typekit.net/rok6rmo.js" id="typekit" type="text/javascript" async></script>
12+
813
<style>
914
body {
10-
--spectrum-background-layer-1-color: rgb(253, 253, 253);
11-
1215
margin: 0;
1316
padding: 0;
1417
block-size: 100vh;
15-
background-color: var(--spectrum-background-layer-1-color);
18+
background-color: rgb(253, 253, 253);
1619
}
1720

1821
header {
@@ -22,12 +25,10 @@
2225
}
2326

2427
main {
25-
--spectrum-neutral-content-color-default: rgb(34, 34, 34);
26-
27-
color: var(--spectrum-neutral-content-color-default);
28+
color: rgb(34, 34, 34);
2829
display: flex;
2930
padding-inline: 20px;
30-
padding-block: 4rem;
31+
padding-block: 1rem 4rem;
3132
flex-direction: column;
3233
align-items: flex-start;
3334
gap: 60px;
@@ -41,26 +42,26 @@
4142
}
4243

4344
h1, h2, p {
44-
--spectrum-sans-font-family-stack: "Nunito Sans",-apple-system,".SFNSText-Regular","San Francisco",BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;
45+
--spectrum-sans-font-family-stack: "Adobe Clean", adobe-clean, "Nunito Sans",-apple-system,".SFNSText-Regular","San Francisco",BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;
4546

4647
-webkit-font-smoothing: antialiased;
4748
font-family: var(--spectrum-sans-font-family-stack);
4849
}
4950

5051
h1 {
51-
font-weight: 700;
52-
font-size: 32px;
53-
margin-block: 20px 8px;
52+
font-weight: 400;
53+
font-size: 24px;
54+
margin-block-end: 8px;
5455
}
5556

5657
h2 {
57-
font-size: 24px;
58-
margin-block: 20px 8px;
58+
font-size: 48px;
59+
margin-block-end: 8px;
5960
padding-block-end: 4px;
6061
}
6162

6263
p {
63-
font-size: 14px;
64+
font-size: 18px;
6465
line-height: 24px;
6566
margin-block: 16px;
6667
}
@@ -96,9 +97,9 @@
9697
<main>
9798
<h1>404: Page not found</h1>
9899
<section>
99-
<img src="/spectrum_illustration_2x.png" alt="">
100+
<img src="https://opensource.adobe.com/spectrum-css/spectrum_illustration_2x.png" alt="An abstract illustrated image with a whimsical color palette">
100101
<h2>It's not you. It's us.</h2>
101-
<p>We've made lots of changes to the Spectrum CSS documentation site, including consolidating all of the documentation and moving it to a single location within Storybook.</p>
102+
<p>We've made a lot of improvements to the Spectrum CSS documentation site, including consolidating all of the documentation and moving it to a single location within Storybook.</p>
102103
<p>If you're looking for information on Spectrum CSS components, let's get you back to <a href="https://opensource.adobe.com/spectrum-css/">our landing page</a>. From there, experiment with all of our components to your heart's content!
103104
</p>
104105
</section>

0 commit comments

Comments
 (0)