File size: 7,044 Bytes
c15fbbd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Enrollment Form</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Inter', sans-serif;
        }
        .dark {
            background-color: #0f172a;
            color: #e2e8f0;
        }
        .dark .form-container {
            background-color: #1e293b;
        }
        .dark .form-input {
            background-color: #334155;
            border-color: #475569;
            color: #e2e8f0;
        }
        .dark .form-input:focus {
            border-color: #60a5fa;
        }
        .dark .form-label {
            color: #cbd5e1;
        }
        .dark .submit-btn {
            background: linear-gradient(to right, #3b82f6, #6366f1);
        }
        .dark .submit-btn:hover {
            background: linear-gradient(to right, #2563eb, #4f46e5);
        }
    </style>
</head>
<body class="bg-gray-100 dark">
    <div class="min-h-screen 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 form-container bg-white p-8 rounded-xl shadow-lg">
            <div>
                <h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900 dark:text-white">
                    Enrollment Form
                </h2>
                <p class="mt-2 text-center text-sm text-gray-600 dark:text-gray-300">
                    Fill in your details to enroll in the course
                </p>
            </div>
            <form class="mt-8 space-y-6" action="#" method="POST">
                <div class="rounded-md space-y-4">
                    <div>
                        <label for="fullname" class="block text-sm font-medium form-label">Full Name</label>
                        <input id="fullname" name="fullname" type="text" required class="form-input mt-1 appearance-none relative block w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-blue-500 focus:border-blue-500 focus:z-10 sm:text-sm" placeholder="John Doe">
                    </div>

                    <div>
                        <label for="email" class="block text-sm font-medium form-label">Email Address</label>
                        <input id="email" name="email" type="email" autocomplete="email" required class="form-input mt-1 appearance-none relative block w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-blue-500 focus:border-blue-500 focus:z-10 sm:text-sm" placeholder="john@example.com">
                    </div>

                    <div>
                        <label for="phone" class="block text-sm font-medium form-label">Phone Number</label>
                        <input id="phone" name="phone" type="tel" required class="form-input mt-1 appearance-none relative block w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-blue-500 focus:border-blue-500 focus:z-10 sm:text-sm" placeholder="+1 (555) 123-4567">
                    </div>

                    <div>
                        <label for="experience" class="block text-sm font-medium form-label">Programming Experience</label>
                        <select id="experience" name="experience" required class="form-input mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm">
                            <option value="">Select your experience level</option>
                            <option value="beginner">Beginner (0-1 years)</option>
                            <option value="intermediate">Intermediate (1-3 years)</option>
                            <option value="advanced">Advanced (3+ years)</option>
                        </select>
                    </div>

                    <div>
                        <label for="goals" class="block text-sm font-medium form-label">Learning Goals</label>
                        <textarea id="goals" name="goals" rows="3" class="form-input mt-1 shadow-sm focus:ring-blue-500 focus:border-blue-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md" placeholder="What do you hope to achieve in this course?"></textarea>
                    </div>

                    <div>
                        <label class="block text-sm font-medium form-label">Preferred Learning Method</label>
                        <fieldset class="mt-2">
                            <div class="space-y-2">
                                <div class="flex items-center">
                                    <input id="self-paced" name="learning-method" type="radio" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300" checked>
                                    <label for="self-paced" class="ml-3 block text-sm font-medium text-gray-700 dark:text-gray-300">Self-paced learning</label>
                                </div>
                                <div class="flex items-center">
                                    <input id="live-sessions" name="learning-method" type="radio" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300">
                                    <label for="live-sessions" class="ml-3 block text-sm font-medium text-gray-700 dark:text-gray-300">Live sessions with instructor</label>
                                </div>
                                <div class="flex items-center">
                                    <input id="hybrid" name="learning-method" type="radio" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300">
                                    <label for="hybrid" class="ml-3 block text-sm font-medium text-gray-700 dark:text-gray-300">Hybrid approach</label>
                                </div>
                            </div>
                        </fieldset>
                    </div>

                    <div class="flex items-center">
                        <input id="terms" name="terms" type="checkbox" class="h-4 w-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500">
                        <label for="terms" class="ml-2 block text-sm text-gray-700 dark:text-gray-300">
                            I agree to the <a href="#" class="text-blue-600 hover:text-blue-500">Terms and Conditions</a>
                        </label>
                    </div>
                </div>

                <div>
                    <button type="submit" class="group submit-btn relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
                        Submit Enrollment
                    </button>
                </div>
            </form>
        </div>
    </div>
</body>
</html>