-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
131 lines (131 loc) · 4.37 KB
/
test.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Personal Webpage</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f4f4f9;
color: #333;
margin: 0;
padding: 0;
transition: background-color 0.3s, color 0.3s;
}
.container {
width: 80%;
margin: 0 auto;
padding: 20px;
}
header {
text-align: center;
padding: 50px 0;
}
header h1 {
font-size: 2.5em;
color: #2c5f2d;
}
nav {
text-align: center;
margin-bottom: 50px;
}
nav a {
margin: 0 15px;
text-decoration: none;
color: #2c5f2d;
}
.section {
margin-bottom: 50px;
}
.section h2 {
font-size: 2em;
color: #2c5f2d;
}
.section p {
font-size: 1.1em;
line-height: 1.6;
}
footer {
text-align: center;
padding: 20px 0;
background-color: #2c5f2d;
color: #fff;
}
.dark-mode {
background-color: #2c2c2c;
color: #ddd;
}
.dark-mode header h1, .dark-mode .section h2, .dark-mode nav a {
color: #82b74b;
}
.dark-mode footer {
background-color: #111;
}
.toggle-dark-mode {
position: fixed;
top: 10px;
right: 10px;
background-color: #82b74b;
color: #fff;
border: none;
padding: 10px;
cursor: pointer;
}
</style>
</head>
<body>
<button class="toggle-dark-mode" onclick="toggleDarkMode()">Toggle Dark Mode</button>
<div class="container">
<header>
<h1>Welcome to My Personal Webpage</h1>
</header>
<nav>
<a href="#about">About Me</a>
<a href="#projects">Projects</a>
<a href="#contact">Contact</a>
</nav>
<section id="about" class="section">
<h2>About Me</h2>
<p>Hello! I am a Senior Network Engineer with a passion for technology and innovation. I help my company manage equipment from multiple vendors, including Extreme Networks, SonicWALL, Fortinet, and Aruba. I also enjoy creating documentation and sharing my knowledge with others.</p>
</section>
<section id="projects" class="section">
<h2>Projects</h2>
<p>Here are some of the projects I have worked on:</p>
<ul>
<li>Project 1: Description</li>
<li>Project 2: Description</li>
<li>Project 3: Description</li>
</ul>
<h3>Blog</h3>
<p>Welcome to my blog! Here, I share updates on my projects, insights, and tutorials.</p>
<div id="blog-posts">
<h4>Blog Post Title</h4>
<p>Blog post content...</p>
</div>
<h3>Embedded Video</h3>
<iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe>
</section>
<section id="contact" class="section">
<h2>Contact Me</h2>
<form action="mailto:your-email@example.com" method="post" enctype="text/plain">
<label for="name">Name:</label><br>
<input type="text" id="name" name="name" required><br>
<label for="email">Email:</label><br>
<input type="email" id="email" name="email" required><br>
<label for="message">Message:</label><br>
<textarea id="message" name="message" rows="4" required></textarea><br>
<input type="submit" value="Send">
</form>
</section>
</div>
<footer>
<p>© 2024 My Personal Webpage</p>
</footer>
<script>
function toggleDarkMode() {
document.body.classList.toggle('dark-mode');
}
</script>
</body>
</html>