Spaces:
Running

undefined / index.html
unidel's picture
изпользуй только prime vue
f9ca3a5 verified
Raw History Blame Contribute Delete
17.4 kB
<!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>