-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
164 lines (145 loc) · 4.4 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home</title>
<style>
body {
background: #1a1a1a; /* Dark background */
margin: 0;
font-family: sans-serif;
color: white; /* Default text color */
}
header {
width: 100%;
padding: 10px;
display: flex;
justify-content: center; /* Center the navbar */
align-items: center;
background-color: #333; /* Dark header background */
}
nav {
display: flex;
align-items: center;
}
nav ul {
background-color: #444; /* Dark navbar background */
padding: 10px;
border-radius: 50px;
display: flex;
gap: 15px; /* Space between items */
}
nav ul li {
list-style: none;
}
nav a {
color: white;
text-decoration: none;
font-size: 15px;
padding: 5px 10px;
}
nav a:hover {
background-color: white;
color: black;
border-radius: 20px;
padding: 5px 10px;
backdrop-filter: blur(2px);
}
.content {
text-align: center;
margin-top: 150px;
}
.content h1 {
font-size: 55px;
color: white; /* Change header color to white */
font-weight: 900;
transition: 0.4s;
text-shadow: 2px 2px 2px #000; /* Add shadow for better visibility */
}
.content h1:hover {
-webkit-text-stroke: 1.5px black;
color: transparent;
transform: translate(0, 0) scale(1.2);
}
.content a {
text-decoration: none;
display: inline-block;
color: white; /* Change link color to white */
font-size: 20px;
border: 1px solid white; /* Change border color to white */
padding: 8px 50px;
border-radius: 50px;
margin-top: 20px;
}
.content a:hover {
transform: translate(0, 0) scale(1.3);
}
/* Hamburger menu styles */
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
}
.bar {
height: 3px;
width: 25px;
background-color: white; /* Change hamburger icon color to white */
margin: 3px 0;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.content h1 {
font-size: 40px; /* Smaller font size for mobile */
}
.content a {
padding: 8px 30px; /* Adjust padding for mobile */
}
nav ul {
flex-direction: column; /* Stack nav items vertically on small screens */
display: none; /* Hide by default */
position: absolute;
background-color: #444; /* Dark navbar background */
top: 60px; /* Position below the header */
left: 0;
width: 100%;
padding: 10px 0;
border-radius: 0 0 10px 10px;
}
nav.active ul {
display: flex; /* Show when active */
}
.hamburger {
display: flex; /* Show hamburger icon on mobile */
}
}
</style>
</head>
<body>
<header>
<div class="hamburger" onclick="toggleNav()">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
<nav id="navbar">
<ul>
<li><a href="sim.html">Game</a></li>
<li><a href="resource.html">Resources</a></li>
<li><a href="quiz.html">Quiz</a></li>
<li><a href="login.html">Log-in</a></li>
</ul>
</nav>
</header>
<div class="content">
<h1>Start investing with a Demo account</h1>
<a href ="sim.html">START</a>
</div>
<script>
function toggleNav() {
const navbar = document.getElementById("navbar");
navbar.classList.toggle("active");
}
</script>
</body>
</html>