forked from NoroffFEU/css-frameworks-ca
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
196 lines (186 loc) · 6.22 KB
/
index.html
File metadata and controls
196 lines (186 loc) · 6.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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Auth • DogGram</title>
<script type="module" src="/src/main.js"></script>
</head>
<body class="min-h-screen bg-gray-50 text-gray-900">
<!-- HEADER -->
<header class="sticky top-0 z-40 bg-white/80 backdrop-blur border-b">
<div
class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-3 flex items-center justify-between">
<a
href="/"
class="font-semibold tracking-tight text-lg md:text-xl text-gray-900"
>🐾 DogGram</a
>
<nav class="hidden md:flex items-center gap-6 text-sm text-gray-600">
<a href="/feed/" class="hover:text-gray-900">Feed</a>
<a href="/profile/" class="hover:text-gray-900">Profile</a>
</nav>
<button
type="button"
class="md:hidden inline-flex items-center justify-center rounded-lg px-3 py-2 text-sm text-gray-700 hover:bg-gray-100"
aria-controls="mobile-nav"
aria-expanded="false"
data-menu-toggle>
☰
<span class="sr-only">Toggle menu</span>
</button>
</div>
<nav
id="mobile-nav"
data-menu-panel
class="md:hidden hidden border-t bg-white">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-3">
<ul class="flex flex-col gap-1.5 text-sm text-gray-700">
<li>
<a href="/feed/" class="block rounded-lg px-3 py-2 hover:bg-gray-50"
>Feed</a
>
</li>
<li>
<a href="/profile/" class="block rounded-lg px-3 py-2 hover:bg-gray-50"
>Profile</a
>
</li>
</ul>
</div>
</nav>
</header>
<!-- AUTH CONTENT -->
<main class="mx-auto max-w-3xl px-4 sm:px-6 lg:px-8 py-12">
<div class="rounded-2xl bg-white border border-black/5 p-6 sm:p-8 shadow-sm">
<h1 class="text-center text-2xl sm:text-3xl font-semibold">
Welcome to DogGram
</h1>
<p class="mt-2 text-center text-sm text-gray-500">
Where every dog has its day 🐶
</p>
<!-- Tabs -->
<div class="mt-6 grid grid-cols-2 gap-2 rounded-xl bg-gray-100 p-1 text-sm">
<button
data-tab-button="login"
aria-selected="true"
class="w-full rounded-lg py-2 font-medium bg-white shadow">
Login
</button>
<button
data-tab-button="register"
aria-selected="false"
class="w-full rounded-lg py-2 font-medium">
Register
</button>
</div>
<section class="pt-6">
<!-- Login form -->
<form action="/profile/" method="get" data-panel="login" class="space-y-4">
<div>
<label for="loginEmail" class="block text-sm font-medium">Email</label>
<input
id="loginEmail"
name="email"
type="email"
required
placeholder="name@example.com"
class="mt-1 block w-full rounded-lg ring-1 ring-gray-200 bg-white px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500" />
</div>
<div>
<label for="loginPassword" class="block text-sm font-medium"
>Password</label
>
<input
id="loginPassword"
name="password"
type="password"
minlength="8"
required
class="mt-1 block w-full rounded-lg ring-1 ring-gray-200 bg-white px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500" />
<p class="mt-1 text-xs text-gray-500">Minimum 8 characters.</p>
</div>
<div class="flex items-center gap-3">
<button
type="submit"
class="inline-flex items-center rounded-lg bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700">
Sign in
</button>
<a href="#" class="text-sm text-gray-500 hover:underline"
>Forgot password?</a
>
</div>
</form>
<!-- Register form -->
<form
action="/profile/"
method="get"
data-panel="register"
class="hidden space-y-4">
<div class="grid grid-cols-1 sm:grid-cols-2 gap-3">
<div>
<label for="regFirst" class="block text-sm font-medium"
>First name</label
>
<input
id="regFirst"
name="first"
type="text"
class="mt-1 block w-full rounded-lg ring-1 ring-gray-200 bg-white px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500" />
</div>
<div>
<label for="regLast" class="block text-sm font-medium">Last name</label>
<input
id="regLast"
name="last"
type="text"
class="mt-1 block w-full rounded-lg ring-1 ring-gray-200 bg-white px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500" />
</div>
</div>
<div>
<label for="regUsername" class="block text-sm font-medium"
>Username</label
>
<input
id="regUsername"
name="username"
type="text"
required
class="mt-1 block w-full rounded-lg ring-1 ring-gray-200 bg-white px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500" />
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-3">
<div>
<label for="regEmail" class="block text-sm font-medium">Email</label>
<input
id="regEmail"
name="email"
type="email"
required
class="mt-1 block w-full rounded-lg ring-1 ring-gray-200 bg-white px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500" />
</div>
<div>
<label for="regPassword" class="block text-sm font-medium"
>Password</label
>
<input
id="regPassword"
name="password"
type="password"
minlength="8"
required
class="mt-1 block w-full rounded-lg ring-1 ring-gray-200 bg-white px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500" />
</div>
</div>
<div>
<button
type="submit"
class="w-full inline-flex items-center justify-center rounded-lg border border-gray-200 bg-white px-4 py-2 text-sm font-medium text-gray-900 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500">
Create account
</button>
</div>
</form>
</section>
</div>
</main>
</body>
</html>