Repository navigation
Expand file tree
/
Copy pathage.html
More file actions
180 lines (158 loc) · 5.22 KB
/
Copy pathage.html
File metadata and controls
180 lines (158 loc) · 5.22 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Matchly | Age</title>
<style>
:root {
--accent: #ffffff;
--glass: rgba(255, 255, 255, 0.05);
--bg-color: #000000;
}
body, html {
margin: 0; padding: 0;
width: 100%; height: 100%;
overflow: hidden;
background: var(--bg-color);
font-family: 'Inter', sans-serif;
color: white;
}
/* --- BACKGROUND ANIMATION LAYER --- */
canvas { position: fixed; top: 0; left: 0; z-index: -1; }
/* --- CONTAINER --- */
#login-wrapper {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
width: 100vw;
background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}
.login-card {
background: var(--glass);
backdrop-filter: blur(40px);
-webkit-backdrop-filter: blur(40px);
border: 1px solid rgba(255, 255, 255, 0.1);
padding: 60px 40px;
border-radius: 50px;
width: 90%;
max-width: 380px;
text-align: center;
box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
animation: fadeInScale 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes fadeInScale {
from { opacity: 0; transform: scale(0.95) translateY(20px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
/* --- TYPOGRAPHY --- */
.login-header h1 {
margin: 0;
font-family: 'Garamond', serif;
font-size: 32px;
font-weight: 400;
letter-spacing: 1px;
}
.login-header p {
font-size: 11px;
opacity: 0.4;
margin: 10px 0 40px 0;
letter-spacing: 3px;
text-transform: uppercase;
}
/* --- INPUT FIELD ANIMATIONS --- */
.input-group {
position: relative;
margin-bottom: 25px;
}
.input-group input {
width: 100%;
padding: 18px 25px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 50px;
color: white;
font-size: 18px;
text-align: center;
outline: none;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
box-sizing: border-box;
}
/* Remove arrows from number input */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.input-group input:hover,
.input-group input:focus {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.4);
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 0 4px rgba(255,255,255,0.05);
}
/* --- BUTTON --- */
.login-submit-btn {
width: 100%;
padding: 18px;
border-radius: 50px;
border: none;
background: white;
color: black;
font-weight: 600;
letter-spacing: 1px;
cursor: pointer;
transition: 0.3s;
margin-top: 10px;
text-transform: uppercase;
font-size: 12px;
}
.login-submit-btn:hover {
background: #f0f0f0;
box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
transform: scale(1.02);
}
</style>
</head>
<body>
<canvas id="canvas"></canvas>
<div id="login-wrapper">
<div class="login-card">
<div class="login-header">
<h1>How old are you?</h1>
<p>Please enter your age</p>
</div>
<form onsubmit="event.preventDefault(); validateAge();">
<div class="input-group">
<input type="number" id="ageInput" placeholder="Age" min="1" max="99" required>
</div>
<button type="submit" class="login-submit-btn">NEXT</button>
</form>
</div>
</div>
<script>
function validateAge() {
const ageField = document.getElementById('ageInput');
const age = parseInt(ageField.value, 10);
if (isNaN(age)) {
alert("Please enter your age");
return;
}
if (age < 18) {
alert("You must be 18 or older to use this site.");
ageField.value = "";
return;
}
// Get existing user data
let user = JSON.parse(localStorage.getItem('matchly_user')) || {};
// Save age
user.age = age;
// Save back to browser memory
localStorage.setItem('matchly_user', JSON.stringify(user));
// Go to next step
window.location.href = "gender.html";
}
</script>
</body>
</html>