Elishaaa321 commited on
Commit
fa1ca11
Β·
verified Β·
1 Parent(s): 60b9cb5

Upload 3 files

Browse files
Files changed (3) hide show
  1. auth.html +35 -0
  2. index.html +195 -19
  3. script.js +46 -0
auth.html ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="scroll-smooth">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Login / Signup – ScholarGPT</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ </head>
9
+ <body class="min-h-screen bg-gradient-to-br from-blue-100 to-purple-200 dark:from-gray-900 dark:to-gray-800 flex items-center justify-center">
10
+ <div class="bg-white dark:bg-gray-900 shadow-lg rounded-2xl p-8 w-full max-w-md">
11
+ <h2 class="text-2xl font-bold text-center text-gray-900 dark:text-white mb-6">Welcome Back</h2>
12
+
13
+ <form class="space-y-4">
14
+ <input type="email" placeholder="Email" class="w-full px-4 py-2 rounded-xl bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white focus:outline-none" />
15
+ <input type="password" placeholder="Password" class="w-full px-4 py-2 rounded-xl bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white focus:outline-none" />
16
+ <button class="w-full bg-blue-600 hover:bg-blue-700 text-white font-semibold py-2 rounded-xl transition">
17
+ Login
18
+ </button>
19
+ </form>
20
+
21
+ <p class="mt-6 text-center text-sm text-gray-600 dark:text-gray-400">
22
+ Don't have an account?
23
+ <a href="#" onclick="toggleSignup()" class="text-blue-600 dark:text-blue-400 hover:underline">Sign Up</a>
24
+ </p>
25
+ </div>
26
+
27
+ <script>
28
+ function toggleSignup() {
29
+ document.querySelector("h2").textContent = "Create Account";
30
+ const btn = document.querySelector("button");
31
+ btn.textContent = "Sign Up";
32
+ }
33
+ </script>
34
+ </body>
35
+ </html>
index.html CHANGED
@@ -1,19 +1,195 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="scroll-smooth">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>ScholarGPT</title>
7
+ <script>
8
+ tailwind.config = { darkMode: 'class' };
9
+ </script>
10
+ <script src="https://cdn.tailwindcss.com"></script>
11
+ </head>
12
+ <body class="bg-gradient-to-r from-blue-100 via-white to-purple-100 dark:from-gray-900 dark:via-gray-800 dark:to-gray-900 text-gray-900 dark:text-gray-100 min-h-screen">
13
+ <!-- Navbar -->
14
+ <header class="flex items-center justify-between px-6 py-4 shadow-md bg-gradient-to-br from-blue-100 via-purple-50 to-pink-100 dark:from-gray-900 dark:via-indigo-900 dark:to-purple-900 transition-colors duration-500">
15
+ <div class="flex items-center space-x-2">
16
+ <div class="bg-blue-600 text-white p-2 rounded-full">
17
+ πŸŽ“
18
+ </div>
19
+ <h1 class="text-xl font-semibold">ScholarGPT</h1>
20
+ </div>
21
+ <nav class="hidden md:flex items-center space-x-6">
22
+ <a href="#" class="hover:text-blue-600 open-user-modal">Dashboard</a>
23
+ <a href="#" class="hover:text-blue-600 open-user-modal">Opportunities</a>
24
+ <a href="#" class="hover:text-blue-600 open-user-modal">University Matcher</a>
25
+ </nav>
26
+ <div class="flex items-center space-x-4">
27
+ <a href="auth.html" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-xl">
28
+ Get Started
29
+ </a>
30
+
31
+ </div>
32
+ </header>
33
+
34
+ <!-- Hero Section -->
35
+ <section class="relative min-h-screen flex items-center justify-center px-4 py-8 bg-gradient-to-br from-blue-100 via-purple-50 to-pink-100 dark:from-gray-900 dark:via-indigo-900 dark:to-purple-900 transition-colors duration-500">
36
+ <div class="container mx-auto flex flex-col-reverse md:flex-row items-center justify-between gap-12 md:gap-0">
37
+ <!-- Left: Text Content -->
38
+ <div class="w-full md:w-1/2 flex flex-col items-start md:items-start text-left fade-in">
39
+ <span class="inline-block mb-4 px-4 py-1 rounded-full bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-200 text-sm font-medium shadow">AI-Powered Educational Platform</span>
40
+ <h1 class="text-4xl md:text-5xl lg:text-6xl font-extrabold mb-4 leading-tight tracking-tight bg-gradient-to-r from-blue-700 via-purple-700 to-pink-600 bg-clip-text text-transparent drop-shadow-lg">Transform Your Academic Journey</h1>
41
+ <p class="text-lg md:text-xl text-gray-700 dark:text-gray-200 mb-8 font-medium max-w-lg">ScholarGPT empowers students with <span class="text-blue-600 dark:text-blue-300 font-semibold">AI-driven insights</span> for university admissions, academic excellence, and career opportunities worldwide.</p>
42
+ <div class="flex flex-col sm:flex-row gap-4 w-full sm:w-auto">
43
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-xl font-semibold shadow transition-all open-user-modal">Get Started Free β†’</button>
44
+ <button class="border border-gray-400 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-800 px-6 py-3 rounded-xl font-semibold shadow transition-all">Explore Opportunities</button>
45
+ </div>
46
+ </div>
47
+ <!-- Right: Illustration -->
48
+ <div class="w-full md:w-1/2 flex justify-center items-center mb-8 md:mb-0 fade-in">
49
+ <div class="relative">
50
+ <svg width="320" height="320" viewBox="0 0 320 320" fill="none" xmlns="http://www.w3.org/2000/svg" class="drop-shadow-2xl">
51
+ <circle cx="160" cy="160" r="140" fill="url(#paint0_radial)" fill-opacity="0.7"/>
52
+ <ellipse cx="160" cy="180" rx="100" ry="60" fill="#fff" fill-opacity="0.15"/>
53
+ <g>
54
+ <rect x="100" y="120" width="120" height="80" rx="20" fill="#6366f1" fill-opacity="0.9"/>
55
+ <rect x="120" y="140" width="80" height="40" rx="10" fill="#fff" fill-opacity="0.95"/>
56
+ <circle cx="160" cy="160" r="12" fill="#6366f1"/>
57
+ <rect x="150" y="170" width="20" height="8" rx="4" fill="#6366f1" fill-opacity="0.7"/>
58
+ </g>
59
+ <defs>
60
+ <radialGradient id="paint0_radial" cx="0" cy="0" r="1" gradientTransform="translate(160 160) rotate(90) scale(140)" gradientUnits="userSpaceOnUse">
61
+ <stop stop-color="#a5b4fc"/>
62
+ <stop offset="1" stop-color="#c4b5fd"/>
63
+ </radialGradient>
64
+ </defs>
65
+ </svg>
66
+ <div class="absolute -bottom-6 left-1/2 -translate-x-1/2 bg-white/80 dark:bg-gray-900/80 px-4 py-2 rounded-full shadow text-blue-700 dark:text-blue-200 font-semibold text-sm">Your AI Academic Assistant</div>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ <style>
71
+ .fade-in {
72
+ opacity: 0;
73
+ transform: translateY(30px);
74
+ animation: fadeInUp 1.2s cubic-bezier(.23,1.01,.32,1) 0.2s forwards;
75
+ }
76
+ @keyframes fadeInUp {
77
+ to {
78
+ opacity: 1;
79
+ transform: none;
80
+ }
81
+ }
82
+ </style>
83
+ </section>
84
+
85
+ <!-- User Info Modal -->
86
+ <div id="user-modal" class="fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50 hidden">
87
+ <div class="bg-white dark:bg-gray-900 rounded-xl shadow-lg p-8 w-full max-w-md relative">
88
+ <button id="close-modal" class="absolute top-2 right-2 text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 text-2xl">&times;</button>
89
+ <h3 class="text-xl font-bold mb-4 text-gray-900 dark:text-white">Welcome to ScholarGPT</h3>
90
+ <form id="user-info-form" class="space-y-4">
91
+ <div>
92
+ <label class="block text-sm font-medium mb-1" for="name">Your Name</label>
93
+ <input id="name" name="name" type="text" required class="w-full px-3 py-2 rounded border border-gray-300 dark:bg-gray-800 dark:border-gray-700" />
94
+ </div>
95
+ <div>
96
+ <label class="block text-sm font-medium mb-1" for="qualification">Qualification</label>
97
+ <input id="qualification" name="qualification" type="text" required class="w-full px-3 py-2 rounded border border-gray-300 dark:bg-gray-800 dark:border-gray-700" />
98
+ </div>
99
+ <div>
100
+ <label class="block text-sm font-medium mb-1" for="ielts">IELTS Score</label>
101
+ <input id="ielts" name="ielts" type="number" step="0.1" min="0" max="9" required class="w-full px-3 py-2 rounded border border-gray-300 dark:bg-gray-800 dark:border-gray-700" />
102
+ </div>
103
+ <div>
104
+ <label class="block text-sm font-medium mb-1" for="cgpa">CGPA</label>
105
+ <input id="cgpa" name="cgpa" type="number" step="0.01" min="0" max="4" required class="w-full px-3 py-2 rounded border border-gray-300 dark:bg-gray-800 dark:border-gray-700" />
106
+ </div>
107
+ <div>
108
+ <label class="block text-sm font-medium mb-1" for="interest">Area of Interest</label>
109
+ <input id="interest" name="interest" type="text" required class="w-full px-3 py-2 rounded border border-gray-300 dark:bg-gray-800 dark:border-gray-700" />
110
+ </div>
111
+ <div class="flex">
112
+ <button type="submit" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded font-semibold w-full">Submit</button>
113
+ </div>
114
+ </form>
115
+ </div>
116
+ </div>
117
+
118
+ <!-- Features Section -->
119
+ <section class="px-6 py-20 bg-gradient-to-br from-blue-100 via-purple-50 to-pink-100 dark:from-gray-900 dark:via-indigo-900 dark:to-purple-900 transition-colors duration-500">
120
+ <div class="text-center mb-12">
121
+ <span class="text-sm font-semibold text-purple-700 dark:text-purple-300">⚑ Powerful Features</span>
122
+ <h2 class="text-3xl md:text-4xl font-bold mt-2 mb-4 text-blue-900 dark:text-blue-100">Everything You Need to Succeed</h2>
123
+ <p class="text-gray-700 dark:text-gray-200 max-w-2xl mx-auto">
124
+ Comprehensive AI-powered tools designed to guide you through every step of your academic journey.
125
+ </p>
126
+ </div>
127
+
128
+ <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 max-w-6xl mx-auto">
129
+ <!-- Card 1 -->
130
+ <div class="bg-white/80 dark:bg-gray-900/80 p-6 rounded-2xl shadow hover:shadow-lg transition border border-white/40 dark:border-gray-800/60">
131
+ <div class="text-3xl mb-4 text-purple-600">🧠</div>
132
+ <h3 class="text-xl font-semibold mb-2 dark:text-white">AI-Powered Assistance</h3>
133
+ <p class="text-gray-600 dark:text-gray-400 mb-4">Get personalized academic guidance with advanced AI that understands your goals</p>
134
+ <a href="#" class="text-sm font-semibold text-blue-600 dark:text-blue-400 hover:underline">Learn More β†’</a>
135
+ </div>
136
+
137
+ <!-- Card 2 -->
138
+ <div class="bg-white/80 dark:bg-gray-900/80 p-6 rounded-2xl shadow hover:shadow-lg transition border border-white/40 dark:border-gray-800/60">
139
+ <div class="text-3xl mb-4 text-pink-600">🌐</div>
140
+ <h3 class="text-xl font-semibold mb-2 dark:text-white">Global Opportunities</h3>
141
+ <p class="text-gray-600 dark:text-gray-400 mb-4">Discover hackathons, competitions, and scholarships worldwide</p>
142
+ <a href="#" class="text-sm font-semibold text-blue-600 dark:text-blue-400 hover:underline">Learn More β†’</a>
143
+ </div>
144
+
145
+ <!-- Card 3 -->
146
+ <div class="bg-white/80 dark:bg-gray-900/80 p-6 rounded-2xl shadow hover:shadow-lg transition border border-white/40 dark:border-gray-800/60">
147
+ <div class="text-3xl mb-4 text-green-600">πŸŽ“</div>
148
+ <h3 class="text-xl font-semibold mb-2 dark:text-white">University Matcher</h3>
149
+ <p class="text-gray-600 dark:text-gray-400 mb-4">Find the perfect universities based on your profile and preferences</p>
150
+ <a href="#" class="text-sm font-semibold text-blue-600 dark:text-blue-400 hover:underline">Learn More β†’</a>
151
+ </div>
152
+
153
+ <!-- Card 4 -->
154
+ <div class="bg-white/80 dark:bg-gray-900/80 p-6 rounded-2xl shadow hover:shadow-lg transition border border-white/40 dark:border-gray-800/60">
155
+ <div class="text-3xl mb-4 text-sky-600">πŸ”—</div>
156
+ <h3 class="text-xl font-semibold mb-2 dark:text-white">LinkedIn Evaluator</h3>
157
+ <p class="text-gray-600 dark:text-gray-400 mb-4">Optimize your LinkedIn profile for maximum academic and career impact</p>
158
+ <a href="#" class="text-sm font-semibold text-blue-600 dark:text-blue-400 hover:underline">Learn More β†’</a>
159
+ </div>
160
+
161
+ <!-- Card 5 -->
162
+ <div class="bg-white/80 dark:bg-gray-900/80 p-6 rounded-2xl shadow hover:shadow-lg transition border border-white/40 dark:border-gray-800/60">
163
+ <div class="text-3xl mb-4 text-orange-500">πŸ“Š</div>
164
+ <h3 class="text-xl font-semibold mb-2 dark:text-white">Academic Analyzer</h3>
165
+ <p class="text-gray-600 dark:text-gray-400 mb-4">Analyze your IELTS scores, CGPA, and get improvement suggestions</p>
166
+ <a href="#" class="text-sm font-semibold text-blue-600 dark:text-blue-400 hover:underline">Learn More β†’</a>
167
+ </div>
168
+
169
+ <!-- Card 6 -->
170
+ <div class="bg-white/80 dark:bg-gray-900/80 p-6 rounded-2xl shadow hover:shadow-lg transition border border-white/40 dark:border-gray-800/60">
171
+ <div class="text-3xl mb-4 text-green-500">πŸ“ˆ</div>
172
+ <h3 class="text-xl font-semibold mb-2 dark:text-white">Progress Tracker</h3>
173
+ <p class="text-gray-600 dark:text-gray-400 mb-4">Track your academic journey with interactive timelines and milestones</p>
174
+ <a href="#" class="text-sm font-semibold text-blue-600 dark:text-blue-400 hover:underline">Learn More β†’</a>
175
+ </div>
176
+ </div>
177
+ </section>
178
+
179
+ <!-- Call-to-Action Section -->
180
+ <section class="flex flex-col items-center justify-center py-20 px-4 bg-gradient-to-br from-blue-50 via-purple-50 to-pink-50 dark:from-gray-900 dark:via-indigo-900 dark:to-purple-900 transition-colors duration-500">
181
+ <div class="flex flex-col items-center max-w-xl w-full mx-auto">
182
+ <div class="mb-6">
183
+ <svg width="48" height="48" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="text-blue-500"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 20h9M12 4v16m0 0H3m9 0V4"/></svg>
184
+ </div>
185
+ <h2 class="text-3xl md:text-4xl font-extrabold text-gray-900 dark:text-white mb-4 text-center">Ready to Accelerate Your Success?</h2>
186
+ <p class="text-lg text-gray-600 dark:text-gray-300 mb-8 text-center">Join thousands of students who are already using ScholarGPT to achieve their academic goals and unlock opportunities worldwide.</p>
187
+ <a href="#" class="bg-blue-600 hover:bg-blue-700 text-white font-semibold px-8 py-3 rounded-xl shadow-md transition-all text-lg">Start Your Journey Today <span aria-hidden="true">β†’</span></a>
188
+ </div>
189
+ </section>
190
+
191
+ <script src="script.js"></script>
192
+
193
+
194
+ </body>
195
+ </html>
script.js ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ window.addEventListener('DOMContentLoaded', function () {
2
+ // Modal open/close logic (event delegation for reliability)
3
+ const modal = document.getElementById('user-modal');
4
+ const closeModalBtn = document.getElementById('close-modal');
5
+
6
+ document.body.addEventListener('click', function(e) {
7
+ const target = e.target.closest('.open-user-modal');
8
+ if (target) {
9
+ e.preventDefault();
10
+ if (modal) modal.classList.remove('hidden');
11
+ }
12
+ });
13
+
14
+ if (closeModalBtn) {
15
+ closeModalBtn.addEventListener('click', function() {
16
+ modal.classList.add('hidden');
17
+ });
18
+ }
19
+
20
+ // Close modal when clicking outside the modal content
21
+ if (modal) {
22
+ modal.addEventListener('click', function(e) {
23
+ if (e.target === modal) {
24
+ modal.classList.add('hidden');
25
+ }
26
+ });
27
+ }
28
+
29
+ // Handle user info form submission (profile creation in frontend)
30
+ const userInfoForm = document.getElementById('user-info-form');
31
+ if (userInfoForm) {
32
+ userInfoForm.addEventListener('submit', function(e) {
33
+ e.preventDefault();
34
+ const profile = {
35
+ name: userInfoForm.name.value,
36
+ qualification: userInfoForm.qualification.value,
37
+ ielts: userInfoForm.ielts.value,
38
+ cgpa: userInfoForm.cgpa.value,
39
+ interest: userInfoForm.interest.value
40
+ };
41
+ localStorage.setItem('scholargpt_profile', JSON.stringify(profile));
42
+ if (modal) modal.classList.add('hidden');
43
+ // Optionally, show a toast or redirect here
44
+ });
45
+ }
46
+ });