-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinapp.html
More file actions
70 lines (63 loc) · 2.92 KB
/
inapp.html
File metadata and controls
70 lines (63 loc) · 2.92 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
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Email Capture Popup</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-900 bg-opacity-50 flex items-center justify-center min-h-screen p-4">
<!-- Popup Card -->
<div class="bg-white rounded-2xl shadow-2xl max-w-md w-full p-8 relative">
<!-- Close Button -->
<button class="absolute top-4 right-4 text-gray-400 hover:text-gray-600 transition-colors">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
</svg>
</button>
<!-- Header -->
<div class="text-center mb-6">
<h2 class="text-2xl font-bold text-gray-900 mb-2">Stay in the loop!</h2>
<p class="text-gray-600">Get exclusive updates and special offers delivered to your inbox.</p>
</div>
<!-- Form -->
<form action="api/submit/-form" method="POST" class="space-y-4">
<!-- First Name Field -->
<div>
<label for="firstName" class="block text-sm font-medium text-gray-700 mb-2">First Name</label>
<input
type="text"
id="firstName"
name="firstName"
required
class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200 placeholder-gray-400"
placeholder="Enter your first name"
>
</div>
<!-- Email Field -->
<div>
<label for="email" class="block text-sm font-medium text-gray-700 mb-2">Email Address</label>
<input
type="email"
id="email"
name="email"
required
class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200 placeholder-gray-400"
placeholder="Enter your email address"
>
</div>
<!-- Submit Button -->
<button
type="submit"
class="w-full bg-blue-600 hover:bg-blue-700 text-white font-semibold py-3 px-6 rounded-lg transition-colors duration-200 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"
>
Subscribe Now
</button>
</form>
<!-- Footer Text -->
<p class="text-xs text-gray-500 text-center mt-4">
We respect your privacy. Unsubscribe at any time.
</p>
</div>
</body>
</html>