Skip to content

Commit

Permalink
Made 404 page fully responsive (#1451)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanumalaAkhilendra authored Jan 12, 2025
1 parent db5d5dc commit 1fa0ec2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
4 changes: 2 additions & 2 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@
</nav>
</header>

<section class="comp-section" id="404">
<section class="comp-section error-section">
<div class="compcontainer">
<div class="logo">
<img src="./assets/images/404.gif" alt="Logo" style="width: 640px !important; height: 450px !important; object-fit: cover; border-radius: 25px;">
<img src="./assets/images/404.gif" alt="Logo" id="error-img">
</div>
<a href="index.html">
<button class="started" style="margin-top: 32px;">Go Back Home</button>
Expand Down
32 changes: 22 additions & 10 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,13 @@ section {
}

.comp-section {
height: 100vh;
height: 80vh;
display: grid;
color: var(--secondary);
justify-content: center;
align-items: center;
text-align: center;
z-index: 2;
}

.comp-section .compcontainer .logo img {
Expand Down Expand Up @@ -556,15 +557,6 @@ section {
background: #b1c2d4;
}

.comp-section {
height: 80vh;
display: grid;
color: var(--secondary);
justify-content: center;
align-items: center;
text-align: center;
z-index: 2;
}

/* Container Section Css */

Expand Down Expand Up @@ -1018,6 +1010,19 @@ footer {
text-align: center;
}

/* Error Page Css */

.error-section {
height: 100vh;
}

#error-img {
width: 640px;
height: 450px;
object-fit: cover;
border-radius: 25px;
}

/* Media queries for responsiveness */

@media (min-width: 769px) and (max-width: 855px) {
Expand All @@ -1033,6 +1038,13 @@ footer {
height: 6rem;
width: 50rem;
}

#error-img {
width: 90vw;
height: auto;
object-fit: cover;
border-radius: 25px;
}
}

@media (max-width: 650px) {
Expand Down

0 comments on commit 1fa0ec2

Please sign in to comment.