Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
103 lines (100 loc) · 3.23 KB
/
Copy pathindex.html
File metadata and controls
103 lines (100 loc) · 3.23 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/assets/css/main.css?v=1" />
<script src="//unpkg.com/alpinejs" defer></script>
<script src="https://cdn.tailwindcss.com"></script>
<script
src="https://kit.fontawesome.com/2b6358b0da.js"
crossorigin="anonymous"
></script>
<script
defer
data-domain="snowlaboratory.com"
src="https://stats.snowlaboratory.com/js/script.js"
></script>
<title>Snow Labs</title>
</head>
<body>
<div class="min-h-full mx-auto">
<img
class="block mx-auto"
src="/assets/images/snow-labs.png"
alt="Snow Labs Logo"
width="320"
height="450"
/>
<div class="text-white flex flex-col items-center space-y-5">
<!-- <div class="text-4xl sm:text-5xl text-center">Get in Touch</div> -->
<div class="text-1xl sm:text-2xl text-center">
building web services & apps
</div>
<form
x-data="{
loading: false,
submit(e) {
this.loading = true;
const form = e.target;
const data = new FormData(form);
const action = form.action
fetch(action, {
method: form.method,
body: data,
//credentials: 'include',
//redirect: 'follow',
//mode: 'no-cors',
})
.then(response => response.json())
.then(data => {
if (data.success === true) {
alert('Yay!')
} else {
alert(`Form submission failed. ${data.error}`);
}
})
.catch(error => {
console.error('Error:', error);
alert('Form submission failed.');
})
.finally(() => {
this.loading = false;
});
}
}"
x-on:submit.prevent="submit"
method="post"
class="w-80 space-y-3"
action="https://script.google.com/macros/s/AKfycbz0uUkP9vrt9GPpy0w27qc2ggYBUoscgM5gj5trC3qseNX9h4TtL16UQaw1Wjqdq-To/exec"
>
<div>
<input
type="email"
name="email"
placeholder="Email"
class="p-3 rounded w-full bg-indigo-950 ring-indigo-800 ring focus:!ring-indigo-700 !outline-none focus:ring-2 focus:ring-offset-2 ring-offset-black !border-none !shadow-none"
/>
</div>
<button type="submit" class="bg-indigo-700 rounded p-3 w-full">
<span x-show="!loading">Get in touch</span>
<i x-show="loading" class="fa-solid fa-spinner animate-spin"></i>
</button>
</form>
<div class="!mt-16">
<a
class="text-2xl md:text-4xl pr-3 snow-git"
href="https://github.com/SnowLaboratory"
><i class="fa-brands fa-github"></i
></a>
<a
class="text-2xl md:text-4xl snow-twitter"
href="https://x.com/snowlabs_com"
><i class="fa-brands fa-x-twitter"></i
></a>
</div>
</div>
</div>
</body>
</html>