-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
107 lines (101 loc) · 5.65 KB
/
index.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
<html>
<head> </head>
<body>
<div class="bg-white">
<div class="mx-auto max-w-7xl px-4 py-24 sm:px-6 sm:py-32 lg:px-8">
<div class="mx-auto max-w-2xl">
<form>
<div class="space-y-12">
<div class="border-b border-gray-900/10 pb-12 ">
<div class="flex">
<svg xmlns="http://www.w3.org/2000/svg" class="pr-2 h-7" fill="#25D366" viewBox="0 0 448 512"><path d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"/></svg>
<h2 class="text-base font-semibold leading-7 text-[#25D366]">
WhatsApp
</h2>
</div>
<p class="mt-1 text-sm leading-6 text-gray-600">
Send WhatsApp Messages without adding contact!
</p>
<div
class="mt-10 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6"
>
<div class="sm:col-span-4">
<label
for="username"
class="block text-sm font-medium leading-6 text-gray-900"
>Phone Number</label
>
<div class="mt-2">
<div
class="flex rounded-md shadow-sm ring-1 ring-inset ring-gray-300 sm:w-48"
>
<input
type="number"
name="number"
autocomplete="mobile"
class="phone block flex-1 border-0 bg-transparent py-1.5 pl-1 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6 pl-3 "
placeholder="+00 00000 00000"
/>
</div>
</div>
</div>
<div class="col-span-full">
<label
for="about"
class="block text-sm font-medium leading-6 text-gray-900"
>Message</label
>
<div class="mt-2">
<textarea
id="about"
name="about"
rows="3"
class="message block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6 p-3"
placeholder="Message ..."
></textarea>
</div>
</div>
</div>
</div>
</div>
<div class="mt-6 flex items-center justify-end gap-x-6">
<button
type="button"
onclick="sendwhatsapp();"
class="rounded-md bg-[#25D366] px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-[#075E54] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#075E54]"
>
Message Now
</button>
</div>
</form>
</div>
</div>
</div>
<footer class="text-gray-600 body-font">
<div class="container px-5 py-8 mx-auto flex items-center sm:flex-row flex-col">
<a href="http://github.com/prerit008" class="flex title-font font-medium items-center md:justify-start justify-center text-gray-900 pr-4 sm:border-r-2 sm:border-gray-200">
<img src="https://avatars.githubusercontent.com/u/80686842?v=4" class="h-8" alt="Prerit Agarwal">
</a>
<a href="http://github.com/prerit008/whatsapp-messaging"
class="rounded-md bg-[#25D366] ml-5 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-[#128C7E] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#128C7E]"
>
View on GitHub
</a>
<span class="inline-flex sm:ml-auto sm:mt-0 mt-4 justify-center sm:justify-start">
<p class="text-sm text-gray-500 sm:ml-4 sm:pl-4 sm:py-2 sm:mt-0 mt-4">© 2023 —
<a href="https://github.com/prerit008" class=" ml-1 text-[25D366] hover:text-[128C7E]" rel="noopener noreferrer" target="_blank">@prerit008</a>
</p>
</span>
</div>
</footer>
<script>
function sendwhatsapp() {
var phonenumber = document.querySelector(".phone").value;
var message = document.querySelector(".message").value;
var url = "https://wa.me/" + phonenumber + "?text=" + message;
window.open(url, "_blank").focus();
}
</script>
<script src="http://cdn.tailwindcss.com"></script>
</body>
</html>