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

Refactoring the 404 page #674

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
63 changes: 42 additions & 21 deletions 404.css
Original file line number Diff line number Diff line change
@@ -1,25 +1,46 @@
.page_404{ padding:40px 0; background:#fff; font-family: 'Arvo', serif;
*{
box-sizing: border-box;
margin: 0;
padding: 0;
}

.page_404 img{ width:100%;}

.four_zero_four_bg{
background-image: url(https://cdn.dribbble.com/users/285475/screenshots/2083086/dribbble_1.gif);
height: 400px;
background-position: center;
body{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Donot make changes to body, make changes only to classnames. or id

height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
font-family:monospace;
color: rgb(56,56,56);
}
.wrapper{
display:flex;
align-items:center;
flex-direction: column;

.four_zero_four_bg h1{
font-size:80px;
}
.four_zero_four_bg h3{
font-size:80px;
}
}
.wrapper h1{
font-size: 3rem;
margin-top:20px;
margin-bottom:20px;
}
.wrapper .btn{
background-color:rgb(247,184,1);
padding:8px;
font-size:1.5rem;
border-radius: 5px;
text-decoration: none;
color:#fff
}
.wrapper .btn:hover{
background-color:#fff;
color:rgb(247,184,1);
padding:6px;
border:2px solid rgb(247,184,1);
}
@media only screen and (max-width:700px){
body{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Donot make changes to body , as this might affect other pages later on !

position:absolute;
margin: 50px 0;
}

.link_404{
color: #fff!important;
padding: 10px 20px;
background: #39ac31;
margin: 20px 0;
display: inline-block;}
.contant_box_404{ margin-top:-50px;}
}
76 changes: 8 additions & 68 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,78 +10,18 @@
content="CodeIN Community is the Community of Coding Enthusiasts
Join Us for Hackathons, Technical Events, Open Source, Internship Opportunities and various upcoming opportunities to learn different technologies.">
<link rel="shortcut icon" href="./assets/img/logo.png" type="image/x-png">
<link rel="stylesheet" href="404.css">
<style>
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@600&display=swap");
<link rel="stylesheet" href="./404.css">

body {
text-align: center;
font-family: "Open Sans", sans-serif;
}

h1 {
color: #f63854;
font-size: 10em;
margin: 15vh auto 0vh auto;
}

h3 {
font-size: 2.2em;
}

a {
text-decoration: none;
font-size: 1.3em;
color: royalblue;
}

a:hover {
color: #f63854;

}

@media only screen and (min-width: 600px) {
h1 {
font-size: 15em;
}

h3 {
font-size: 3em;
}

a {
font-size: 1.5em;
}
}
</style>
</head>

<body>
<section class="page_404">
<div class="container">
<div class="row">
<div class="col-sm-12 ">
<div class="col-sm-10 col-sm-offset-1 text-center">
<div class="four_zero_four_bg">
<h1 class="text-center ">404</h1>


</div>

<div class="contant_box_404">
<h3 class="h2">
Look like you're lost
</h3>

<p>the page you are looking for not avaible!</p>

<a href="https://codeincommunity.tech/" class="link_404">Go to Home</a>
</div>
</div>
</div>
</div>
</div>
</section>
<img src="./404.png" alt="">
<div class="wrapper">
<h1>Page not found!</h1>
<a href="/" class="btn">Go to Home?</a>

</div>

</body>

</html>
Binary file added 404.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ <h3>Tech Team Member</h3>
<a href="https://github.com/ChoudharyTara

" target="_blank"><i class="fab fa-github"></i></a>
<a href="https://www.linkedin.com/in/tara-choudhary-257156219
<a href="https://www.linkedin.com/in/tara-choudhary00/

" target="_blank"><i class="fab fa-linkedin"></i></a>
</div>
Expand Down