-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
136 lines (123 loc) · 3.06 KB
/
index.html
File metadata and controls
136 lines (123 loc) · 3.06 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Discord Look-alike</title>
<style>
/* Reset some default browser styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* Global styles */
body {
background-color: #36393f;
color: #fff;
font-family: Arial, sans-serif;
line-height: 1.5;
padding: 20px;
text-align: center;
}
/* Navigation styles */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.navbar .hamburger {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 30px;
height: 20px;
cursor: pointer;
position: absolute;
top: 20px;
left: 20px;
transition: transform 0.3s ease-in-out;
}
.navbar .hamburger .line {
width: 100%;
height: 2px;
background-color: #fff;
margin-bottom: 4px;
transition: background-color 0.3s ease-in-out;
}
.navbar .hamburger.open {
transform: rotate(90deg);
}
.navbar .menu {
display: none;
position: fixed;
top: 0;
left: 0;
width: 300px;
height: 100%;
background-color: #2f3136;
padding: 20px;
z-index: 9999;
transition: transform 0.3s ease-in-out;
}
.navbar .menu.show {
display: block;
transform: translateX(0%);
}
/* Checkout button */
.checkout-button {
position: fixed;
top: 20px;
right: 20px;
background-color: #7289da;
color: #fff;
padding: 10px 20px;
border-radius: 5px;
font-size: 18px;
text-decoration: none;
z-index: 9999;
}
/* Discord button */
.menu button {
background-color: transparent;
color: #7289da;
border: none;
cursor: pointer;
font-size: 20px;
padding: 10px;
display: block;
width: 100%;
text-align: left;
}
</style>
</head>
<body>
<nav class="navbar">
<div class="hamburger">
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</div>
<div class="menu">
<button class="exit-button"><a href="#">Exit</a></button>
<button><a href="https://discord.gg/6eaDrx5J9s" target="_blank" rel="noopener noreferrer">Discord</a></button>
</div>
</nav>
<a class="checkout-button" href="https://lolyv.github.io/checkout.html">Checkout</a>
<script>
const hamburger = document.querySelector('.hamburger');
const menu = document.querySelector('.menu');
const exitButton = document.querySelector('.exit-button');
hamburger.addEventListener('click', function () {
hamburger.classList.toggle('open');
menu.classList.toggle('show');
});
exitButton.addEventListener('click', function () {
hamburger.classList.remove('open');
menu.classList.remove('show');
});
</script>
</body>
</html>