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

Added Dynamic Design for 404.html #77

Open
wants to merge 4 commits into
base: master
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
40 changes: 14 additions & 26 deletions public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,18 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HackNITR: Page Not Found</title>

<style media="screen">
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px 16px; border-radius: 3px; }
#message h3 { color: #888; font-weight: normal; font-size: 16px; margin: 16px 0 12px; }
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
@media (max-width: 600px) {
body, #message { margin-top: 0; background: white; box-shadow: none; }
body { border-top: 16px solid #ffa100; }
}
</style>
</head>
<body>
<div id="message">
<h2>404</h2>
<h1>Page Not Found</h1>
<p>The specified file was not found on this website. Please check the URL for mistakes and try again.</p>
<h3>Why am I seeing this?</h3>
<p>This page was generated by the Firebase Command-Line Interface. To modify it, edit the <code>404.html</code> file in your project's configured <code>public</code> directory.</p>
</div>
</body>
<link rel="stylesheet" href="css/404.css">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@1,500&family=Secular+One&display=swap" rel="stylesheet">
<body>
<div class="container">
<h2>Oops! Page not Found</h2>
<h1>404</h1>
<p>We can't find page you're looking for. The specified file was not found on this website. Please check the URL for mistakes and try again.</p>
<a href="index.html">Go Back to Home</a>
<h3>Why am I seeing this?</h3>
<p><b>This page was generated by the Firebase Command-Line Interface.
<br> modify it, edit the 404.html file in your project's configured public directory.</b></p>
</div>
</body>
</html>

40 changes: 40 additions & 0 deletions public/css/404.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
body{
margin: 0;
padding: 0;
font-family: 'Montserrat', sans-serif;
min-height: 100vh;
background-image: linear-gradient(125deg, #00ffff , #40ff00);

}

.container{
width: 100%;
position: absolute;
top: 50%;
transform: translateY(-50%);
text-align: center;
color: #000000;
}
.container h1{
font-size: 180px;
margin: 0;
font-weight: 900;
letter-spacing: 25px;
background: url(https://png.pngtree.com/thumb_back/fw800/background/20190528/pngtree-gray-dark-marble-texture-image-background-image_115541.jpg) center no-repeat;
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
}
.container a{
text-decoration: none;
background: #ff4000;
color: #fff;
padding: 12px 24px;
display: inline-block;
border-radius: 25px;
font-size: 14px;
text-transform: uppercase;
transition: 0.5s;
}
.container a:hover{
background: wheat;
}