Skip to content

Commit

Permalink
remove inline css from 404
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Robinson <[email protected]>
  • Loading branch information
merobi-hub committed Aug 14, 2023
1 parent c9b5b36 commit 3023736
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 6 deletions.
76 changes: 76 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2221,6 +2221,30 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "port",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "host",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "polyfill",
"description": null,
Expand Down Expand Up @@ -7743,6 +7767,26 @@
},
"defaultValue": null
},
{
"name": "port",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "IntQueryOperatorInput",
"ofType": null
},
"defaultValue": null
},
{
"name": "host",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "StringQueryOperatorInput",
"ofType": null
},
"defaultValue": null
},
{
"name": "polyfill",
"description": null,
Expand Down Expand Up @@ -17529,6 +17573,18 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "port",
"description": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "host",
"description": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "polyfill",
"description": null,
Expand Down Expand Up @@ -18384,6 +18440,26 @@
},
"defaultValue": null
},
{
"name": "port",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "IntQueryOperatorInput",
"ofType": null
},
"defaultValue": null
},
{
"name": "host",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "StringQueryOperatorInput",
"ofType": null
},
"defaultValue": null
},
{
"name": "polyfill",
"description": null,
Expand Down
12 changes: 6 additions & 6 deletions src/pages/404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ export default ({ location }: PageProps<{}, {}>) => {
}}
location={location}
>
<div className="container mx-auto py-12">
<div className="title py-12 text-center">
<h2 className="text-7xl text-color-1">
4<span className="text-primary">0</span>4
<div className="not-found-div">
<div className="not-found-title-div">
<h2 className="not-found-title">
4<span className="not-found-title-text">0</span>4
</h2>
</div>
<div className="pb-20 text-center">
<div className="not-found-msg">
<p>Oops! That page does not exist. <span role="img" aria-label="Sad face">😞</span></p>
<p>
<button onClick={() => {
if(window.history) window.history.back();
}} className="text-link">Go Back?</button>
}} className="not-found-btn">Go Back?</button>
</p>
</div>
</div>
Expand Down
26 changes: 26 additions & 0 deletions src/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -467,4 +467,30 @@ h1, h2, h3, h4, h5, h6 {

.blog-div-children {
@apply flex flex-wrap;
}

/* 404 */

.not-found-div {
@apply container mx-auto py-12;
}

.not-found-title-div {
@apply title py-12 text-center;
}

.not-found-title {
@apply text-7xl text-color-1;
}

.not-found-title-text {
@apply text-primary;
}

.not-found-msg {
@apply pb-20 text-center;
}

.not-found-btn {
@apply text-link;
}

0 comments on commit 3023736

Please sign in to comment.