-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtailwind.html
More file actions
61 lines (52 loc) · 2.24 KB
/
tailwind.html
File metadata and controls
61 lines (52 loc) · 2.24 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Simple Semantic HTML with Tailwind</title>
<!-- Tailwind CSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-white text-gray-800">
<!-- Container -->
<main class="max-w-4xl mx-auto p-6 space-y-12">
<!-- Header -->
<header class="border-b pb-6">
<h1 class="text-4xl font-bold mb-4">Welcome to My Simple Page</h1>
<nav>
<ul class="flex space-x-6 text-blue-600">
<li><a href="#about" class="hover:underline">About</a></li>
<li><a href="#contact" class="hover:underline">Contact</a></li>
</ul>
</nav>
</header>
<!-- About Section -->
<section id="about">
<h2 class="text-2xl font-semibold mb-2">About</h2>
<p class="text-lg text-gray-700">This is a minimal example using semantic HTML tags and Tailwind CSS for custom styling and layout.</p>
</section>
<!-- Contact Form -->
<section id="contact">
<h2 class="text-2xl font-semibold mb-4">Contact</h2>
<form class="space-y-4">
<div>
<label for="name" class="block font-medium mb-1">Name</label>
<input type="text" id="name" name="name" placeholder="Your name" required
class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" />
</div>
<div>
<label for="email" class="block font-medium mb-1">Email</label>
<input type="email" id="email" name="email" placeholder="you@example.com" required
class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" />
</div>
<button type="submit"
class="px-6 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition">Send Message</button>
</form>
</section>
<!-- Footer -->
<footer class="border-t pt-6 text-center text-sm text-gray-500">
<p>© 2025 Simple Site. All rights reserved.</p>
</footer>
</main>
</body>
</html>