-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
152 lines (140 loc) · 4.71 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="The Hopepage Of WhisperingCode | Jaim Introducing WhisperingCode">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Single+Day&display=swap" rel="stylesheet">
<title>WhisperingCode: Learn And Test Your Programming And Other Knowledge</title>
<style>
body {
background-image: linear-gradient(90deg, #8b008b, #1e90ff);
font-size: 24px;
}
/* Style the side navigation */
.sidenav {
height: 100%;
width: 0; /* Initially hidden */
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #111;
overflow-x: hidden;
padding-top: 60px;
transition: 0.5s; /* Smooth transition */
}
/* Style the navigation links */
.sidenav a {
padding: 10px 20px;
text-decoration: none;
font-size: 18px;
color: #818181;
display: block;
transition: 0.3s;
}
/* Change color on hover */
.sidenav a:hover {
color: #f1f1f1;
}
/* Style the menu icon button */
.menu-icon {
position: fixed;
z-index: 2;
top: 20px;
left: 20px;
cursor: pointer;
color: #fff; /* Change menu icon color */
}
.bar {
width: 25px;
height: 3px;
background-color: #fff; /* Change menu icon color */
margin: 5px 0;
transition: 0.4s;
}
/* Rotate the bars to form an X */
.change .bar:nth-child(1) {
-webkit-transform: rotate(-45deg) translate(-5px, 6px);
transform: rotate(-45deg) translate(-5px, 6px);
}
.change .bar:nth-child(2) {
opacity: 0;
}
.change .bar:nth-child(3) {
-webkit-transform: rotate(45deg) translate(-5px, -6px);
transform: rotate(45deg) translate(-5px, -6px);
}
/* Adjust main content margin */
.main-content {
margin-left: 0;
transition: margin-left 0.5s; /* Smooth transition */
z-index: 1; /* Ensure content is above navigation */
display: flex;
flex-direction: column;
align-items: center; /* Center horizontally */
justify-content: center; /* Center vertically */
height: 100vh; /* Full viewport height */
}
.centered {
text-align: center;
}
#main {
margin-left: 50px;
}
h1, h2, h3, p, span {
font-family: "Single Day", cursive;
font-weight: 400;
font-style: normal;
}
h1 {
line-height: 5px;
}
p {
line-height: 30px;
}
</style>
</head>
<body>
<!-- Menu icon button -->
<div class="menu-icon" onclick="toggleNav()">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
<!-- Side navigation -->
<div id="sidenav" class="sidenav">
<a href="#">Home</a>
<a href="vlog.html">Vlogs</a>
<a href="FAC.html">FAC</a>
</div>
<!-- Page content -->
<div id="main" class="main-content">
<h1 class="centered"> Hi! </h1>
<p class="centered"> <big style="display: inline-block;"> I Am Jaim</big>, A Hobbist Developer With Having Skills In HTML, JS, CSS, PHP And Lua. I Am Here <strong>To Help You In Programming Journey, Whether You Are Beginner, Intermediate, Hobbyist (Like Me 😉) Or Professional</strong> </p>
<br>
<br>
<br>
<br>
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSe0vmq_G46oPEn6vuqJyjFPRmbVWAXiaOkxZOKdg4XC2T-EtA/viewform?embedded=true" width="640" height="1100px" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe>
</div>
<script>
function toggleNav() {
var sidenav = document.getElementById("sidenav");
var mainContent = document.getElementById("main");
var menuIcon = document.querySelector(".menu-icon");
if (sidenav.style.width === "250px") {
sidenav.style.width = "0";
mainContent.classList.remove("sidenav-open");
menuIcon.classList.remove("change");
} else {
sidenav.style.width = "250px";
mainContent.classList.add("sidenav-open");
menuIcon.classList.add("change");
}
}
</script>
</body>
</html>