Skip to content

Commit 530deaf

Browse files
Add files via upload
1 parent dbca574 commit 530deaf

File tree

4 files changed

+178
-0
lines changed

4 files changed

+178
-0
lines changed

index.html

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<link rel="stylesheet" href="./styles.css">
5+
6+
<meta charset="UTF-8" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
9+
<link rel="icon" href="https://0.gravatar.com/avatar/fb88310c128924b640be4f69316688155835aac425e8aaa1b720ff818d7e040b" type="image/png">
10+
11+
<meta property="og:type" content="website">
12+
<meta property="og:title" content="Spyboy CTF">
13+
<meta name="og:description" content="spyboy server access ctf">
14+
<meta property="og:image" content="https://cdn.discordapp.com/avatars/877644741339144244/bcb8e0ac84d5042181f1baf34189b797.png?size=1024">
15+
<meta property="og:site_name" content="Spyboy" />
16+
17+
</head>
18+
<body>
19+
<div class="container">
20+
21+
<div class="gif_container">
22+
<img src="https://media0.giphy.com/media/T86i6yDyOYz7J6dPhf/giphy.gif" alt="Cute animated illustration">
23+
</div>
24+
<div class = "buttons">
25+
26+
<button class="btn" id="noButton" onmouseover="moveButton()" onclick="moveButton()">Get Flag</button>
27+
<button class="btn" id = "yesButton" onclick="nextPage()">I Give Up</button>
28+
<script>
29+
function nextPage() {
30+
window.location.href = "yes.html";
31+
}
32+
33+
function moveButton() {
34+
var x = Math.random() * (window.innerWidth - document.getElementById('noButton').offsetWidth) - 85;
35+
var y = Math.random() * (window.innerHeight - document.getElementById('noButton').offsetHeight) - 48;
36+
document.getElementById('noButton').style.left = `${x}px`;
37+
document.getElementById('noButton').style.top = `${y}px`;
38+
}
39+
</script>
40+
</div>
41+
</div>
42+
43+
</body>
44+
</html>

styles.css

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
body {
2+
display: flex;
3+
justify-content: center;
4+
align-items: center;
5+
height: 90vh;
6+
background-color: rgb(0,0,0);
7+
}
8+
9+
#noButton {
10+
position: absolute;
11+
margin-left: 150px;
12+
transition: 0.5s;
13+
}
14+
15+
#yesButton {
16+
position: absolute;
17+
margin-right: 150px;
18+
}
19+
20+
.header_text {
21+
font-family: 'Nunito';
22+
font-size: 40px;
23+
font-weight: bold;
24+
color: rgb(255, 255, 255);
25+
text-align: center;
26+
margin-top: 20px;
27+
margin-bottom: 0;
28+
}
29+
30+
.buttons {
31+
display: flex;
32+
flex-direction: row;
33+
justify-content: center;
34+
align-items: center;
35+
margin-top: 20px;
36+
margin-left: 20px;
37+
}
38+
39+
.btn {
40+
background-color: #ffffff;
41+
color: rgb(233, 48, 48);
42+
padding: 15px 32px;
43+
text-align: center;
44+
display: inline-block;
45+
font-size: 16px;
46+
margin: 4px 2px;
47+
cursor: pointer;
48+
border: none;
49+
border-radius: 12px;
50+
transition: background-color 0.3s ease;
51+
}
52+
53+
.gif_container {
54+
display: flex;
55+
justify-content: center;
56+
align-items: center;
57+
}
58+
59+
@media only screen and (max-width: 320px) and (max-height: 568px) {
60+
body {
61+
height: 100vh;
62+
}
63+
64+
.header_text {
65+
font-size: 20px;
66+
}
67+
68+
img {
69+
height: 60vh;
70+
}
71+
72+
.btn {
73+
padding: 10px 18px;
74+
font-size: 12px;
75+
}
76+
}
77+
78+
@media only screen and (max-width: 414px) and (max-height: 736px) {
79+
body {
80+
height: 90vh;
81+
}
82+
83+
.header_text {
84+
font-size: 28px;
85+
}
86+
87+
img {
88+
height: 60vh;
89+
}
90+
91+
.btn {
92+
padding: 15px 25px;
93+
font-size: 14px;
94+
}
95+
}

yes.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<link rel="stylesheet" href="./yes_style.css">
5+
6+
</head>
7+
<body>
8+
<div class="container">
9+
10+
<div class="gif_container">
11+
<img src="1.gif" alt="Cute animated illustration">
12+
</div>
13+
</div>
14+
15+
</body>
16+
</html>

yes_style.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
body {
2+
display: flex;
3+
justify-content: center;
4+
align-items: center;
5+
height: 100vh;
6+
background-color: rgb(0,0,0);
7+
}
8+
9+
.header_text {
10+
font-family: 'Nunito';
11+
font-size: 50px;
12+
font-weight: bold;
13+
color: white;
14+
text-align: center;
15+
margin-top: 20px;
16+
margin-bottom: 0px;
17+
}
18+
19+
.gif_container {
20+
display: flex;
21+
justify-content: center;
22+
align-items: center;
23+
}

0 commit comments

Comments
 (0)