SherlockRamos commited on
Commit
e133568
Β·
verified Β·
1 Parent(s): 6a8cb7f
Files changed (6) hide show
  1. README.md +8 -5
  2. components/footer.js +104 -0
  3. components/navbar.js +78 -0
  4. index.html +100 -19
  5. script.js +26 -0
  6. style.css +39 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Chromatic Canvas Delight
3
- emoji: πŸŒ–
4
- colorFrom: purple
5
- colorTo: pink
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: Chromatic Canvas Delight 🎨
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,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ :host {
7
+ display: block;
8
+ background-color: var(--gray-800);
9
+ color: white;
10
+ padding: 3rem 1rem;
11
+ }
12
+ .footer-container {
13
+ max-width: 1280px;
14
+ margin: 0 auto;
15
+ display: grid;
16
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
17
+ gap: 2rem;
18
+ }
19
+ .footer-section h3 {
20
+ font-size: 1.125rem;
21
+ font-weight: 600;
22
+ margin-bottom: 1rem;
23
+ color: var(--primary-300);
24
+ }
25
+ .footer-links {
26
+ display: flex;
27
+ flex-direction: column;
28
+ gap: 0.5rem;
29
+ }
30
+ .footer-link {
31
+ color: var(--gray-300);
32
+ transition: color 0.2s;
33
+ }
34
+ .footer-link:hover {
35
+ color: white;
36
+ }
37
+ .social-links {
38
+ display: flex;
39
+ gap: 1rem;
40
+ margin-top: 1rem;
41
+ }
42
+ .social-link {
43
+ color: var(--gray-300);
44
+ transition: color 0.2s;
45
+ }
46
+ .social-link:hover {
47
+ color: white;
48
+ }
49
+ .copyright {
50
+ margin-top: 3rem;
51
+ text-align: center;
52
+ color: var(--gray-400);
53
+ font-size: 0.875rem;
54
+ }
55
+ </style>
56
+ <div class="footer-container">
57
+ <div class="footer-section">
58
+ <h3>Chromatic Canvas</h3>
59
+ <p class="text-gray-300">A vibrant playground of colors and design where creativity meets functionality.</p>
60
+ <div class="social-links">
61
+ <a href="#" class="social-link"><i data-feather="twitter"></i></a>
62
+ <a href="#" class="social-link"><i data-feather="instagram"></i></a>
63
+ <a href="#" class="social-link"><i data-feather="github"></i></a>
64
+ <a href="#" class="social-link"><i data-feather="linkedin"></i></a>
65
+ </div>
66
+ </div>
67
+
68
+ <div class="footer-section">
69
+ <h3>Quick Links</h3>
70
+ <div class="footer-links">
71
+ <a href="/" class="footer-link">Home</a>
72
+ <a href="/features" class="footer-link">Features</a>
73
+ <a href="/gallery" class="footer-link">Gallery</a>
74
+ <a href="/contact" class="footer-link">Contact</a>
75
+ </div>
76
+ </div>
77
+
78
+ <div class="footer-section">
79
+ <h3>Resources</h3>
80
+ <div class="footer-links">
81
+ <a href="/blog" class="footer-link">Blog</a>
82
+ <a href="/tutorials" class="footer-link">Tutorials</a>
83
+ <a href="/docs" class="footer-link">Documentation</a>
84
+ <a href="/community" class="footer-link">Community</a>
85
+ </div>
86
+ </div>
87
+
88
+ <div class="footer-section">
89
+ <h3>Contact</h3>
90
+ <div class="footer-links">
91
+ <a href="mailto:hello@chromaticcanvas.com" class="footer-link">hello@chromaticcanvas.com</a>
92
+ <a href="tel:+1234567890" class="footer-link">+1 (234) 567-890</a>
93
+ </div>
94
+ </div>
95
+ </div>
96
+
97
+ <div class="copyright">
98
+ &copy; ${new Date().getFullYear()} Chromatic Canvas. All rights reserved.
99
+ </div>
100
+ `;
101
+ }
102
+ }
103
+
104
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ :host {
7
+ display: block;
8
+ width: 100%;
9
+ position: sticky;
10
+ top: 0;
11
+ z-index: 50;
12
+ background-color: white;
13
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
14
+ }
15
+ .navbar-container {
16
+ max-width: 1280px;
17
+ margin: 0 auto;
18
+ padding: 1rem 2rem;
19
+ display: flex;
20
+ justify-content: space-between;
21
+ align-items: center;
22
+ }
23
+ .logo {
24
+ font-weight: 700;
25
+ font-size: 1.5rem;
26
+ color: var(--primary-600);
27
+ display: flex;
28
+ align-items: center;
29
+ gap: 0.5rem;
30
+ }
31
+ .nav-links {
32
+ display: flex;
33
+ gap: 1.5rem;
34
+ }
35
+ .nav-link {
36
+ color: var(--gray-600);
37
+ font-weight: 500;
38
+ transition: color 0.2s;
39
+ }
40
+ .nav-link:hover {
41
+ color: var(--primary-600);
42
+ }
43
+ .mobile-menu-btn {
44
+ display: none;
45
+ background: none;
46
+ border: none;
47
+ cursor: pointer;
48
+ }
49
+ @media (max-width: 768px) {
50
+ .mobile-menu-btn {
51
+ display: block;
52
+ }
53
+ .nav-links {
54
+ display: none;
55
+ }
56
+ }
57
+ </style>
58
+ <div class="navbar-container">
59
+ <a href="/" class="logo">
60
+ <span>Chromatic Canvas</span>
61
+ </a>
62
+
63
+ <div class="nav-links">
64
+ <a href="/" class="nav-link">Home</a>
65
+ <a href="/features" class="nav-link">Features</a>
66
+ <a href="/gallery" class="nav-link">Gallery</a>
67
+ <a href="/contact" class="nav-link">Contact</a>
68
+ </div>
69
+
70
+ <button class="mobile-menu-btn">
71
+ <i data-feather="menu"></i>
72
+ </button>
73
+ </div>
74
+ `;
75
+ }
76
+ }
77
+
78
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,100 @@
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>Chromatic Canvas Delight</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
+ primary: {
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
+ secondary: {
29
+ 50: '#f5f3ff',
30
+ 100: '#ede9fe',
31
+ 200: '#ddd6fe',
32
+ 300: '#c4b5fd',
33
+ 400: '#a78bfa',
34
+ 500: '#8b5cf6',
35
+ 600: '#7c3aed',
36
+ 700: '#6d28d9',
37
+ 800: '#5b21b6',
38
+ 900: '#4c1d95',
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ </script>
45
+ </head>
46
+ <body class="bg-gray-50 min-h-screen">
47
+ <custom-navbar></custom-navbar>
48
+
49
+ <main class="container mx-auto px-4 py-12">
50
+ <section class="text-center mb-16">
51
+ <h1 class="text-5xl font-bold text-primary-700 mb-4">Welcome to Chromatic Canvas</h1>
52
+ <p class="text-xl text-gray-600 max-w-2xl mx-auto">A vibrant playground of colors and design where creativity meets functionality</p>
53
+ </section>
54
+
55
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
56
+ <div class="bg-white rounded-xl shadow-lg overflow-hidden transition-all hover:shadow-xl hover:-translate-y-1">
57
+ <div class="h-48 bg-gradient-to-r from-primary-400 to-secondary-500"></div>
58
+ <div class="p-6">
59
+ <h3 class="text-xl font-semibold text-gray-800 mb-2">Color Exploration</h3>
60
+ <p class="text-gray-600">Discover beautiful color combinations and palettes</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-gradient-to-r from-secondary-400 to-primary-500"></div>
66
+ <div class="p-6">
67
+ <h3 class="text-xl font-semibold text-gray-800 mb-2">UI Components</h3>
68
+ <p class="text-gray-600">Ready-to-use components for your projects</p>
69
+ </div>
70
+ </div>
71
+
72
+ <div class="bg-white rounded-xl shadow-lg overflow-hidden transition-all hover:shadow-xl hover:-translate-y-1">
73
+ <div class="h-48 bg-gradient-to-r from-primary-500 to-secondary-600"></div>
74
+ <div class="p-6">
75
+ <h3 class="text-xl font-semibold text-gray-800 mb-2">Design Inspiration</h3>
76
+ <p class="text-gray-600">Get inspired by modern design trends</p>
77
+ </div>
78
+ </div>
79
+ </div>
80
+
81
+ <section class="mt-20 bg-gradient-to-r from-primary-100 to-secondary-100 rounded-2xl p-8 md:p-12">
82
+ <div class="max-w-4xl mx-auto text-center">
83
+ <h2 class="text-3xl font-bold text-gray-800 mb-6">Ready to create something beautiful?</h2>
84
+ <p class="text-lg text-gray-700 mb-8">Join our community of designers and developers exploring the colorful world of UI/UX design.</p>
85
+ <button class="bg-primary-600 hover:bg-primary-700 text-white font-medium py-3 px-8 rounded-full transition-all shadow-md hover:shadow-lg">
86
+ Get Started
87
+ </button>
88
+ </div>
89
+ </section>
90
+ </main>
91
+
92
+ <custom-footer></custom-footer>
93
+
94
+ <script src="components/navbar.js"></script>
95
+ <script src="components/footer.js"></script>
96
+ <script src="script.js"></script>
97
+ <script>feather.replace();</script>
98
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
99
+ </body>
100
+ </html>
script.js ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ document.addEventListener('DOMContentLoaded', () => {
2
+ // Initialize animations
3
+ const animatedElements = document.querySelectorAll('.fade-in, .slide-up');
4
+
5
+ const observer = new IntersectionObserver((entries) => {
6
+ entries.forEach(entry => {
7
+ if (entry.isIntersecting) {
8
+ entry.target.classList.add('animate');
9
+ observer.unobserve(entry.target);
10
+ }
11
+ });
12
+ }, {
13
+ threshold: 0.1
14
+ });
15
+
16
+ animatedElements.forEach(el => observer.observe(el));
17
+
18
+ // Theme toggle functionality
19
+ const themeToggle = document.getElementById('theme-toggle');
20
+ if (themeToggle) {
21
+ themeToggle.addEventListener('click', () => {
22
+ document.documentElement.classList.toggle('dark');
23
+ localStorage.setItem('theme', document.documentElement.classList.contains('dark') ? 'dark' : 'light');
24
+ });
25
+ }
26
+ });
style.css CHANGED
@@ -1,28 +1,49 @@
 
 
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 scrollbar */
8
+ ::-webkit-scrollbar {
9
+ width: 8px;
10
+ height: 8px;
11
+ }
12
+
13
+ ::-webkit-scrollbar-track {
14
+ background: #f1f1f1;
15
+ }
16
+
17
+ ::-webkit-scrollbar-thumb {
18
+ background: #888;
19
+ border-radius: 4px;
20
  }
21
 
22
+ ::-webkit-scrollbar-thumb:hover {
23
+ background: #555;
 
24
  }
25
 
26
+ /* Animation classes */
27
+ .fade-in {
28
+ animation: fadeIn 0.5s ease-in-out;
 
 
29
  }
30
 
31
+ @keyframes fadeIn {
32
+ from { opacity: 0; }
33
+ to { opacity: 1; }
 
 
 
34
  }
35
 
36
+ .slide-up {
37
+ animation: slideUp 0.5s ease-out;
38
  }
39
+
40
+ @keyframes slideUp {
41
+ from {
42
+ transform: translateY(20px);
43
+ opacity: 0;
44
+ }
45
+ to {
46
+ transform: translateY(0);
47
+ opacity: 1;
48
+ }
49
+ }