Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a static downtime page #442

Merged
merged 2 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added static/downtime/assets/fonts/OpenSans-Italic.ttf
Binary file not shown.
Binary file added static/downtime/assets/fonts/OpenSans-Light.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
78 changes: 78 additions & 0 deletions static/downtime/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<html>
<head>
<title>Thunderbird Appointment will be right back</title>
<style>
@font-face {
font-family: 'Open Sans';
src: url('./assets/fonts/OpenSans-LightItalic.ttf');
font-weight: 300;
font-style: italic;
}

@font-face {
font-family: 'Open Sans';
src: url('./assets/fonts/OpenSans-Light.ttf');
font-weight: 300;
}

@font-face {
font-family: 'Open Sans';
src: url('./assets/fonts/OpenSans-Italic.ttf');
font-weight: 400;
font-style: italic;
}

@font-face {
font-family: 'Open Sans';
src: url('./assets/fonts/OpenSans-Regular.ttf');
font-weight: 400;
}

svg {
width: 448px;
}

body {
--txt: rgb(17, 24, 39);
--bg: rgb(255, 255, 255);
display: flex;
flex-direction: column;

color: var(--txt);
background-color: var(--bg);
margin: auto;
justify-content: center;
align-items: center;
text-align: center;
font-family: Open Sans, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a height: 100vh; here to vertically center too?


h1, h2 {
font-weight: lighter;
}

@media (prefers-color-scheme: dark) {
body {
--txt: rgb(243, 244, 246);
--bg: rgb(55, 65, 81);
}
}
</style>
</head>
<body>
<svg width="791" height="356" viewBox="0 0 791 356" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M57.1435 0C167.022 0 212.384 2.95128 333.259 185.272C333.259 185.272 398.436 273.437 477.538 268.957C477.538 268.957 531.771 280.868 580.062 167.351C628.405 53.7807 667.947 -8.97825 791 7.4493C791 7.4493 733.874 58.2431 725.805 79.9154C717.754 101.588 586.911 262.965 515.39 274.166C525.881 277.153 540.555 280.868 565.388 276.388C565.388 276.388 591.024 277.917 595.067 290.593C569.815 288.371 486.321 313.777 468.755 327.235C451.206 340.729 390.96 376.642 342.687 340C353.004 338.454 410.827 327.591 437.578 301.296C392.581 301.829 317.906 286.878 262.191 233.844C206.581 180.792 71.7823 20.89 0 8.94271L57.1435 0Z" fill="#2dd4bf"/>
<path d="M57.1435 0C167.022 0 212.384 2.95128 333.259 185.272C333.259 185.272 398.436 273.437 477.538 268.957C477.538 268.957 531.771 280.868 580.062 167.351C628.405 53.7807 667.947 -8.97825 791 7.4493C791 7.4493 733.874 58.2431 725.805 79.9154C717.754 101.588 586.911 262.965 515.39 274.166C525.881 277.153 540.555 280.868 565.388 276.388C565.388 276.388 591.024 277.917 595.067 290.593C569.815 288.371 486.321 313.777 468.755 327.235C451.206 340.729 390.96 376.642 342.687 340C353.004 338.454 410.827 327.591 437.578 301.296C392.581 301.829 317.906 286.878 262.191 233.844C206.581 180.792 71.7823 20.89 0 8.94271L57.1435 0Z" fill="url(#paint0_linear_128_30)"/>
<defs>
<linearGradient id="paint0_linear_128_30" x1="63.28" y1="-4.64767e-05" x2="719.852" y2="355.923" gradientUnits="userSpaceOnUse">
<stop stop-color="#2dd4bf"/>
<stop offset="1" stop-color="#0284c7"/>
</linearGradient>
</defs>
</svg>
<div>
<h1>Thunderbird Appointment is undergoing some maintenance.</h1>
<h2>We'll be back before you know it!</h2>
</div>
</body>
</html>