Skip to content

Commit

Permalink
404 page (#968)
Browse files Browse the repository at this point in the history
* add capy-meme to assets

* update 404 error page

* update 404 error page

---------

Co-authored-by: Karnikaa Velumani <60043611+karnikaavelumani@users.noreply.github.com>
  • Loading branch information
noahbei and karnikaavelumani committed Nov 17, 2023
1 parent 0987674 commit eacd144
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 17 deletions.
61 changes: 44 additions & 17 deletions src/routes/+error.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,65 @@

<section title={$page.error?.message}>
<div class="container">
<div>
<em>404</em>
<h1>Frank can't find where you're going!</h1>
<Button text={'Return to Home'} link={'/'} />
<div class="content-container">
<div class="text-container">
<h1>404</h1>
<h2>Can't find where you're going?</h2>
<h2 class="gap">Head home!</h2>
<Button text={'Return to Home'} link={'/'} />
</div>
<img src="/assets/svg/capy-meme.svg" alt="404 - Page Not Found" />
</div>
<img src="/assets/png/lost-frank.png" alt="404 - Page Not Found" />
</div>
</section>

<Footer />

<style>
.container {
min-height: 100vh;
display: flex;
gap: 2rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding-top: 100px;
height: 700px;
text-align: center;
padding-top: 100px;
}
em {
font-size: 40px;
h1 {
font-size: 100px;
text-shadow: var(--acm-blue) 2px 2px;
line-height: 1;
}
h2 {
font-size: 1.2rem;
}
.gap {
margin-bottom: 20px;
}
section img {
width: 100%;
max-width: 1000px;
max-width: 80%;
min-width: 230px;
height: auto;
}
.text-container {
min-width: 205px;
}
.content-container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 3rem;
width: 80%;
height: 80%;
margin: auto;
}
/* min-width: 480px */
@media screen and (min-width: 550px) {
.content-container {
flex-direction: row-reverse;
}
}
</style>
Loading

0 comments on commit eacd144

Please sign in to comment.