manishaegis commited on
Commit
94c5e6a
Β·
verified Β·
1 Parent(s): 1060668

Create Biolink maker webapp

Browse files
Files changed (6) hide show
  1. README.md +8 -5
  2. components/footer.js +69 -0
  3. components/navbar.js +54 -0
  4. index.html +101 -19
  5. script.js +34 -0
  6. style.css +26 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Linkhive The Ultimate Biolink Maker
3
- emoji: πŸƒ
4
- colorFrom: gray
5
- colorTo: purple
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: LinkHive - The Ultimate Biolink Maker 🐝
3
+ colorFrom: green
4
+ colorTo: gray
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,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .footer-link:hover {
7
+ color: #f59e0b;
8
+ transform: translateX(4px);
9
+ }
10
+ .footer-link {
11
+ transition: all 0.2s ease;
12
+ }
13
+ </style>
14
+ <footer class="bg-gray-800 text-white py-12">
15
+ <div class="container mx-auto px-4">
16
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
17
+ <div>
18
+ <h3 class="text-xl font-bold mb-4 text-amber-400">LinkHive</h3>
19
+ <p class="text-gray-400">The ultimate biolink maker for creators, businesses, and influencers.</p>
20
+ </div>
21
+
22
+ <div>
23
+ <h4 class="font-bold mb-4">Product</h4>
24
+ <ul class="space-y-2">
25
+ <li><a href="/features" class="footer-link text-gray-400">Features</a></li>
26
+ <li><a href="/pricing" class="footer-link text-gray-400">Pricing</a></li>
27
+ <li><a href="/templates" class="footer-link text-gray-400">Templates</a></li>
28
+ <li><a href="/updates" class="footer-link text-gray-400">Updates</a></li>
29
+ </ul>
30
+ </div>
31
+
32
+ <div>
33
+ <h4 class="font-bold mb-4">Company</h4>
34
+ <ul class="space-y-2">
35
+ <li><a href="/about" class="footer-link text-gray-400">About</a></li>
36
+ <li><a href="/careers" class="footer-link text-gray-400">Careers</a></li>
37
+ <li><a href="/blog" class="footer-link text-gray-400">Blog</a></li>
38
+ <li><a href="/press" class="footer-link text-gray-400">Press</a></li>
39
+ </ul>
40
+ </div>
41
+
42
+ <div>
43
+ <h4 class="font-bold mb-4">Connect</h4>
44
+ <div class="flex space-x-4">
45
+ <a href="#" class="text-gray-400 hover:text-amber-400">
46
+ <i data-feather="twitter"></i>
47
+ </a>
48
+ <a href="#" class="text-gray-400 hover:text-amber-400">
49
+ <i data-feather="instagram"></i>
50
+ </a>
51
+ <a href="#" class="text-gray-400 hover:text-amber-400">
52
+ <i data-feather="facebook"></i>
53
+ </a>
54
+ <a href="#" class="text-gray-400 hover:text-amber-400">
55
+ <i data-feather="linkedin"></i>
56
+ </a>
57
+ </div>
58
+ </div>
59
+ </div>
60
+
61
+ <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
62
+ <p>Β© ${new Date().getFullYear()} LinkHive. All rights reserved.</p>
63
+ </div>
64
+ </div>
65
+ </footer>
66
+ `;
67
+ }
68
+ }
69
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .navbar {
7
+ transition: all 0.3s ease;
8
+ }
9
+ .nav-link {
10
+ position: relative;
11
+ }
12
+ .nav-link:after {
13
+ content: '';
14
+ position: absolute;
15
+ width: 0;
16
+ height: 2px;
17
+ bottom: -2px;
18
+ left: 0;
19
+ background-color: #f59e0b;
20
+ transition: width 0.3s ease;
21
+ }
22
+ .nav-link:hover:after {
23
+ width: 100%;
24
+ }
25
+ </style>
26
+ <nav class="navbar bg-white shadow-sm py-4">
27
+ <div class="container mx-auto px-4 flex justify-between items-center">
28
+ <a href="/" class="flex items-center">
29
+ <span class="text-2xl font-bold text-amber-500">LinkHive</span>
30
+ </a>
31
+
32
+ <div class="hidden md:flex space-x-8">
33
+ <a href="/features" class="nav-link text-gray-700 hover:text-amber-500">Features</a>
34
+ <a href="/pricing" class="nav-link text-gray-700 hover:text-amber-500">Pricing</a>
35
+ <a href="/templates" class="nav-link text-gray-700 hover:text-amber-500">Templates</a>
36
+ <a href="/blog" class="nav-link text-gray-700 hover:text-amber-500">Blog</a>
37
+ </div>
38
+
39
+ <div class="flex items-center space-x-4">
40
+ <a href="/login" class="text-gray-700 hover:text-amber-500">Log In</a>
41
+ <a href="/signup" class="bg-amber-500 hover:bg-amber-600 text-white px-4 py-2 rounded-full transition duration-300">
42
+ Sign Up
43
+ </a>
44
+ </div>
45
+
46
+ <button class="md:hidden focus:outline-none">
47
+ <i data-feather="menu" class="text-gray-700"></i>
48
+ </button>
49
+ </div>
50
+ </nav>
51
+ `;
52
+ }
53
+ }
54
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,101 @@
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>LinkHive - Biolink Maker</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ </head>
12
+ <body class="bg-gray-50">
13
+ <custom-navbar></custom-navbar>
14
+
15
+ <main class="container mx-auto px-4 py-8">
16
+ <section class="text-center mb-12">
17
+ <h1 class="text-4xl md:text-5xl font-bold text-gray-800 mb-4">Your Links. One Place.</h1>
18
+ <p class="text-xl text-gray-600 max-w-2xl mx-auto">Create beautiful biolink pages to share all your important links in one place.</p>
19
+ <div class="mt-8">
20
+ <a href="/dashboard" class="bg-amber-500 hover:bg-amber-600 text-white font-bold py-3 px-8 rounded-full text-lg transition duration-300 inline-flex items-center">
21
+ Get Started <i data-feather="arrow-right" class="ml-2"></i>
22
+ </a>
23
+ </div>
24
+ </section>
25
+
26
+ <section class="mb-16">
27
+ <div class="bg-white rounded-xl shadow-lg p-6 max-w-4xl mx-auto">
28
+ <div class="flex flex-col md:flex-row items-center">
29
+ <div class="md:w-1/2 mb-6 md:mb-0 md:pr-8">
30
+ <h2 class="text-2xl font-bold text-gray-800 mb-4">Example Bio Link</h2>
31
+ <div class="space-y-4">
32
+ <div class="bg-gray-100 p-4 rounded-lg hover:bg-amber-50 transition duration-300">
33
+ <div class="flex items-center">
34
+ <div class="bg-amber-100 p-2 rounded-full mr-3">
35
+ <i data-feather="instagram" class="text-amber-600"></i>
36
+ </div>
37
+ <span class="font-medium">Instagram</span>
38
+ </div>
39
+ </div>
40
+ <div class="bg-gray-100 p-4 rounded-lg hover:bg-amber-50 transition duration-300">
41
+ <div class="flex items-center">
42
+ <div class="bg-amber-100 p-2 rounded-full mr-3">
43
+ <i data-feather="youtube" class="text-amber-600"></i>
44
+ </div>
45
+ <span class="font-medium">YouTube Channel</span>
46
+ </div>
47
+ </div>
48
+ <div class="bg-gray-100 p-4 rounded-lg hover:bg-amber-50 transition duration-300">
49
+ <div class="flex items-center">
50
+ <div class="bg-amber-100 p-2 rounded-full mr-3">
51
+ <i data-feather="shopping-bag" class="text-amber-600"></i>
52
+ </div>
53
+ <span class="font-medium">My Online Store</span>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ <div class="md:w-1/2">
59
+ <img src="http://static.photos/technology/640x360/42" alt="Biolink example" class="rounded-lg shadow">
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </section>
64
+
65
+ <section class="mb-16">
66
+ <h2 class="text-3xl font-bold text-center text-gray-800 mb-12">Why Choose LinkHive?</h2>
67
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
68
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300">
69
+ <div class="bg-amber-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
70
+ <i data-feather="zap" class="text-amber-600"></i>
71
+ </div>
72
+ <h3 class="text-xl font-bold mb-2 text-gray-800">Lightning Fast</h3>
73
+ <p class="text-gray-600">Our pages load in milliseconds, ensuring your audience never waits.</p>
74
+ </div>
75
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300">
76
+ <div class="bg-amber-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
77
+ <i data-feather="edit" class="text-amber-600"></i>
78
+ </div>
79
+ <h3 class="text-xl font-bold mb-2 text-gray-800">Easy Customization</h3>
80
+ <p class="text-gray-600">Change colors, fonts, and layouts with just a few clicks.</p>
81
+ </div>
82
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300">
83
+ <div class="bg-amber-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
84
+ <i data-feather="bar-chart-2" class="text-amber-600"></i>
85
+ </div>
86
+ <h3 class="text-xl font-bold mb-2 text-gray-800">Powerful Analytics</h3>
87
+ <p class="text-gray-600">Track clicks and visitor data to understand your audience better.</p>
88
+ </div>
89
+ </div>
90
+ </section>
91
+ </main>
92
+
93
+ <custom-footer></custom-footer>
94
+
95
+ <script src="components/navbar.js"></script>
96
+ <script src="components/footer.js"></script>
97
+ <script src="script.js"></script>
98
+ <script>feather.replace();</script>
99
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
100
+ </body>
101
+ </html>
script.js ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
20
+ // Theme management
21
+ function setTheme(theme) {
22
+ document.documentElement.setAttribute('data-theme', theme);
23
+ localStorage.setItem('theme', theme);
24
+ }
25
+
26
+ function toggleTheme() {
27
+ const currentTheme = localStorage.getItem('theme') || 'light';
28
+ const newTheme = currentTheme === 'light' ? 'dark' : 'light';
29
+ setTheme(newTheme);
30
+ }
31
+
32
+ // Initialize theme
33
+ const savedTheme = localStorage.getItem('theme') || 'light';
34
+ setTheme(savedTheme);
style.css CHANGED
@@ -1,28 +1,36 @@
 
 
 
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
+ /* Custom styles that can't be done with Tailwind */
2
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
3
+
4
  body {
5
+ font-family: 'Poppins', sans-serif;
6
+ scroll-behavior: smooth;
7
+ }
8
+
9
+ /* Custom scrollbar */
10
+ ::-webkit-scrollbar {
11
+ width: 8px;
12
  }
13
 
14
+ ::-webkit-scrollbar-track {
15
+ background: #f1f1f1;
 
16
  }
17
 
18
+ ::-webkit-scrollbar-thumb {
19
+ background: #f59e0b;
20
+ border-radius: 10px;
 
 
21
  }
22
 
23
+ ::-webkit-scrollbar-thumb:hover {
24
+ background: #d97706;
 
 
 
 
25
  }
26
 
27
+ /* Animation for buttons */
28
+ .btn-hover-effect {
29
+ transition: all 0.3s ease;
30
+ transform: translateY(0);
31
  }
32
+
33
+ .btn-hover-effect:hover {
34
+ transform: translateY(-2px);
35
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
36
+ }