CHieuu commited on
Commit
fcd9a7d
·
verified ·
1 Parent(s): f51fde1

https://unlucid.ai/ tạo giúp tôi 1 bản y hệt các chức năng

Browse files
Files changed (6) hide show
  1. README.md +7 -4
  2. components/footer.js +70 -0
  3. components/navbar.js +64 -0
  4. index.html +117 -19
  5. script.js +36 -0
  6. style.css +28 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Lucidai Clone Wizard
3
- emoji: 👁
4
  colorFrom: pink
5
- colorTo: yellow
 
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: LucidAI Clone Wizard 🧙‍♂️
 
3
  colorFrom: pink
4
+ colorTo: pink
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/footer.js ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .footer-link:hover {
7
+ color: #2563eb;
8
+ transition: color 0.2s ease;
9
+ }
10
+ </style>
11
+ <footer class="bg-gray-100 border-t border-gray-200 py-12">
12
+ <div class="container mx-auto px-4">
13
+ <div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-8">
14
+ <div class="col-span-2">
15
+ <div class="flex items-center mb-4">
16
+ <i data-feather="activity" class="text-blue-600 mr-2"></i>
17
+ <span class="text-xl font-bold">LucidAI</span>
18
+ </div>
19
+ <p class="text-gray-600 mb-4">
20
+ AI-powered research assistant helping you unlock insights from academic papers.
21
+ </p>
22
+ <div class="flex space-x-4">
23
+ <a href="#" class="text-gray-500 hover:text-blue-600"><i data-feather="twitter"></i></a>
24
+ <a href="#" class="text-gray-500 hover:text-blue-600"><i data-feather="github"></i></a>
25
+ <a href="#" class="text-gray-500 hover:text-blue-600"><i data-feather="linkedin"></i></a>
26
+ </div>
27
+ </div>
28
+
29
+ <div>
30
+ <h4 class="font-bold text-lg mb-4">Product</h4>
31
+ <ul class="space-y-2">
32
+ <li><a href="/features" class="footer-link text-gray-600">Features</a></li>
33
+ <li><a href="/pricing" class="footer-link text-gray-600">Pricing</a></li>
34
+ <li><a href="/demo" class="footer-link text-gray-600">Demo</a></li>
35
+ </ul>
36
+ </div>
37
+
38
+ <div>
39
+ <h4 class="font-bold text-lg mb-4">Resources</h4>
40
+ <ul class="space-y-2">
41
+ <li><a href="/docs" class="footer-link text-gray-600">Documentation</a></li>
42
+ <li><a href="/blog" class="footer-link text-gray-600">Blog</a></li>
43
+ <li><a href="/research" class="footer-link text-gray-600">Research</a></li>
44
+ </ul>
45
+ </div>
46
+
47
+ <div>
48
+ <h4 class="font-bold text-lg mb-4">Company</h4>
49
+ <ul class="space-y-2">
50
+ <li><a href="/about" class="footer-link text-gray-600">About</a></li>
51
+ <li><a href="/careers" class="footer-link text-gray-600">Careers</a></li>
52
+ <li><a href="/contact" class="footer-link text-gray-600">Contact</a></li>
53
+ </ul>
54
+ </div>
55
+ </div>
56
+
57
+ <div class="border-t border-gray-200 mt-8 pt-8 flex flex-col md:flex-row justify-between items-center">
58
+ <p class="text-gray-500 mb-4 md:mb-0">© 2023 LucidAI. All rights reserved.</p>
59
+ <div class="flex space-x-6">
60
+ <a href="/privacy" class="footer-link text-gray-500">Privacy</a>
61
+ <a href="/terms" class="footer-link text-gray-500">Terms</a>
62
+ <a href="/cookies" class="footer-link text-gray-500">Cookies</a>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ </footer>
67
+ `;
68
+ }
69
+ }
70
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .navbar {
7
+ backdrop-filter: blur(10px);
8
+ background-color: rgba(255, 255, 255, 0.8);
9
+ }
10
+ @media (prefers-color-scheme: dark) {
11
+ .navbar {
12
+ background-color: rgba(26, 32, 44, 0.8);
13
+ }
14
+ }
15
+ .nav-link {
16
+ position: relative;
17
+ }
18
+ .nav-link:after {
19
+ content: '';
20
+ position: absolute;
21
+ width: 0;
22
+ height: 2px;
23
+ bottom: -2px;
24
+ left: 0;
25
+ background-color: #2563eb;
26
+ transition: width 0.3s ease;
27
+ }
28
+ .nav-link:hover:after {
29
+ width: 100%;
30
+ }
31
+ </style>
32
+ <nav class="navbar sticky top-0 z-50 border-b border-gray-200">
33
+ <div class="container mx-auto px-4">
34
+ <div class="flex justify-between items-center py-4">
35
+ <div class="flex items-center">
36
+ <a href="/" class="flex items-center text-xl font-bold">
37
+ <i data-feather="activity" class="text-blue-600 mr-2"></i>
38
+ <span>LucidAI</span>
39
+ </a>
40
+ </div>
41
+
42
+ <div class="hidden md:flex items-center space-x-8">
43
+ <a href="/features" class="nav-link">Features</a>
44
+ <a href="/pricing" class="nav-link">Pricing</a>
45
+ <a href="/research" class="nav-link">Research</a>
46
+ <a href="/about" class="nav-link">About</a>
47
+ </div>
48
+
49
+ <div class="flex items-center space-x-4">
50
+ <a href="/login" class="px-4 py-2 font-medium">Log in</a>
51
+ <a href="/signup" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg font-medium transition-colors">
52
+ Sign up
53
+ </a>
54
+ <button class="md:hidden">
55
+ <i data-feather="menu"></i>
56
+ </button>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </nav>
61
+ `;
62
+ }
63
+ }
64
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,117 @@
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">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>LucidAI Clone</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://unpkg.com/feather-icons"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="components/navbar.js"></script>
12
+ <script src="components/footer.js"></script>
13
+ </head>
14
+ <body class="bg-gray-50 text-gray-800">
15
+ <custom-navbar></custom-navbar>
16
+
17
+ <main class="container mx-auto px-4 py-12">
18
+ <!-- Hero Section -->
19
+ <section class="text-center py-20">
20
+ <h1 class="text-5xl font-bold mb-6">AI-powered research assistant</h1>
21
+ <p class="text-xl text-gray-600 max-w-2xl mx-auto mb-10">
22
+ Unlock insights from research papers instantly with our AI-powered assistant.
23
+ </p>
24
+ <div class="flex justify-center gap-4">
25
+ <a href="/signup" class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-lg font-medium transition-colors">
26
+ Get Started
27
+ </a>
28
+ <a href="/features" class="border border-gray-300 hover:bg-gray-100 px-6 py-3 rounded-lg font-medium transition-colors">
29
+ Learn More
30
+ </a>
31
+ </div>
32
+ </section>
33
+
34
+ <!-- Demo Section -->
35
+ <section class="my-20">
36
+ <div class="bg-white rounded-xl shadow-lg overflow-hidden">
37
+ <div class="p-6 border-b border-gray-200">
38
+ <div class="flex space-x-2">
39
+ <div class="w-3 h-3 rounded-full bg-red-500"></div>
40
+ <div class="w-3 h-3 rounded-full bg-yellow-500"></div>
41
+ <div class="w-3 h-3 rounded-full bg-green-500"></div>
42
+ </div>
43
+ </div>
44
+ <div class="p-6 bg-gray-900 text-white">
45
+ <div class="flex items-center mb-4">
46
+ <i data-feather="search" class="mr-2"></i>
47
+ <span class="font-mono">Search research papers...</span>
48
+ </div>
49
+ <div class="bg-gray-800 rounded-lg p-6">
50
+ <div class="animate-pulse">
51
+ <div class="h-4 bg-gray-700 rounded mb-3 w-3/4"></div>
52
+ <div class="h-4 bg-gray-700 rounded mb-3 w-1/2"></div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </section>
58
+
59
+ <!-- Features Section -->
60
+ <section class="my-20">
61
+ <h2 class="text-3xl font-bold text-center mb-16">Key Features</h2>
62
+ <div class="grid md:grid-cols-3 gap-8">
63
+ <div class="bg-white p-8 rounded-xl shadow-md">
64
+ <i data-feather="search" class="w-10 h-10 text-blue-600 mb-4"></i>
65
+ <h3 class="text-xl font-bold mb-3">Smart Search</h3>
66
+ <p class="text-gray-600">Find relevant papers instantly with AI-powered semantic search.</p>
67
+ </div>
68
+ <div class="bg-white p-8 rounded-xl shadow-md">
69
+ <i data-feather="book-open" class="w-10 h-10 text-blue-600 mb-4"></i>
70
+ <h3 class="text-xl font-bold mb-3">Summarization</h3>
71
+ <p class="text-gray-600">Get concise summaries of complex research papers in seconds.</p>
72
+ </div>
73
+ <div class="bg-white p-8 rounded-xl shadow-md">
74
+ <i data-feather="lightbulb" class="w-10 h-10 text-blue-600 mb-4"></i>
75
+ <h3 class="text-xl font-bold mb-3">Insight Extraction</h3>
76
+ <p class="text-gray-600">Extract key insights and findings without reading the full paper.</p>
77
+ </div>
78
+ </div>
79
+ </section>
80
+
81
+ <!-- Testimonials -->
82
+ <section class="my-20">
83
+ <h2 class="text-3xl font-bold text-center mb-16">Trusted by Researchers</h2>
84
+ <div class="grid md:grid-cols-2 gap-8">
85
+ <div class="bg-white p-8 rounded-xl shadow-md">
86
+ <div class="flex items-center mb-4">
87
+ <div class="w-12 h-12 rounded-full bg-gray-300 mr-4"></div>
88
+ <div>
89
+ <h4 class="font-bold">Dr. Sarah Johnson</h4>
90
+ <p class="text-gray-600">Neuroscience Researcher</p>
91
+ </div>
92
+ </div>
93
+ <p class="text-gray-700">"LucidAI has transformed how I conduct literature reviews, saving me hours of reading time."</p>
94
+ </div>
95
+ <div class="bg-white p-8 rounded-xl shadow-md">
96
+ <div class="flex items-center mb-4">
97
+ <div class="w-12 h-12 rounded-full bg-gray-300 mr-4"></div>
98
+ <div>
99
+ <h4 class="font-bold">Prof. Michael Chen</h4>
100
+ <p class="text-gray-600">Computer Science</p>
101
+ </div>
102
+ </div>
103
+ <p class="text-gray-700">"The AI insights help me stay on top of the latest developments in my field with minimal effort."</p>
104
+ </div>
105
+ </div>
106
+ </section>
107
+ </main>
108
+
109
+ <custom-footer></custom-footer>
110
+
111
+ <script>
112
+ feather.replace();
113
+ </script>
114
+ <script src="script.js"></script>
115
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
116
+ </body>
117
+ </html>
script.js ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Main application script
2
+ document.addEventListener('DOMContentLoaded', function() {
3
+ // Initialize tooltips
4
+ const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
5
+ tooltipTriggerList.map(function (tooltipTriggerEl) {
6
+ return new bootstrap.Tooltip(tooltipTriggerEl);
7
+ });
8
+
9
+ // Smooth scrolling for anchor links
10
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
11
+ anchor.addEventListener('click', function (e) {
12
+ e.preventDefault();
13
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
14
+ behavior: 'smooth'
15
+ });
16
+ });
17
+ });
18
+
19
+ // Demo animation
20
+ const demoBox = document.querySelector('.animate-pulse');
21
+ if (demoBox) {
22
+ setTimeout(() => {
23
+ demoBox.innerHTML = `
24
+ <div class="mb-4">
25
+ <div class="h-4 bg-gray-700 rounded mb-2 w-full"></div>
26
+ <div class="h-4 bg-gray-700 rounded mb-2 w-5/6"></div>
27
+ <div class="h-4 bg-gray-700 rounded mb-2 w-2/3"></div>
28
+ </div>
29
+ <div class="flex">
30
+ <div class="h-3 w-3 rounded-full bg-blue-500 mr-2"></div>
31
+ <div class="h-3 w-20 bg-gray-700 rounded"></div>
32
+ </div>
33
+ `;
34
+ }, 3000);
35
+ }
36
+ });
style.css CHANGED
@@ -1,28 +1,38 @@
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
 
 
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
28
  }
 
 
 
 
 
1
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
2
+
3
  body {
4
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
5
+ line-height: 1.5;
6
+ }
7
+
8
+ .animate-pulse {
9
+ animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
10
  }
11
 
12
+ @keyframes pulse {
13
+ 0%, 100% {
14
+ opacity: 1;
15
+ }
16
+ 50% {
17
+ opacity: 0.5;
18
+ }
19
  }
20
 
21
+ /* Custom scrollbar */
22
+ ::-webkit-scrollbar {
23
+ width: 8px;
24
+ height: 8px;
 
25
  }
26
 
27
+ ::-webkit-scrollbar-track {
28
+ background: #f1f1f1;
 
 
 
 
29
  }
30
 
31
+ ::-webkit-scrollbar-thumb {
32
+ background: #888;
33
+ border-radius: 4px;
34
  }
35
+
36
+ ::-webkit-scrollbar-thumb:hover {
37
+ background: #555;
38
+ }