shivay00001 commited on
Commit
9e5083e
Β·
verified Β·
1 Parent(s): 71f8f5c
Files changed (6) hide show
  1. README.md +7 -4
  2. components/footer.js +55 -0
  3. components/navbar.js +35 -0
  4. index.html +84 -19
  5. script.js +22 -0
  6. style.css +27 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Undefined Elegance
3
- emoji: πŸ‘€
4
  colorFrom: yellow
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: Undefined Elegance 🌈
 
3
  colorFrom: yellow
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,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ footer {
7
+ background: linear-gradient(90deg, rgba(2,132,199,1) 0%, rgba(14,165,233,1) 100%);
8
+ }
9
+ .footer-link:hover {
10
+ color: rgba(255,255,255,0.8);
11
+ }
12
+ </style>
13
+ <footer class="text-white py-8">
14
+ <div class="container mx-auto px-4">
15
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
16
+ <div>
17
+ <h3 class="text-xl font-semibold mb-4">Undefined Elegance</h3>
18
+ <p class="opacity-80">Making the undefined beautiful since today.</p>
19
+ </div>
20
+ <div>
21
+ <h4 class="font-semibold mb-4">Quick Links</h4>
22
+ <ul class="space-y-2">
23
+ <li><a href="#" class="footer-link opacity-80 hover:opacity-100 transition">Home</a></li>
24
+ <li><a href="#" class="footer-link opacity-80 hover:opacity-100 transition">Features</a></li>
25
+ <li><a href="#" class="footer-link opacity-80 hover:opacity-100 transition">About</a></li>
26
+ <li><a href="#" class="footer-link opacity-80 hover:opacity-100 transition">Contact</a></li>
27
+ </ul>
28
+ </div>
29
+ <div>
30
+ <h4 class="font-semibold mb-4">Connect</h4>
31
+ <div class="flex space-x-4">
32
+ <a href="#" class="footer-link opacity-80 hover:opacity-100 transition">
33
+ <i data-feather="twitter"></i>
34
+ </a>
35
+ <a href="#" class="footer-link opacity-80 hover:opacity-100 transition">
36
+ <i data-feather="instagram"></i>
37
+ </a>
38
+ <a href="#" class="footer-link opacity-80 hover:opacity-100 transition">
39
+ <i data-feather="github"></i>
40
+ </a>
41
+ <a href="#" class="footer-link opacity-80 hover:opacity-100 transition">
42
+ <i data-feather="linkedin"></i>
43
+ </a>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <div class="border-t border-opacity-20 mt-8 pt-6 text-center opacity-80">
48
+ <p>&copy; ${new Date().getFullYear()} Undefined Elegance. All rights reserved.</p>
49
+ </div>
50
+ </div>
51
+ </footer>
52
+ `;
53
+ }
54
+ }
55
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ nav {
7
+ background: linear-gradient(90deg, rgba(14,165,233,1) 0%, rgba(125,211,252,1) 100%);
8
+ }
9
+ .nav-link:hover {
10
+ background-color: rgba(255,255,255,0.2);
11
+ }
12
+ </style>
13
+ <nav class="text-white shadow-md">
14
+ <div class="container mx-auto px-4">
15
+ <div class="flex justify-between items-center py-4">
16
+ <a href="/" class="flex items-center space-x-2">
17
+ <i data-feather="compass" class="w-6 h-6"></i>
18
+ <span class="text-xl font-bold">Undefined</span>
19
+ </a>
20
+ <div class="hidden md:flex space-x-1">
21
+ <a href="/" class="nav-link px-4 py-2 rounded-lg transition">Home</a>
22
+ <a href="#" class="nav-link px-4 py-2 rounded-lg transition">Features</a>
23
+ <a href="#" class="nav-link px-4 py-2 rounded-lg transition">About</a>
24
+ <a href="#" class="nav-link px-4 py-2 rounded-lg transition">Contact</a>
25
+ </div>
26
+ <button class="md:hidden focus:outline-none">
27
+ <i data-feather="menu" class="w-6 h-6"></i>
28
+ </button>
29
+ </div>
30
+ </div>
31
+ </nav>
32
+ `;
33
+ }
34
+ }
35
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,84 @@
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>Undefined Elegance</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
+ <script>
12
+ tailwind.config = {
13
+ theme: {
14
+ extend: {
15
+ colors: {
16
+ undefined: {
17
+ 50: '#f0f9ff',
18
+ 100: '#e0f2fe',
19
+ 200: '#bae6fd',
20
+ 300: '#7dd3fc',
21
+ 400: '#38bdf8',
22
+ 500: '#0ea5e9',
23
+ 600: '#0284c7',
24
+ 700: '#0369a1',
25
+ 800: '#075985',
26
+ 900: '#0c4a6e',
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
32
+ </script>
33
+ </head>
34
+ <body class="bg-undefined-50 min-h-screen">
35
+ <custom-navbar></custom-navbar>
36
+
37
+ <main class="container mx-auto px-4 py-12">
38
+ <section class="text-center mb-16">
39
+ <h1 class="text-5xl font-bold text-undefined-800 mb-4">Welcome to Undefined Elegance</h1>
40
+ <p class="text-xl text-undefined-600 max-w-2xl mx-auto">Where undefined becomes defined through beautiful design</p>
41
+ </section>
42
+
43
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
44
+ <div class="bg-white rounded-xl shadow-lg overflow-hidden transition-all hover:shadow-xl hover:-translate-y-1">
45
+ <div class="h-48 bg-undefined-200 flex items-center justify-center">
46
+ <i data-feather="box" class="w-16 h-16 text-undefined-600"></i>
47
+ </div>
48
+ <div class="p-6">
49
+ <h3 class="text-xl font-semibold text-undefined-800 mb-2">Undefined Feature</h3>
50
+ <p class="text-undefined-600">Discover the beauty of undefined elements in our design system.</p>
51
+ </div>
52
+ </div>
53
+
54
+ <div class="bg-white rounded-xl shadow-lg overflow-hidden transition-all hover:shadow-xl hover:-translate-y-1">
55
+ <div class="h-48 bg-undefined-300 flex items-center justify-center">
56
+ <i data-feather="sliders" class="w-16 h-16 text-undefined-700"></i>
57
+ </div>
58
+ <div class="p-6">
59
+ <h3 class="text-xl font-semibold text-undefined-800 mb-2">Flexible Components</h3>
60
+ <p class="text-undefined-600">Customize undefined components to fit your exact needs.</p>
61
+ </div>
62
+ </div>
63
+
64
+ <div class="bg-white rounded-xl shadow-lg overflow-hidden transition-all hover:shadow-xl hover:-translate-y-1">
65
+ <div class="h-48 bg-undefined-400 flex items-center justify-center">
66
+ <i data-feather="zap" class="w-16 h-16 text-undefined-800"></i>
67
+ </div>
68
+ <div class="p-6">
69
+ <h3 class="text-xl font-semibold text-undefined-800 mb-2">Dynamic Colors</h3>
70
+ <p class="text-undefined-600">Experience the undefined color palette in action.</p>
71
+ </div>
72
+ </div>
73
+ </div>
74
+ </main>
75
+
76
+ <custom-footer></custom-footer>
77
+
78
+ <script src="components/navbar.js"></script>
79
+ <script src="components/footer.js"></script>
80
+ <script src="script.js"></script>
81
+ <script>feather.replace();</script>
82
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
83
+ </body>
84
+ </html>
script.js ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ document.addEventListener('DOMContentLoaded', () => {
2
+ // Add any global JavaScript functionality here
3
+ console.log('Undefined Elegance loaded!');
4
+
5
+ // Example of dynamic theme switching (could be extended)
6
+ const toggleTheme = () => {
7
+ document.body.classList.toggle('bg-gray-900');
8
+ document.body.classList.toggle('text-white');
9
+ };
10
+ });
11
+
12
+ // Example API fetch (replace with actual API endpoint)
13
+ const fetchUndefinedData = async () => {
14
+ try {
15
+ const response = await fetch('https://jsonplaceholder.typicode.com/posts/1');
16
+ const data = await response.json();
17
+ console.log('Fetched undefined data:', data);
18
+ return data;
19
+ } catch (error) {
20
+ console.error('Error fetching undefined data:', error);
21
+ }
22
+ };
style.css CHANGED
@@ -1,28 +1,37 @@
 
 
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', sans-serif;
5
+ }
6
+
7
+ /* Custom undefined theme animations */
8
+ @keyframes undefinedPulse {
9
+ 0%, 100% {
10
+ opacity: 1;
11
+ }
12
+ 50% {
13
+ opacity: 0.6;
14
+ }
15
  }
16
 
17
+ .animate-undefined-pulse {
18
+ animation: undefinedPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
 
19
  }
20
 
21
+ /* Custom undefined scrollbar */
22
+ ::-webkit-scrollbar {
23
+ width: 8px;
 
 
24
  }
25
 
26
+ ::-webkit-scrollbar-track {
27
+ background: #f1f1f1;
 
 
 
 
28
  }
29
 
30
+ ::-webkit-scrollbar-thumb {
31
+ background: #7dd3fc;
32
+ border-radius: 4px;
33
  }
34
+
35
+ ::-webkit-scrollbar-thumb:hover {
36
+ background: #0ea5e9;
37
+ }