Skip to content

Commit

Permalink
chore(404): adjust pathing and load font for 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
castastrophe committed Nov 20, 2024
1 parent ee0c51d commit ff4fe4c
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .storybook/assets/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
<meta charset="utf-8" />
<title>Page not found</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="icon" type="image/svg+xml" href="./favicon.svg">
<link rel="icon" type="image/svg+xml" href="https://opensource.adobe.com/spectrum-css/favicon.svg">
<!-- This preconnect opens the connection for typekit to more quickly load fonts -->
<link rel="preconnect" href="https://use.typekit.net" crossorigin />
<!-- This is the script that attempts to pre-load the typekit fonts -->
<script src="https://use.typekit.net/rok6rmo.js" id="typekit" type="text/javascript" async></script>

<style>
body {
--spectrum-background-layer-1-color: rgb(253, 253, 253);

margin: 0;
padding: 0;
block-size: 100vh;
background-color: var(--spectrum-background-layer-1-color);
background-color: rgb(253, 253, 253);
}

header {
Expand All @@ -22,9 +25,7 @@
}

main {
--spectrum-neutral-content-color-default: rgb(34, 34, 34);

color: var(--spectrum-neutral-content-color-default);
color: rgb(34, 34, 34);
display: flex;
padding-inline: 20px;
padding-block: 4rem;
Expand All @@ -41,7 +42,7 @@
}

h1, h2, p {
--spectrum-sans-font-family-stack: "Nunito Sans",-apple-system,".SFNSText-Regular","San Francisco",BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;
--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;

-webkit-font-smoothing: antialiased;
font-family: var(--spectrum-sans-font-family-stack);
Expand All @@ -54,13 +55,13 @@
}

h2 {
font-size: 24px;
font-size: 48px;
margin-block: 20px 8px;
padding-block-end: 4px;
}

p {
font-size: 14px;
font-size: 18px;
line-height: 24px;
margin-block: 16px;
}
Expand Down Expand Up @@ -96,9 +97,9 @@
<main>
<h1>404: Page not found</h1>
<section>
<img src="/spectrum_illustration_2x.png" alt="">
<img src="https://opensource.adobe.com/spectrum-css/spectrum_illustration_2x.png" alt="An abstract illustrated image with a whimsical color palette">
<h2>It's not you. It's us.</h2>
<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>
<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>
<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!
</p>
</section>
Expand Down

0 comments on commit ff4fe4c

Please sign in to comment.