-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1.html
More file actions
66 lines (66 loc) · 2.93 KB
/
1.html
File metadata and controls
66 lines (66 loc) · 2.93 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web3 Testnet</title>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</head>
<body>
<header class="bg-blue-500 text-white p-4 flex justify-between items-center">
<div class="flex items-center">
<img src="https://via.placeholder.com/50" class="w-12 h-12 rounded-full mr-4" alt="Logo">
<h1 class="text-3xl font-bold">Web3 Testnet</h1>
</div>
<nav>
<ul class="flex space-x-4">
<li><a href="#" class="hover:text-blue-700 transition duration-300 ease-in-out">Home</a></li>
<li><a href="#" class="hover:text-blue-700 transition duration-300 ease-in-out">About</a></li>
<li><a href="#" class="hover:text-blue-700 transition duration-300 ease-in-out">Contact</a></li>
</ul>
</nav>
</header>
<main class="p-4">
<section class="bg-white rounded shadow-md p-4 mb-4">
<h2 class="text-2xl font-bold mb-2">Welcome to Web3 Testnet</h2>
<p class="text-gray-600">This is a sample website for testing purposes.</p>
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded transition duration-300 ease-in-out">
<i class="fas fa-arrow-right"></i> Get Started
</button>
</section>
<section class="bg-white rounded shadow-md p-4 mb-4">
<h2 class="text-2xl font-bold mb-2">Features</h2>
<ul class="list-disc pl-4">
<li>Feature 1</li>
<li>Feature 2</li>
<li>Feature 3</li>
</ul>
</section>
</main>
<footer class="bg-blue-500 text-white p-4 text-center">
<p>© 2023 Web3 Testnet</p>
<div class="flex justify-center mb-4">
<a href="#" class="text-white hover:text-blue-700 transition duration-300 ease-in-out mr-4">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="text-white hover:text-blue-700 transition duration-300 ease-in-out mr-4">
<i class="fab fa-facebook"></i>
</a>
<a href="#" class="text-white hover:text-blue-700 transition duration-300 ease-in-out">
<i class="fab fa-linkedin"></i>
</a>
</div>
</footer>
<script>
window.addEventListener('scroll', () => {
const header = document.querySelector('header');
if (window.scrollY > 50) {
header.classList.add('bg-blue-700', 'shadow-md');
} else {
header.classList.remove('bg-blue-700', 'shadow-md');
}
});
</script>
</body>
</html>