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 404 page to Help Site #10344

Merged
merged 6 commits into from
Aug 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
27 changes: 5 additions & 22 deletions docs/404.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,9 @@
---
permalink: /404.html
layout: default
lhn_content: '404'
---

<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}

h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>

<div class="container">
<h1>404</h1>

<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
<div class="centered-content with-lhn">
<img id="icon" src="/assets/images/circle-hourglass.svg" />
<strong>Hmm it's not here...</strong>
<div>That page is nowhere to be found.</div>
</div>
6 changes: 4 additions & 2 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@
<i class="fa-solid fa-angle-left icon"></i>
<div class="link">Back</div>
</div>
<span class="in-this-article">In this article</span>
<div class="article-toc"></div>
{% if page.lhn_content == nil %}
<span class="in-this-article">In this article</span>
<div class="article-toc"></div>
{% endif %}
{% endcase %}
</div>

Expand Down
72 changes: 40 additions & 32 deletions docs/_sass/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,15 @@ textarea {
color: $color-dark;
}

#logo {
width: 240px;
padding: 80px;
display: block;
margin-left: auto;
margin-right: auto;
align-content: center;
}

#lhn {
width: 420px;
height: 100%;
Expand Down Expand Up @@ -429,20 +438,40 @@ textarea {
}
}

.coming-soon {
overflow: hidden;
.centered-content {
width: 500px;
height: 240px;
text-align: center;
font-size: larger;
position: absolute;
top: calc((100vh - 240px)/2);
right: calc((100vw - 500px)/2);

strong {
font-size: 20px;
&.with-lhn {
right: calc((100vw - 420px - 500px)/2);
}

#logo {
width: 240px;
padding: 80px;
display: block;
margin-left: auto;
margin-right: auto;
align-content: center;
@media screen and (max-width: 1024px) {
&.with-lhn {
right: calc((100vw - 320px - 500px)/2);
}
}

@media screen and (max-width: 800px) {
width: 380px;
right: calc((100vw - 380px)/2);

&.with-lhn {
right: calc((100vw - 380px)/2);
}
}

div {
margin-top: 8px;
}

strong {
font-size: 20px;
}

#icon {
Expand All @@ -452,25 +481,4 @@ textarea {
margin-left: auto;
margin-right: auto;
}

#centered-content {
width: 500px;
height: 250px;
display: block;
margin-left: auto;
margin-right: auto;
align-content: center;
text-align: center;
padding-top: 22.5vh;
font-size: larger;

@media screen and (max-width: 800px) {
width: 380px;
padding-top: 15vh;
}

div {
margin-top: 8px;
}
}
}
13 changes: 5 additions & 8 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
lhn_content: 'coming_soon'
---

<div class="coming-soon">
<img id="logo" src="/assets/images/expensify-help.svg" />
<img id="logo" src="/assets/images/expensify-help.svg" />

<div id="centered-content">
<!-- <div id="icon"></div> -->
<img id="icon" src="/assets/images/circle-hourglass.svg" />
<strong>Coming soon</strong>
<div>Looking for our old help site? Check it out <a href="https://community.expensify.com/">here</a>.</div>
</div>
<div class="centered-content">
<img id="icon" src="/assets/images/circle-hourglass.svg" />
<strong>Coming soon</strong>
<div>Looking for our old help site? Check it out <a href="https://community.expensify.com/">here</a>.</div>
</div>