HTML代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>我的网络导航</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
body {
font-family: 'Arial', sans-serif;
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: #fff;
}
.container {
background: rgba(0, 0, 0, 0.6);
padding: 20px;
border-radius: 10px;
text-align: center;
width: 350px;
max-width: 90%;
}
h1 {
font-size: 24px;
margin-bottom: 15px;
}
p {
font-size: 16px;
margin-bottom: 20px;
}
.links {
margin-bottom: 20px;
}
.links a {
display: block;
margin: 5px 0;
padding: 10px 20px;
background: #007BFF;
color: #ffffff;
text-decoration: none;
border-radius: 5px;
font-size: 16px;
transition: background-color 0.3s ease;
}
.links a:hover {
background: #0056b3;
}
.contact {
font-size: 16px;
}
.contact a {
color: #007BFF;
text-decoration: none;
}
.contact a:hover {
text-decoration: underline;
}
.social-icons {
margin-top: 20px;
}
.social-icons a {
margin: 0 10px;
color: #fff;
font-size: 24px;
transition: color 0.3s ease;
}
.social-icons a:hover {
color: #007BFF;
}
</style>
</head>
<body>
<div class="container">
<h1>我的网络导航</h1>
<p>欢迎访问我的网站和社交媒体!</p>
<div class="links">
<a href="https://[你的个人网站]" target="_blank">个人网站</a>
<a href="https://[你的博客]" target="_blank">博客</a>
<a href="https://[你的GitHub]" target="_blank">GitHub</a>
<a href="https://[你的LinkedIn]" target="_blank">LinkedIn</a>
</div>
<div class="contact">
<p>联系方式:</p>
<p>邮箱:<a href="mailto:[你的邮箱]">[你的邮箱]</a></p>
<p>电话:[你的电话]</p>
</div>
<div class="social-icons">
<a href="https://[你的Twitter]" target="_blank"><i class="fab fa-twitter"></i></a>
<a href="https://[你的Instagram]" target="_blank"><i class="fab fa-instagram"></i></a>
<a href="https://[你的Facebook]" target="_blank"><i class="fab fa-facebook"></i></a>
</div>
</div>
</body>
</html>
|