-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
106 lines (96 loc) · 2.44 KB
/
404.html
File metadata and controls
106 lines (96 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>CodeSnap</title>
<link rel="stylesheet" href="static/main.css" />
<link rel="stylesheet" href="static/home.css" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
background-color: #f9f9f9;
margin: 0;
padding: 0;
}
.home-button {
display: inline-block;
margin-top: 60px;
padding: 14px 28px;
font-size: 16px;
color: #333;
background-color: #fff;
border: 2px solid #e0e0e0;
border-radius: 12px;
text-decoration: none;
font-weight: 500;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
transition: all 0.25s ease;
}
.home-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
header.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 32px;
background-color: #ffffff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.logo img {
height: 40px;
margin-right: 10px;
}
.logo span {
font-size: 20px;
font-weight: 600;
color: #333;
}
.nav a {
margin-left: 20px;
text-decoration: none;
color: #555;
font-weight: 500;
}
.nav a:hover {
color: #000;
}
main {
text-align: center;
padding: 60px 20px;
}
</style>
</head>
<body>
<header class="navbar">
<div class="logo">
<img src="https://u.cubeupload.com/UploadMaster/1000003131.png" alt="CodeSnap Logo" />
<span>CodeSnap</span>
</div>
<nav class="nav">
<a href="projects/editor.html">Create</a>
<a href="/about">About</a>
<a href="/blog">Blog</a>
<a href="#" id="signupBtn">Sign Up</a>
<a href="#" id="loginBtn">Login</a>
</nav>
</header>
<main>
<h1>404 - Page Not Found! </h1>
<a href="/" class="home-button">Go to Home</a>
</main>
<script>
window.onload = function() {
const url = window.location.href;
const local = window.location.pathname;
if (local.includes('projects')) {
let last_part = url.substring(url.lastIndexOf('/') + 1);
window.location.href = `https://codesnap-org.github.io/projects/#${last_part}`;
}
}
</script>
</body>
</html>