projectspro20 commited on
Commit
c15fbbd
·
verified ·
1 Parent(s): 792f2d6

create the form where the user fills to inset the required data, create for dark theme

Browse files
Files changed (2) hide show
  1. courses.html +2 -2
  2. enrollment.html +119 -0
courses.html CHANGED
@@ -385,9 +385,9 @@
385
  <p class="text-gray-600 text-sm">Join thousands of students mastering Laravel & Livewire</p>
386
  </div>
387
  <button class="px-6 py-3 bg-gradient-to-r from-blue-600 to-indigo-700 text-white rounded-lg hover:from-blue-700 hover:to-indigo-800 transition-all shadow-md hover:shadow-lg font-medium">
388
- Enroll Now
389
  </button>
390
- </div>
391
  </div>
392
  </div>
393
  </div>
 
385
  <p class="text-gray-600 text-sm">Join thousands of students mastering Laravel & Livewire</p>
386
  </div>
387
  <button class="px-6 py-3 bg-gradient-to-r from-blue-600 to-indigo-700 text-white rounded-lg hover:from-blue-700 hover:to-indigo-800 transition-all shadow-md hover:shadow-lg font-medium">
388
+ <a href="enrollment.html">Enroll Now</a>
389
  </button>
390
+ </div>
391
  </div>
392
  </div>
393
  </div>
enrollment.html ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Enrollment Form</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
9
+ <style>
10
+ body {
11
+ font-family: 'Inter', sans-serif;
12
+ }
13
+ .dark {
14
+ background-color: #0f172a;
15
+ color: #e2e8f0;
16
+ }
17
+ .dark .form-container {
18
+ background-color: #1e293b;
19
+ }
20
+ .dark .form-input {
21
+ background-color: #334155;
22
+ border-color: #475569;
23
+ color: #e2e8f0;
24
+ }
25
+ .dark .form-input:focus {
26
+ border-color: #60a5fa;
27
+ }
28
+ .dark .form-label {
29
+ color: #cbd5e1;
30
+ }
31
+ .dark .submit-btn {
32
+ background: linear-gradient(to right, #3b82f6, #6366f1);
33
+ }
34
+ .dark .submit-btn:hover {
35
+ background: linear-gradient(to right, #2563eb, #4f46e5);
36
+ }
37
+ </style>
38
+ </head>
39
+ <body class="bg-gray-100 dark">
40
+ <div class="min-h-screen flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
41
+ <div class="max-w-md w-full space-y-8 form-container bg-white p-8 rounded-xl shadow-lg">
42
+ <div>
43
+ <h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900 dark:text-white">
44
+ Enrollment Form
45
+ </h2>
46
+ <p class="mt-2 text-center text-sm text-gray-600 dark:text-gray-300">
47
+ Fill in your details to enroll in the course
48
+ </p>
49
+ </div>
50
+ <form class="mt-8 space-y-6" action="#" method="POST">
51
+ <div class="rounded-md space-y-4">
52
+ <div>
53
+ <label for="fullname" class="block text-sm font-medium form-label">Full Name</label>
54
+ <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">
55
+ </div>
56
+
57
+ <div>
58
+ <label for="email" class="block text-sm font-medium form-label">Email Address</label>
59
+ <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">
60
+ </div>
61
+
62
+ <div>
63
+ <label for="phone" class="block text-sm font-medium form-label">Phone Number</label>
64
+ <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">
65
+ </div>
66
+
67
+ <div>
68
+ <label for="experience" class="block text-sm font-medium form-label">Programming Experience</label>
69
+ <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">
70
+ <option value="">Select your experience level</option>
71
+ <option value="beginner">Beginner (0-1 years)</option>
72
+ <option value="intermediate">Intermediate (1-3 years)</option>
73
+ <option value="advanced">Advanced (3+ years)</option>
74
+ </select>
75
+ </div>
76
+
77
+ <div>
78
+ <label for="goals" class="block text-sm font-medium form-label">Learning Goals</label>
79
+ <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>
80
+ </div>
81
+
82
+ <div>
83
+ <label class="block text-sm font-medium form-label">Preferred Learning Method</label>
84
+ <fieldset class="mt-2">
85
+ <div class="space-y-2">
86
+ <div class="flex items-center">
87
+ <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>
88
+ <label for="self-paced" class="ml-3 block text-sm font-medium text-gray-700 dark:text-gray-300">Self-paced learning</label>
89
+ </div>
90
+ <div class="flex items-center">
91
+ <input id="live-sessions" name="learning-method" type="radio" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300">
92
+ <label for="live-sessions" class="ml-3 block text-sm font-medium text-gray-700 dark:text-gray-300">Live sessions with instructor</label>
93
+ </div>
94
+ <div class="flex items-center">
95
+ <input id="hybrid" name="learning-method" type="radio" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300">
96
+ <label for="hybrid" class="ml-3 block text-sm font-medium text-gray-700 dark:text-gray-300">Hybrid approach</label>
97
+ </div>
98
+ </div>
99
+ </fieldset>
100
+ </div>
101
+
102
+ <div class="flex items-center">
103
+ <input id="terms" name="terms" type="checkbox" class="h-4 w-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500">
104
+ <label for="terms" class="ml-2 block text-sm text-gray-700 dark:text-gray-300">
105
+ I agree to the <a href="#" class="text-blue-600 hover:text-blue-500">Terms and Conditions</a>
106
+ </label>
107
+ </div>
108
+ </div>
109
+
110
+ <div>
111
+ <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">
112
+ Submit Enrollment
113
+ </button>
114
+ </div>
115
+ </form>
116
+ </div>
117
+ </div>
118
+ </body>
119
+ </html>