Skip to content

Commit

Permalink
chore: created a temporary downtime page
Browse files Browse the repository at this point in the history
  • Loading branch information
nickytonline committed Oct 8, 2024
1 parent 31cd4f9 commit 70c057a
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 116 deletions.
119 changes: 3 additions & 116 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,5 @@
const millionLint = process.env.USE_MILLION_LINT ? require("@million/lint").next() : (config) => config;

const interests = [
"javascript",
"python",
"java",
"typescript",
"angular",
"csharp",
"cpp",
"php",
"c",
"ruby",
"ai",
"ml",
"react",
"golang",
"rust",
"svelte",
"vue",
"kubernetes",
"clojure",
"kotlin",
"android",
];

/** @type {import('next').NextConfig} */
module.exports = millionLint({
productionBrowserSourceMaps: true,
Expand Down Expand Up @@ -58,98 +34,9 @@ module.exports = millionLint({
async redirects() {
return [
{
source: "/user/:username/highlights",
destination: "/user/:username?tab=highlights",
permanent: true,
},
{
source: "/user/:username/contributions",
destination: "/user/:username?tab=contributions",
permanent: true,
},
{
source: "/user/:username/recommendations",
destination: "/user/:username?tab=recommendations",
permanent: true,
},
{
source: "/user/:username/requests",
destination: "/user/:username?tab=requests",
permanent: true,
},
{
source: "/lists/:listId",
destination: "/lists/:listId/overview",
permanent: true,
},
{
source: "/lists/:listId/contributors",
destination: "/lists/:listId/overview",
permanent: true,
},
{
source: "/hub/lists/find",
destination: "/",
permanent: true,
},
{
source: "/hub/lists/new",
destination: "/",
permanent: true,
},
{
source: "/hub/lists",
destination: "/",
permanent: true,
},
{
source: "/hub/insights/:insightId/accept",
destination: "/",
permanent: true,
},
{
source: "/hub/insights/:insightId/edit",
destination: "/",
permanent: true,
},
{
source: "/hub/insights",
destination: "/",
permanent: true,
},
{
source: "/hub/insights/new",
destination: "/workspaces/new",
permanent: true,
},
...interests.map((interest) => {
return {
source: `/${interest}/:tool(dashboard|reports|contributors|activity)`,
destination: `/explore`,
permanent: true,
};
}),
{
source: `/explore/topic/:slug*`,
destination: `/explore`,
permanent: true,
},
...interests.map((interest) => {
return {
source: `/${interest}`,
destination: `/explore`,
permanent: true,
};
}),
{
source: "/star-search/waitlist",
destination: "/star-search",
permanent: true,
},
{
source: "/user/:user((?!settings|notifications$).*)",
destination: "/u/:user",
permanent: true,
source: "/:path((?!downtime).*)",
destination: "/downtime.html",
permanent: false,
},
];
},
Expand Down
62 changes: 62 additions & 0 deletions public/downtime.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html>

<head>
<title>OpenSauced Pizza-CLI</title>
<style>
body {
margin: 1rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background: black;
color: white;
}

.container {
display: grid;
place-content: center;
height: calc(100vh - 5.5rem);
overflow: hidden;
font-size: 1.5rem;
}

.doodles {
position: absolute;
display: none;

@media (min-width: 1280px) {
display: block;
}
}

.doodles--left {
top: 12rem;
left: 0;
}

.doodles--right {
top: 9rem;
right: 0;
}
</style>
</head>

<body>
<a href="https://opensauced.pizza">
<img height="24" width="" 140" class="opensauced-logo"
src="https://opensauced.pizza/_next/static/media/brandLogo.4259030a.svg">
</a>
<div class="doodles doodles--left"><img alt="Doodles" loading="lazy" width="230" height="694" decoding="async"
data-nimg="1" style="color:transparent" src="https://opensauced.pizza/_next/static/media/stroke_l_4.6c7a61fa.svg">
</div>
<div class="doodles doodles--right"><img alt="Doodles" loading="lazy" width="303" height="620" decoding="async"
data-nimg="1" style="color:transparent" src="https://opensauced.pizza/_next/static/media/stroke_r_3.49fc05fd.svg">
</div>
<div class="container">
<h1 class="title">The pizza oven is down for maintenance</h1>
<p style="text-align: center;color: #ff5500">
We'll be back online as soon as possible. Thanks for your patience.
</p>
</div>
</body>

</html>

0 comments on commit 70c057a

Please sign in to comment.