-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgroups.html
More file actions
64 lines (59 loc) · 3.13 KB
/
Copy pathgroups.html
File metadata and controls
64 lines (59 loc) · 3.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Groups | AI Dream Chat</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
// Customizing the Tailwind color for the main brand color
tailwind.config = {
theme: {
extend: {
colors: {
'brand-primary': '#68074C',
'brand-hover': '#4a0535',
'brand-secondary-light': '#F6E6F2',
}
}
}
}
</script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</head>
<body class="bg-gray-100 min-h-screen antialiased">
<nav class="sticky top-0 z-50 bg-white shadow-md h-16 flex items-center">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full flex justify-between items-center">
<div class="flex items-center">
<p class="ml-2 text-xl font-extrabold text-gray-900 tracking-tight">AI Dream Chat</p>
</div>
<div class="hidden md:flex items-center space-x-6 text-base font-medium">
<a href="dashboard.html" class="text-gray-600 hover:text-brand-primary transition duration-150">Dashboard</a>
<a href="groups.html" class="text-brand-primary border-b-2 border-brand-primary pb-1 font-semibold transition duration-150">Group</a>
<button onclick="logout()" class="text-sm font-medium text-white bg-red-500 hover:bg-red-600 py-1.5 px-4 rounded-full ml-4 shadow-sm">Logout</button>
</div>
</div>
</nav>
<main class="max-w-3xl mx-auto mt-10 px-4 sm:px-6 lg:px-8">
<h1 class="text-3xl font-extrabold text-gray-900 mb-6 border-b pb-2">Group Management</h1>
<div class="bg-white shadow-xl rounded-xl p-6 mb-8 border border-gray-200">
<h2 class="text-2xl font-bold text-gray-800 mb-4">Create New Group</h2>
<form id="createGroupForm" onsubmit="handleCreateGroup(event)">
<div class="mb-4">
<label for="groupName" class="block text-sm font-medium text-gray-700 mb-1">Group Name</label>
<input type="text" id="groupName" name="name" required class="w-full px-3 py-2 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-brand-primary focus:border-brand-primary" placeholder="e.g., The Lucid Dreamers">
</div>
<button type="submit" id="createGroupButton" class="w-full bg-brand-primary hover:bg-brand-hover text-white font-semibold py-2 px-4 rounded-lg transition duration-200">
Create Group
</button>
<p id="groupMessage" class="mt-3 text-sm font-medium"></p>
</form>
</div>
<h2 class="text-2xl font-bold text-gray-800 mb-4">Your Groups</h2>
<div id="groupsContainer" class="space-y-6">
<p id="loadingGroups" class="text-gray-500 text-center py-4">Loading your groups...</p>
</div>
</main>
<script src="groups.js"></script>
</body>
</html>