-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
208 lines (197 loc) · 7.82 KB
/
Copy pathindex.html
File metadata and controls
208 lines (197 loc) · 7.82 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Registration Form</title>
<meta name="title" content="9ayid bech te5o billet" />
<meta name="description" content="sagil bech te5o billet" />
<link rel="shortcut icon" href="logo.png" type="image/x-icon">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://silicon-valley-hackathon.netlify.app" />
<meta property="og:title" content="9ayid bech te5o billet" />
<meta property="og:description" content="sagil bech te5o billet" />
<meta property="og:image" content="logo.png" />
<!-- Twitter -->
<meta property="twitter:card" content="logo.png" />
<meta property="twitter:url" content="https://silicon-valley-hackathon.netlify.app" />
<meta property="twitter:title" content="9ayid bech te5o billet" />
<meta property="twitter:description" content="sagil bech te5o billet" />
<meta property="twitter:image" content="logo.png" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nova+Mono&display=swap" rel="stylesheet">
<!-- Bootstrap Library -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link href="https://unpkg.com/basscss@7.1.1/css/basscss.min.css" rel="stylesheet">
<!-- Custom CSS -->
<style>
body {
background-image: url(bg.png);
background-size: cover;
background-repeat: no-repeat;
background-clip: initial;
height: 150vh;
font-family: "Nova Mono", monospace;
font-weight: 400;
font-style: normal;
}
label{
margin-top: 15px;
background-color: #AD531C;
color: white;
border-radius: 20px;
display: flex;
justify-content: center;
align-items: center;
}
select option{
color: rgb(255, 255, 255);
background-color: #AD531C;
display: block;
justify-content: center;
align-items: center;
}
.container {
top: 20px;
display: block;
align-items: center;
border-radius: 25px;
border-top-left-radius: 0px;
border-bottom-right-radius: 0px;
padding: 4%;
max-width: 700px;
position: relative;
background-color: #f56105b2;
color: white;
.mb-4{
text-align: center;
font-family: fantasy;
text-shadow: #E50D36 ;
}
}
p{
text-align: center;
background-color: #E50D36;
font-size: larger;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
@media only screen and (max-width: 600px){
body{
background-image: url(bg.png);
background-size: cover;
background-repeat: repeat;
height: 100vh;
}
img{
width: 100%;
}
.container{
top: 0px;
background-color: rgba(255, 115, 0, 0.514);
color: white;
margin: 2%;
padding: 5%;
width: auto;
.mb-4{
color: black;
background-color: #AD531C;
padding: 5px;
border-radius: 20px;
text-align: center;
font-family: fantasy;
}
}
form label{
font-size: large;
padding-left: 2%;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
}
</style>
</head>
<body>
<div class="container mt-5">
<form id="registrationForm" action="https://script.google.com/macros/s/AKfycbx-rAn9uxHAMlv9_FZMncUKFIm32jI-_zPoCPOLshXG_LmbColZcUkf9UTFDB4VyDBQpA/exec" method="POST">
<center>
<img src="logo.png" alt="sd" width="70%">
<hr>
<h1>Sem7ouna il madoubiya 9alit la lil sbe7</h1>
<h2>mar7ab bikom mil 14 lil 16</h2>
</center>
<div class="form-group">
<label for="fullName">Full Name</label>
<input type="text" class="form-control" name="fullName" disabled placeholder="ismik ou la9bik" disabled>
</div>
<div class="form-group">
<label for="classs">class</label>
<select name="classs" class="form-control" id="">
<option value="">select class</option>
<option value="2eme">2 <sup>eme</sup></option>
<option value="3eme">3 <sup>eme</sup></option>
<option value="4eme">4 <sup>eme</sup></option>
</select>
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" class="form-control" name="email" disabled placeholder="il email mte3ik">
</div>
<div class="form-group">
<label for="phone">Phone Number</label>
<input type="tel" class="form-control" name="phone" pattern="[0-9]{8,}" disabled placeholder="noumro il tele">
</div>
<center>
<button type="submit" class="btn btn-primary" disabled>Register</button>
</center>
</form>
</div><br><br><br>
<!-- Include Sweet Alert and Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script>
// Handle form submission
document.querySelector('form').addEventListener('submit', async function(event) {
event.preventDefault(); // Prevent default form submission behavior
Swal.fire({
title: "Registering",
text:"osbor chwaya 😉",
showConfirmButton: false,
allowOutsideClick: false,
});
// Fetch data from the form
const formData = new FormData(this);
try {
// Submit form data to the server
const response = await fetch(this.action, {
method: 'POST',
body: formData
});
// Check if the form submission was successful
if (response.ok) {
// Clear the form input after successful submission (optional)
Swal.fire({
title: "You are Registered",
width: 600,
padding: "3em",
timer: 8000, // Set timer for 5 seconds
color: "#000",
background: "bg.png",
backdrop: `
rgba(0,0,123,0.4)
url("sparkles-stars.gif")
left top
no-repeat
`
});
} else {
console.error('Form submission failed:', response.statusText);
}
} catch (error) {
console.error('Error submitting form:', error);
}
});
</script>
</body>
</html>