File size: 4,373 Bytes
6f32ae8
b0a0ed0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c312181
 
 
 
 
b0a0ed0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6f32ae8
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
@model LibraryManagement.Shared.Models.RegisterRequest
@{
    ViewData["Title"] = "Create Account";
    Layout = "_Layout";
}

<div class="min-h-[calc(100vh-200px)] flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
    <div class="max-w-md w-full space-y-8 bg-white p-10 rounded-2xl border border-slate-200 shadow-xl">
        <div>
            <div class="mx-auto h-12 w-12 bg-slate-900 rounded-xl flex items-center justify-center text-white mb-4">
                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><line x1="19" y1="8" x2="19" y2="14"/><line x1="22" y1="11" x2="16" y2="11"/></svg>
            </div>
            <h2 class="text-center text-3xl font-extrabold text-slate-900 tracking-tight">Join our Library</h2>
            <p class="mt-2 text-center text-sm text-slate-500">
                Start your reading journey today.
            </p>
        </div>
        <form class="mt-8 space-y-6" asp-action="Register" method="POST">
            <div asp-validation-summary="ModelOnly" class="text-red-500 text-sm mb-4 bg-red-50 p-3 rounded-lg border border-red-100"></div>
            
            <div class="space-y-4">
                <div>
                    <label asp-for="FullName" class="block text-sm font-medium text-slate-700 mb-1">Full Name</label>
                    <input asp-for="FullName" type="text" required class="appearance-none relative block w-full px-3 py-2 border border-slate-300 placeholder-slate-400 text-slate-900 rounded-md focus:outline-none focus:ring-slate-900 focus:border-slate-900 focus:z-10 sm:text-sm" placeholder="John Doe">
                    <span asp-validation-for="FullName" class="text-xs text-red-500 mt-1"></span>
                </div>
                <div>
                    <label asp-for="Email" class="block text-sm font-medium text-slate-700 mb-1">Email Address</label>
                    <input asp-for="Email" type="email" required class="appearance-none relative block w-full px-3 py-2 border border-slate-300 placeholder-slate-400 text-slate-900 rounded-md focus:outline-none focus:ring-slate-900 focus:border-slate-900 focus:z-10 sm:text-sm" placeholder="name@example.com">
                    <span asp-validation-for="Email" class="text-xs text-red-500 mt-1"></span>
                </div>
                <div>
                    <label asp-for="PhoneNumber" class="block text-sm font-medium text-slate-700 mb-1">Phone Number</label>
                    <input asp-for="PhoneNumber" type="tel" required class="appearance-none relative block w-full px-3 py-2 border border-slate-300 placeholder-slate-400 text-slate-900 rounded-md focus:outline-none focus:ring-slate-900 focus:border-slate-900 focus:z-10 sm:text-sm" placeholder="09123456789">
                    <span asp-validation-for="PhoneNumber" class="text-xs text-red-500 mt-1"></span>
                </div>
                <div>
                    <label asp-for="Password" class="block text-sm font-medium text-slate-700 mb-1">Password</label>
                    <input asp-for="Password" type="password" required class="appearance-none relative block w-full px-3 py-2 border border-slate-300 placeholder-slate-400 text-slate-900 rounded-md focus:outline-none focus:ring-slate-900 focus:border-slate-900 focus:z-10 sm:text-sm" placeholder="••••••••">
                    <span asp-validation-for="Password" class="text-xs text-red-500 mt-1"></span>
                </div>
            </div>

            <div>
                <button type="submit" class="group relative w-full flex justify-center py-2.5 px-4 border border-transparent text-sm font-medium rounded-md text-white bg-slate-900 hover:bg-slate-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-900 transition-all">
                    Create Account
                </button>
            </div>
            
            <div class="text-center">
                <span class="text-sm text-slate-500">Already have an account?</span>
                <a asp-action="Login" class="text-sm font-medium text-slate-900 hover:underline ml-1">Sign in</a>
            </div>
        </form>
    </div>
</div>