Repository navigation
Expand file tree
/
Copy pathname.html
More file actions
166 lines (143 loc) · 4.81 KB
/
Copy pathname.html
File metadata and controls
166 lines (143 loc) · 4.81 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Matchly | Name</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 --- */
canvas { position: fixed; top: 0; left: 0; z-index: -1; }
#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); }
}
.login-header h1 {
margin: 0 0 40px 0;
font-family: 'Garamond', serif;
font-size: 32px;
font-weight: 400;
letter-spacing: 1px;
}
/* --- INPUT FIELD --- */
.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: 15px;
outline: none;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
box-sizing: border-box;
}
.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 & LINK FIX --- */
.login-submit-btn {
width: 100%;
padding: 0; /* Changed to 0 so the <a> handles padding */
border-radius: 50px;
border: none;
background: white;
cursor: pointer;
transition: 0.3s;
margin-top: 10px;
overflow: hidden;
}
/* This makes the link look like a normal part of the button */
.login-submit-btn {
width: 100%;
padding: 18px;
border-radius: 50px;
border: none;
background: white;
color: black;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
font-size: 12px;
cursor: pointer;
transition: 0.3s;
margin-top: 10px;
}
.login-submit-btn:hover {
background: #f0f0f0;
box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
transform: scale(1.02);
}
.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>Enter Name</h1>
</div>
<form id="nameForm" onsubmit="event.preventDefault(); validateAndGo();">
<div class="input-group">
<input type="text" id="nameInput" placeholder="Full name" required>
</div>
<button type="submit" class="login-submit-btn">NEXT</button>
</form>
</div>
</div>
<script>
function validateAndGo() {
const nameField = document.getElementById('nameInput');
const name = nameField.value.trim();
if (name.length < 2) {
alert("Please enter a valid name");
return;
}
let user = JSON.parse(localStorage.getItem('matchly_user')) || {};
user.name = name;
localStorage.setItem('matchly_user', JSON.stringify(user));
window.location.href = "age.html";
}
</script>
</body>
</html>