Spaces:
Running

File size: 17,421 Bytes
f9ca3a5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88bbadd
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>DocuFlow - Alternative to Coda.io</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <!-- PrimeVue Setup -->
    <link href="https://unpkg.com/primevue@latest/resources/themes/lara-light-indigo/theme.css" rel="stylesheet">
    <link href="https://unpkg.com/primevue@latest/resources/primevue.min.css" rel="stylesheet">
    <link href="https://unpkg.com/primeicons@latest/primeicons.css" rel="stylesheet">
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script src="https://unpkg.com/primevue@latest/core/core.min.js"></script>
    <script src="https://unpkg.com/primevue@latest/button/button.min.js"></script>
    <script src="https://unpkg.com/primevue@latest/card/card.min.js"></script>
    <script src="https://unpkg.com/primevue@latest/sidebar/sidebar.min.js"></script>
    <script src="https://unpkg.com/primevue@latest/inputtext/inputtext.min.js"></script>
    <script src="https://unpkg.com/primevue@latest/avatar/avatar.min.js"></script>
    <script src="https://unpkg.com/primevue@latest/tooltip/tooltip.min.js"></script>
<style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        body {
            font-family: 'Inter', sans-serif;
        }
        .doc-card {
            transition: all 0.3s ease;
        }
        .doc-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .sidebar-item:hover {
            background-color: rgba(59, 130, 246, 0.1);
        }
    </style>
</head>
<body id="app">
    <div class="fixed inset-0 -z-10 bg-gray-50"></div>
    <div class="flex h-screen">
        <!-- Sidebar -->
        <pv-sidebar :visible="true" :dismissable="false" class="w-64 bg-white border-r border-gray-200 shadow-sm">
            <div class="p-4 flex items-center space-x-2 border-b border-gray-200">
                <pv-avatar icon="pi pi-file" size="large" class="bg-blue-500 text-white"></pv-avatar>
                <h1 class="font-bold text-gray-800">DocuFlow</h1>
            </div>
<div class="p-4 flex-1 overflow-y-auto">
                <div class="space-y-1">
                    <pv-button label="Home" icon="pi pi-home" class="w-full p-button-text p-button-plain text-blue-600 font-medium"></pv-button>
                    <pv-button label="Documents" icon="pi pi-file" class="w-full p-button-text p-button-plain text-gray-600 hover:text-blue-600"></pv-button>
                    <pv-button label="Databases" icon="pi pi-database" class="w-full p-button-text p-button-plain text-gray-600 hover:text-blue-600"></pv-button>
                    <pv-button label="Team" icon="pi pi-users" class="w-full p-button-text p-button-plain text-gray-600 hover:text-blue-600"></pv-button>
                    <pv-button label="Settings" icon="pi pi-cog" class="w-full p-button-text p-button-plain text-gray-600 hover:text-blue-600"></pv-button>
</div>

                <div class="mt-8">
                    <h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2">Recent Documents</h3>
                    <div class="space-y-1">
                    <pv-button label="Project Roadmap" icon="pi pi-file" class="w-full p-button-text p-button-plain text-gray-600 hover:text-blue-600"></pv-button>
                    <pv-button label="Meeting Notes" icon="pi pi-file" class="w-full p-button-text p-button-plain text-gray-600 hover:text-blue-600"></pv-button>
                    <pv-button label="Product Specs" icon="pi pi-file" class="w-full p-button-text p-button-plain text-gray-600 hover:text-blue-600"></pv-button>
</div>
                </div>
            </div>
            <div class="p-4 border-t border-gray-200">
                <div class="flex items-center space-x-3">
                <pv-avatar icon="pi pi-user" class="bg-gray-200 text-gray-600"></pv-avatar>
<div>
                        <p class="text-sm font-medium">John Doe</p>
                        <p class="text-xs text-gray-500">john@example.com</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- Main Content -->
        <div class="flex-1 flex flex-col overflow-hidden">
            <!-- Top Navigation -->
            <div class="bg-white border-b border-gray-200 p-4 flex items-center justify-between">
                <div class="flex items-center space-x-4">
                    <h2 class="text-xl font-semibold text-gray-800">Dashboard</h2>
                </div>
                <div class="flex items-center space-x-4">
                    <div class="relative">
                    <pv-inputtext placeholder="Search..." class="pl-8">
                        <template #prefix>
                            <i class="pi pi-search text-gray-400"></i>
                        </template>
                    </pv-inputtext>
</div>
                    <pv-button icon="pi pi-bell" class="p-button-rounded p-button-text"></pv-button>
                    <pv-button icon="pi pi-question-circle" class="p-button-rounded p-button-text"></pv-button>
</div>
            </div>

            <!-- Content Area -->
            <div class="flex-1 overflow-y-auto p-6">
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                    <!-- Quick Actions -->
                    <div class="bg-white rounded-xl shadow-sm p-6">
                        <div class="flex items-center justify-between mb-4">
                            <h3 class="font-semibold text-gray-800">Quick Actions</h3>
                        </div>
                        <div class="grid grid-cols-2 gap-3">
                            <button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:border-blue-500 hover:bg-blue-50 transition-all">
                                <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mb-2">
                                    <i data-feather="file-plus" class="text-blue-500"></i>
                                </div>
                                <span class="text-sm font-medium">New Doc</span>
                            </button>
                            <button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:border-blue-500 hover:bg-blue-50 transition-all">
                                <div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mb-2">
                                    <i data-feather="database" class="text-purple-500"></i>
                                </div>
                                <span class="text-sm font-medium">New Table</span>
                            </button>
                            <button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:border-blue-500 hover:bg-blue-50 transition-all">
                                <div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mb-2">
                                    <i data-feather="users" class="text-green-500"></i>
                                </div>
                                <span class="text-sm font-medium">New Team</span>
                            </button>
                            <button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:border-blue-500 hover:bg-blue-50 transition-all">
                                <div class="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center mb-2">
                                    <i data-feather="share-2" class="text-yellow-500"></i>
                                </div>
                                <span class="text-sm font-medium">Share</span>
                            </button>
                        </div>
                    </div>

                    <!-- Recent Documents -->
                    <div class="bg-white rounded-xl shadow-sm p-6 col-span-1 md:col-span-2">
                        <div class="flex items-center justify-between mb-4">
                            <h3 class="font-semibold text-gray-800">Recent Documents</h3>
                            <button class="text-sm text-blue-500 hover:text-blue-600">View All</button>
                        </div>
                        <div class="space-y-4">
                            <div class="doc-card p-4 rounded-lg border border-gray-200 hover:border-blue-500 cursor-pointer">
                                <div class="flex items-start space-x-3">
                                    <div class="w-10 h-10 rounded-lg bg-blue-100 flex items-center justify-center flex-shrink-0">
                                        <i data-feather="file-text" class="text-blue-500"></i>
                                    </div>
                                    <div>
                                        <h4 class="font-medium text-gray-800">Product Launch Plan</h4>
                                        <p class="text-sm text-gray-500 mt-1">Updated 2 hours ago</p>
                                    </div>
                                    <div class="ml-auto flex space-x-2">
                                        <div class="w-6 h-6 rounded-full bg-gray-200"></div>
                                        <div class="w-6 h-6 rounded-full bg-gray-300"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="doc-card p-4 rounded-lg border border-gray-200 hover:border-blue-500 cursor-pointer">
                                <div class="flex items-start space-x-3">
                                    <div class="w-10 h-10 rounded-lg bg-green-100 flex items-center justify-center flex-shrink-0">
                                        <i data-feather="file-text" class="text-green-500"></i>
                                    </div>
                                    <div>
                                        <h4 class="font-medium text-gray-800">Q2 Marketing Strategy</h4>
                                        <p class="text-sm text-gray-500 mt-1">Updated yesterday</p>
                                    </div>
                                    <div class="ml-auto flex space-x-2">
                                        <div class="w-6 h-6 rounded-full bg-gray-200"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="doc-card p-4 rounded-lg border border-gray-200 hover:border-blue-500 cursor-pointer">
                                <div class="flex items-start space-x-3">
                                    <div class="w-10 h-10 rounded-lg bg-purple-100 flex items-center justify-center flex-shrink-0">
                                        <i data-feather="file-text" class="text-purple-500"></i>
                                    </div>
                                    <div>
                                        <h4 class="font-medium text-gray-800">Customer Feedback Analysis</h4>
                                        <p class="text-sm text-gray-500 mt-1">Updated 3 days ago</p>
                                    </div>
                                    <div class="ml-auto flex space-x-2">
                                        <div class="w-6 h-6 rounded-full bg-gray-200"></div>
                                        <div class="w-6 h-6 rounded-full bg-gray-300"></div>
                                        <div class="w-6 h-6 rounded-full bg-gray-400"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Team Activity -->
                    <div class="bg-white rounded-xl shadow-sm p-6">
                        <div class="flex items-center justify-between mb-4">
                            <h3 class="font-semibold text-gray-800">Team Activity</h3>
                        </div>
                        <div class="space-y-4">
                            <div class="flex items-start space-x-3">
                                <div class="w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center flex-shrink-0">
                                    <i data-feather="user" class="text-gray-600"></i>
                                </div>
                                <div>
                                    <p class="text-sm text-gray-800"><span class="font-medium">Sarah</span> edited <span class="text-blue-500">Product Roadmap</span></p>
                                    <p class="text-xs text-gray-500 mt-1">15 minutes ago</p>
                                </div>
                            </div>
                            <div class="flex items-start space-x-3">
                                <div class="w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center flex-shrink-0">
                                    <i data-feather="user" class="text-gray-600"></i>
                                </div>
                                <div>
                                    <p class="text-sm text-gray-800"><span class="font-medium">Alex</span> commented on <span class="text-blue-500">Marketing Plan</span></p>
                                    <p class="text-xs text-gray-500 mt-1">1 hour ago</p>
                                </div>
                            </div>
                            <div class="flex items-start space-x-3">
                                <div class="w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center flex-shrink-0">
                                    <i data-feather="user" class="text-gray-600"></i>
                                </div>
                                <div>
                                    <p class="text-sm text-gray-800"><span class="font-medium">Mike</span> created <span class="text-blue-500">New Database</span></p>
                                    <p class="text-xs text-gray-500 mt-1">2 hours ago</p>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Documentation -->
                    <div class="bg-white rounded-xl shadow-sm p-6">
                        <div class="flex items-center justify-between mb-4">
                            <h3 class="font-semibold text-gray-800">Getting Started</h3>
                        </div>
                        <div class="space-y-3">
                            <div class="p-3 rounded-lg bg-blue-50 border border-blue-100 flex items-start space-x-3">
                                <div class="w-6 h-6 rounded-full bg-blue-100 flex items-center justify-center flex-shrink-0">
                                    <i data-feather="info" class="text-blue-500 w-3 h-3"></i>
                                </div>
                                <p class="text-sm text-gray-700">Connect your favorite apps and pull data directly into your docs</p>
                            </div>
                            <div class="p-3 rounded-lg bg-purple-50 border border-purple-100 flex items-start space-x-3">
                                <div class="w-6 h-6 rounded-full bg-purple-100 flex items-center justify-center flex-shrink-0">
                                    <i data-feather="zap" class="text-purple-500 w-3 h-3"></i>
                                </div>
                                <p class="text-sm text-gray-700">Use templates to kickstart your projects in seconds</p>
                            </div>
                            <div class="p-3 rounded-lg bg-green-50 border border-green-100 flex items-start space-x-3">
                                <div class="w-6 h-6 rounded-full bg-green-100 flex items-center justify-center flex-shrink-0">
                                    <i data-feather="users" class="text-green-500 w-3 h-3"></i>
                                </div>
                                <p class="text-sm text-gray-700">Invite your team and collaborate in real-time</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
        const { createApp } = Vue;
        const { createPinia } = Pinia;
        
        const app = createApp({
            data() {
                return {
                    visibleSidebar: true
                }
            }
        });
        
        app.use(primevue.config.default);
        
        // Register PrimeVue components
        app.component('PvButton', primevue.button);
        app.component('PvCard', primevue.card);
        app.component('PvSidebar', primevue.sidebar);
        app.component('PvInputText', primevue.inputtext);
        app.component('PvAvatar', primevue.avatar);
        app.component('PvTooltip', primevue.tooltip);
        
        app.mount('#app');
    </script>
</body>
</html>