Skip to content

Commit

Permalink
Atom blog
Browse files Browse the repository at this point in the history
  • Loading branch information
atomjoy committed Oct 2, 2024
1 parent aa5f4d5 commit 86e0042
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 4 deletions.
Binary file modified atom.zip
Binary file not shown.
11 changes: 10 additions & 1 deletion atom/404.php
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
404 Error Page
<?php
get_header();

get_template_part('include/body', 'header');

get_template_part('include/body', 'error-404');

get_template_part('include/body', 'footer');

get_footer();
37 changes: 35 additions & 2 deletions atom/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ a {
float: right;
width: auto;
height: auto;
padding: 10px;
padding: 15px;
}

.top-nav {
Expand Down Expand Up @@ -184,7 +184,7 @@ a {
text-transform: uppercase;
font-weight: 600;
text-wrap: nowrap;
padding: 13px 25px;
padding: 13px 5px;
margin: 5px;
color: var(--color-text-primary);
border-radius: 50px;
Expand Down Expand Up @@ -1763,6 +1763,38 @@ footer {
border-radius: var(--wp-radius-btn);
}

.error404-title {
float: left;
width: 100%;
margin-top: 100px;
text-align: center;
font-weight: 700;
}

.error404-nr {
float: left;
width: 100%;
font-size: 100px;
text-align: center;
font-weight: 900;
color: #f20;
}

.error404-text {
float: left;
width: 100%;
margin-bottom: 200px;
text-align: center;
font-weight: 500;
}

@supports (-webkit-text-stroke: 3px #f20) {
.error404-nr {
-webkit-text-fill-color: white;
-webkit-text-stroke: 3px #f20;
}
}

@media all and (max-width: 1100px) {
.flex-container .atom-rightbar,
.flex-container .atom-rightbar {
Expand All @@ -1788,6 +1820,7 @@ footer {
}
.top-logo {
text-align: start;
margin-left: 20px;
}
.top-menu {
padding: 10px 10px;
Expand Down
2 changes: 1 addition & 1 deletion atom/functions/change-title.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function change_title($title) {
echo ' | ';
bloginfo('name');
} else if (is_tag()) {
echo '#';
echo 'Tag #';
single_tag_title();
echo ' | ';
bloginfo('name');
Expand Down
3 changes: 3 additions & 0 deletions atom/include/body-error-404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1 class="error404-title"><?php echo __('Error Page'); ?></h1>
<div class="error404-nr animate__animated animate__bounce"><?php echo __('404'); ?></div>
<p class="error404-text"><?php echo __('Oops! The page you are looking for does not exist.'); ?></p>

0 comments on commit 86e0042

Please sign in to comment.