This repository was archived by the owner on Nov 25, 2024. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathprojects.html
More file actions
264 lines (254 loc) · 9.67 KB
/
Copy pathprojects.html
File metadata and controls
264 lines (254 loc) · 9.67 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Projects | Cody's Shack</title>
<meta name="keywords" content="front-end web developer, unblocked, games, google sites, unblocked games mom, ublocked, code, coding, programmer, development, javascript, jquery, bootstrap, sass, less, git" />
<meta property="og:title" content="Cody's Shack" />
<meta property="og:site_name" content="Cody's Shack Games" />
<meta property="og:description" content="Welcome to Cody's Shack, a lightweight, fast, and clean game site." />
<meta name="description" content="Welcome to Cody's Shack, a lightweight, fast, and clean game site." />
<meta name="author" content="Cody" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="/favicon.ico" />
<link rel="shortcut-icon" href="/favicon.ico" />
<script src="/js/main.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<style>
p {
text-align: center;
max-width: 600px;
margin: 20px auto;
}
button {
cursor: pointer;
background-color: #22c55e;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
border-radius: 20px;
margin-top: 20px;
}
.game-link {
height: 400px;
width: 300px;
text-decoration: none;
}
.game-tile {
background-color: #383333 ;
height: 330px;
width: 290px;
border-radius: 20px;
transition: transform 0.2s ease-in-out;
transition-duration: 0.4s;
}
.game-tile:hover {
transform: scale(1.03);
cursor: pointer;
}
.game-icon {
border-radius: 30px;
width: 210px;
height: 210px;
top: 5%;
position: relative;
}
.game-title {
font-size: 30px;
font-weight: bold;
color: #000000;
text-align: center;
margin: auto;
margin-top: 35px;
}
.flex-container {
display: flex;
flex-direction: row;
order: 0;
flex-grow: 0;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
.container {
padding: 10px;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.gameblur {
background-color: rgba(100, 100, 100, 0.4) !important;
-webkit-backdrop-filter: blur(5px);
backdrop-filter: blur(5px);
-webkit-box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}
.blur {
background-color: rgba(100, 100, 100, 0.4) !important;
-webkit-backdrop-filter: blur(5px);
backdrop-filter: blur(5px);
padding: 20px;
border-radius: 20px;
-webkit-box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}
.background {
background: url(https://res.cloudinary.com/mayashavin/image/upload/w_500,f_auto,q_auto/v1597000013/examples/cat_relaxing) no-repeat center;
background-size: cover;
}
.glow-on-hover {
height: 50px;
border: none;
outline: none;
color: #fff;
background: #111;
cursor: pointer;
position: relative;
z-index: 0;
border-radius: 10px;
}
.glow-on-hover:before {
content: '';
background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
position: absolute;
top: -2px;
left:-2px;
background-size: 400%;
z-index: -1;
filter: blur(5px);
width: calc(100% + 4px);
height: calc(100% + 4px);
animation: glowing 20s linear infinite;
opacity: 0;
transition: opacity .3s ease-in-out;
border-radius: 10px;
}
.glow-on-hover:active {
color: #000
}
.glow-on-hover:active:after {
background: transparent;
}
.glow-on-hover:hover:before {
opacity: 1;
}
.glow-on-hover:after {
z-index: -1;
content: '';
position: absolute;
width: 100%;
height: 100%;
background: #111;
left: 0;
top: 0;
border-radius: 10px;
}
@keyframes glowing {
0% { background-position: 0 0; }
50% { background-position: 400% 0; }
100% { background-position: 0 0; }
}
</style>
</head>
<body style="background-color: #121212; color: #ffffff; font-family: sans-serif; text-decoration: none; text-align: center; font-family: monospace;">
<nav class="navbar sticky-top navbar-expand-lg navbar-dark blur" style="position: sticky; top: 20px; margin: auto; text-align: center !important; max-width: 520px;">
<a class="navbar-brand" href="index.html" style="font-family: monospace;">cody's shack</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent" style="font-family: monospace;">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="projects.html">Games <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="apps.html">Websites</a>
</li>
<li class="nav-item">
<a class="nav-link" href="movies.html">Movies</a>
</li>
<li class="nav-item">
<a class="nav-link" href="misc.html">Settings</a>
</li>
</ul>
</div>
</nav>
<br />
<h1 style="font-size: 3em; text-align: center;">Games</h1>
<input type="text" id="search" onkeyup="searchGames()" placeholder="Search for games..." style="width: 100%; font-size: 18px; padding: 6px 20px; margin: auto; border-radius: 30px; max-width: 600px; margin-bottom: 10px;" />
<div id="loader" style="display: block; border: 16px solid #f3f3f3; border-top: 16px solid #3498db; border-radius: 50%; width: 120px; height: 120px; animation: spin 2s linear infinite; margin: auto; margin-top: 1rem;"></div>
<div id="game-container" class="flex-container"></div>
<p class="text-center">
<a href="/index.html" style="text-decoration: none;">
<button style="cursor: pointer; background-color: #b625cc; border: none; color: white; padding: 15px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; border-radius: 20px; margin-top: 5px;">
Go to the homepage
</button>
</a>
</p>
<button id="back-to-top" style="display: none; position: fixed; bottom: 20px; right: 20px;">Back to top</button>
<script>
let games = [];
fetch("config/games.json")
.then((response) => response.json())
.then((data) => {
games = data;
const container = document.getElementById("game-container");
data.forEach((project) => {
const game = document.createElement("a");
game.href = project.link;
game.className = "game-link container";
game.innerHTML = `
<div class="game-tile gameblur">
<img class="game-icon" src="${project.imgSrc}" alt="icon" />
<p class="game-title">${project.title}</p>
</div>`;
container.appendChild(game);
});
document.getElementById("loader").style.display = "none";
})
.catch((error) => console.error("Error:", error));
function searchGames() {
const input = document.getElementById("search");
const filter = input.value.toUpperCase();
const container = document.getElementById("game-container");
container.innerHTML = "";
games
.filter((game) => game.title.toUpperCase().includes(filter))
.forEach((project) => {
const game = document.createElement("a");
game.href = project.link;
game.className = "game-link container";
game.innerHTML = `
<div class="game-tile gameblur">
<img class="game-icon" src="${project.imgSrc}" alt="icon" loading="lazy" />
<p class="game-title">${project.title}</p>
</div>`;
container.appendChild(game);
});
}
const backToTopButton = document.getElementById('back-to-top');
window.onscroll = function () {
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
backToTopButton.style.display = "block";
} else {
backToTopButton.style.display = "none";
}
};
backToTopButton.onclick = function () {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
};
</script>
</body>
</html>