Skip to content

Commit

Permalink
404-page
Browse files Browse the repository at this point in the history
  • Loading branch information
dioliviers committed Mar 20, 2024
1 parent fb791ae commit c2ba42b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 28 deletions.
12 changes: 4 additions & 8 deletions themes/midia-ninja-theme/404.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
<?php get_header(); ?>
<div class="error-404">
<h1>
<span class="error"><?php _e('erro', 'ninja') ?></span>
<span class="num">404</span>
</h1>

<p><?php _e('Página não encontrada', 'ninja') ?></p>
<a href="<?= home_url() ?>" class="button"> <span><?php _e('Voltar para a página inicial', 'ninja') ?></span> </a>
<div class="gif">

</div>

<button>voltar para Home</button>
</div>
<?php get_footer(); ?>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 31 additions & 20 deletions themes/midia-ninja-theme/assets/scss/6-pages/_p-404.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,39 @@
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 145px;
margin-top: 40px;
margin-bottom: 62px;

h1 {
display: flex;
flex-direction: column;
font-weight: bold;
font-size: 300px;
margin: 100px 0 20px 0;

.error {
position: absolute;
margin-top: 43px;
font-size: 20px;
line-height: 20px;
}
.gif{
background-image: url($p_theme_assets + '/images/gif-404.gif');
background-repeat: no-repeat;
width: 300px;
height: 300px;
background-size: 100%;
align-items: center;
/* text-align: center; */
/* display: flex; */
/* flex-direction: column; */
align-content: center;
/* flex-wrap: wrap; */
background-position: center;

.num {
line-height: 300px;
}
}

p, a {
z-index: 1;
button{
color: var(--White, #FFF);
text-align: center;
font-feature-settings: 'clig' off, 'liga' off;
font-family: "DM Sans";
font-size: 14px;
font-style: normal;
font-weight: 700;
line-height: 24px; /* 171.429% */
display: inline-flex;
padding: var(--py-4, 16px) var(--px-6, 24px);
justify-content: center;
align-items: center;
gap: var(--gap-0, 0px);
border-radius: var(--Interactive-border-radius---radius-i-sm, 8px);
background: var(--DARK, #111);
}
}

0 comments on commit c2ba42b

Please sign in to comment.