forked from neharmenon05/cloud_dbms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
137 lines (131 loc) Β· 5.94 KB
/
Copy pathindex.html
File metadata and controls
137 lines (131 loc) Β· 5.94 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>StudyHub - Your Learning Companion</title>
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="styles/modern-theme.css">
</head>
<body>
<div class="landing-container">
<header class="landing-header">
<div class="container">
<div class="logo">
<h1>π StudyHub</h1>
</div>
<nav>
<button class="btn-primary" onclick="showAuth('login')">Login</button>
<button class="btn-secondary" onclick="showAuth('signup')">Sign Up</button>
</nav>
</div>
</header>
<main class="landing-main">
<div class="container">
<div class="hero">
<div class="hero-card glass-card">
<h1>Your Complete Learning Platform</h1>
<p class="hero-subtitle">Connect students and teachers in one powerful educational hub</p>
<div class="hero-buttons">
<button class="btn-primary btn-large" onclick="showAuth('signup')">Get Started</button>
<button class="btn-secondary btn-large" onclick="showAuth('login')">Login</button>
</div>
</div>
</div>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon">π</div>
<h3>Study Resources</h3>
<p>Organize and share study materials by subject and chapter</p>
</div>
<div class="feature-card">
<div class="feature-icon">π</div>
<h3>Assignments</h3>
<p>Create, submit, and grade assignments seamlessly</p>
</div>
<div class="feature-card">
<div class="feature-icon">π€</div>
<h3>AI Assistant</h3>
<p>Get document summaries and personalized study plans</p>
</div>
<div class="feature-card">
<div class="feature-icon">π</div>
<h3>Flashcards</h3>
<p>Create and study with interactive flashcards</p>
</div>
<div class="feature-card">
<div class="feature-icon">β°</div>
<h3>Study Timer</h3>
<p>Stay focused with Pomodoro technique timer</p>
</div>
<div class="feature-card">
<div class="feature-icon">β</div>
<h3>Peer Reviews</h3>
<p>Rate and comment on shared resources</p>
</div>
</div>
</div>
</main>
</div>
<!-- Auth Modal -->
<div id="authModal" class="modal">
<div class="modal-content">
<span class="close" onclick="closeAuth()">×</span>
<!-- Login Form -->
<div id="loginForm" class="auth-form">
<h2>Welcome Back</h2>
<form onsubmit="handleLogin(event)">
<div class="form-group">
<label for="loginEmail">Email</label>
<input type="email" id="loginEmail" required>
</div>
<div class="form-group">
<label for="loginPassword">Password</label>
<input type="password" id="loginPassword" required>
</div>
<button type="submit" class="btn-primary btn-full">Login</button>
</form>
<p class="auth-switch">
Don't have an account?
<a href="#" onclick="showAuth('signup')">Sign up</a>
</p>
</div>
<!-- Signup Form -->
<div id="signupForm" class="auth-form" style="display: none;">
<h2>Join StudyHub</h2>
<form onsubmit="handleSignup(event)">
<div class="form-group">
<label for="signupName">Full Name</label>
<input type="text" id="signupName" required>
</div>
<div class="form-group">
<label for="signupEmail">Email</label>
<input type="email" id="signupEmail" required>
</div>
<div class="form-group">
<label for="signupPassword">Password</label>
<input type="password" id="signupPassword" required minlength="6">
</div>
<div class="form-group">
<label for="userRole">I am a:</label>
<select id="userRole" required>
<option value="">Select role</option>
<option value="student">Student</option>
<option value="teacher">Teacher</option>
</select>
</div>
<button type="submit" class="btn-primary btn-full">Sign Up</button>
</form>
<p class="auth-switch">
Already have an account?
<a href="#" onclick="showAuth('login')">Login</a>
</p>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
<script src="js/supabase-config.js"></script>
<script src="js/utils.js"></script>
<script src="js/auth.js"></script>
</body>
</html>