-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(storybook): add 404 page (#3386)
* chore: adds custom 404.html page to .storybook/assets - styles for this 404 page mimic some of the styles found on the guides pages and the landing page. - this file is in the assets folder because it gets copied properly to the dist folder on build
- Loading branch information
1 parent
13bb022
commit 0f494bd
Showing
1 changed file
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<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"> | ||
<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); | ||
} | ||
|
||
header { | ||
max-width: 1000px; | ||
margin: auto; | ||
padding-block-start: 4rem; | ||
} | ||
|
||
main { | ||
--spectrum-neutral-content-color-default: rgb(34, 34, 34); | ||
|
||
color: var(--spectrum-neutral-content-color-default); | ||
display: flex; | ||
padding-inline: 20px; | ||
padding-block: 4rem; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
gap: 60px; | ||
max-width: 1000px; | ||
margin: auto; | ||
} | ||
|
||
img { | ||
max-inline-size: 100%; | ||
margin-block: -20px 20px; | ||
} | ||
|
||
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; | ||
|
||
-webkit-font-smoothing: antialiased; | ||
font-family: var(--spectrum-sans-font-family-stack); | ||
} | ||
|
||
h1 { | ||
font-weight: 700; | ||
font-size: 32px; | ||
margin-block: 20px 8px; | ||
} | ||
|
||
h2 { | ||
font-size: 24px; | ||
margin-block: 20px 8px; | ||
padding-block-end: 4px; | ||
} | ||
|
||
p { | ||
font-size: 14px; | ||
line-height: 24px; | ||
margin-block: 16px; | ||
} | ||
|
||
.spectrum-logo { | ||
display: block; | ||
} | ||
|
||
svg { | ||
block-size: auto; | ||
inline-size: 100%; | ||
max-inline-size: 150px; | ||
max-block-size: 100px; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
<header> | ||
<a class="spectrum-logo" href="https://opensource.adobe.com/spectrum-css/" aria-label="Spectrum CSS"> | ||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="spectrum-Site-logo spectrum-Icon spectrum-Icon--sizeXL" version="1.1" id="Layer_1" x="0" y="0" viewBox="0 0 190 26" focusable="false" aria-hidden="true" aria-label="Adobe logo" xml:space="preserve"> | ||
<g style="fill:#FA0F00"> | ||
<polygon points="19,0 30,0 30,26"/> | ||
<polygon points="11.1,0 0,0 0,26"/> | ||
<polygon points="15,9.6 22.1,26 17.5,26 15.4,20.8 10.2,20.8"/> | ||
</g> | ||
<text x="38" y="20" style="color: rgb(0,0,0);font-size: 22px;font-family: adobe-clean,'Source Sans Pro',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Trebuchet MS','Lucida Grande',sans-serif; font-weight: 700; height: 28px; line-height: 28.6px;"> | ||
Spectrum CSS | ||
</text> | ||
</svg> | ||
</a> | ||
</header> | ||
<main> | ||
<h1>404: Page not found</h1> | ||
<section> | ||
<img src="/spectrum_illustration_2x.png" alt=""> | ||
<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>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> | ||
</main> | ||
</body> | ||
</html> |