-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
96 additions
and
96 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
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
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 |
---|---|---|
|
@@ -15,108 +15,109 @@ import storachaLogoSvg from './storacha-logo.svg' | |
*/ | ||
export function buildDocument(body) { | ||
return /* html */ ` | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Storacha Email Validation</title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<script async src="https://js.stripe.com/v3/pricing-table.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@acab/reset.css"> | ||
<link href="https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,100..900;1,100..900&family=Fira+Code:[email protected]&display=swap" rel="stylesheet"> | ||
<style> | ||
:root { | ||
--hot-red: #E91315; | ||
--hot-red-light: #EFE3F3; | ||
--hot-yellow: #FFC83F; | ||
--hot-yellow-light: #FFE4AE; | ||
--hot-blue: #0176CE; | ||
--hot-blue-light: #BDE0FF; | ||
} | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Storacha Email Validation</title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<script async src="https://js.stripe.com/v3/pricing-table.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@acab/reset.css"> | ||
<link href="https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,100..900;1,100..900&family=Fira+Code:[email protected]&display=swap" rel="stylesheet"> | ||
<style> | ||
:root { | ||
--hot-red: #E91315; | ||
--hot-red-light: #EFE3F3; | ||
--hot-yellow: #FFC83F; | ||
--hot-yellow-light: #FFE4AE; | ||
--hot-blue: #0176CE; | ||
--hot-blue-light: #BDE0FF; | ||
} | ||
body { | ||
color: black; | ||
background-color: var(--hot-red-light); | ||
font-family: 'Epilogue', sans-serif; | ||
max-width: 70rem; | ||
margin: 0 auto; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
min-height: 100vh; | ||
gap: 1.5rem; | ||
} | ||
body { | ||
color: black; | ||
background-color: var(--hot-red-light); | ||
font-family: 'Epilogue', sans-serif; | ||
max-width: 70rem; | ||
margin: 0 auto; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
min-height: 100vh; | ||
gap: 1.5rem; | ||
} | ||
h1 { | ||
color: var(--hot-red); | ||
text-transform: uppercase; | ||
letter-spacing: 0.05em; | ||
font-size: 1.5rem; | ||
line-height: 2rem; | ||
} | ||
h1 { | ||
color: var(--hot-red); | ||
text-transform: uppercase; | ||
letter-spacing: 0.05em; | ||
font-size: 1.5rem; | ||
line-height: 2rem; | ||
} | ||
h5 { | ||
color: var(--hot-red); | ||
font-size: 1rem; | ||
line-height: 1.5rem; | ||
margin-top: 1rem; | ||
} | ||
h5 { | ||
color: var(--hot-red); | ||
font-size: 1rem; | ||
line-height: 1.5rem; | ||
margin-top: 1rem; | ||
} | ||
header { | ||
padding: 1rem 3rem 0; | ||
} | ||
header { | ||
padding: 1rem 3rem 0; | ||
} | ||
main { | ||
padding: 0 3rem; | ||
text-align: center; | ||
width: 100%; | ||
} | ||
main { | ||
padding: 0 3rem; | ||
text-align: center; | ||
width: 100%; | ||
} | ||
code { | ||
font-family: 'Fira Code'; | ||
font-weight: 500; | ||
} | ||
code { | ||
font-family: 'Fira Code'; | ||
font-weight: 500; | ||
} | ||
pre > code { | ||
padding: 0.25rem 0; | ||
display: block; | ||
overflow-x: auto; | ||
} | ||
pre > code { | ||
padding: 0.25rem 0; | ||
display: block; | ||
overflow-x: auto; | ||
} | ||
.box { | ||
border: 1px solid var(--hot-red); | ||
border-radius: 1rem; | ||
background-color: #FFFFFF; | ||
padding: 1.25rem; | ||
margin-top: 1rem; | ||
.box { | ||
border: 1px solid var(--hot-red); | ||
border-radius: 1rem; | ||
background-color: #FFFFFF; | ||
padding: 1.25rem; | ||
margin-top: 1rem; | ||
font-size: 0.875rem; | ||
line-height: 1.25rem; | ||
} | ||
.box > p { | ||
margin-bottom: 10px; | ||
} | ||
.box > p:last-child { | ||
margin-bottom: 0; | ||
} | ||
font-size: 0.875rem; | ||
line-height: 1.25rem; | ||
} | ||
.box > p { | ||
margin-bottom: 10px; | ||
} | ||
.box > p:last-child { | ||
margin-bottom: 0; | ||
} | ||
button { | ||
background-color: var(--hot-yellow-light); | ||
color: var(--hot-red); | ||
font-weight: 500; | ||
border: none; | ||
border-radius: 0.25rem; | ||
padding: 0.5rem 1rem; | ||
margin-top: 1rem; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
${body} | ||
</body> | ||
</html>` | ||
button { | ||
background-color: var(--hot-yellow-light); | ||
color: var(--hot-red); | ||
font-weight: 500; | ||
border: none; | ||
border-radius: 0.25rem; | ||
padding: 0.5rem 1rem; | ||
margin-top: 1rem; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
${body} | ||
</body> | ||
</html> | ||
` | ||
} | ||
|
||
export class HtmlResponse extends Response { | ||
|