kenken999 commited on
Commit
e350275
·
verified ·
1 Parent(s): 65a27c5

うごかないよ

Browse files
Files changed (6) hide show
  1. README.md +8 -5
  2. components/footer.js +121 -0
  3. components/navbar.js +101 -0
  4. index.html +65 -19
  5. script.js +21 -0
  6. style.css +16 -21
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Crimson Canvas Studio
3
- emoji: 🏆
4
- colorFrom: blue
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: Crimson Canvas Studio 🎨
3
+ colorFrom: gray
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,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ footer {
7
+ background: #1a1a1a;
8
+ color: white;
9
+ padding: 3rem 2rem;
10
+ text-align: center;
11
+ margin-top: auto;
12
+ }
13
+ .footer-content {
14
+ max-width: 1200px;
15
+ margin: 0 auto;
16
+ display: grid;
17
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
18
+ gap: 2rem;
19
+ text-align: left;
20
+ }
21
+ .footer-logo {
22
+ color: #ef4444;
23
+ font-weight: bold;
24
+ font-size: 1.5rem;
25
+ margin-bottom: 1rem;
26
+ display: flex;
27
+ align-items: center;
28
+ gap: 0.5rem;
29
+ }
30
+ .footer-links h3 {
31
+ color: #ef4444;
32
+ margin-bottom: 1rem;
33
+ font-size: 1.1rem;
34
+ }
35
+ .footer-links ul {
36
+ list-style: none;
37
+ padding: 0;
38
+ margin: 0;
39
+ }
40
+ .footer-links li {
41
+ margin-bottom: 0.5rem;
42
+ }
43
+ .footer-links a {
44
+ color: #a1a1aa;
45
+ text-decoration: none;
46
+ transition: color 0.2s;
47
+ }
48
+ .footer-links a:hover {
49
+ color: white;
50
+ }
51
+ .copyright {
52
+ margin-top: 3rem;
53
+ padding-top: 1.5rem;
54
+ border-top: 1px solid #333;
55
+ color: #6b7280;
56
+ font-size: 0.9rem;
57
+ }
58
+ .social-links {
59
+ display: flex;
60
+ gap: 1rem;
61
+ margin-top: 1rem;
62
+ }
63
+ .social-links a {
64
+ color: #a1a1aa;
65
+ transition: color 0.2s;
66
+ }
67
+ .social-links a:hover {
68
+ color: #ef4444;
69
+ }
70
+ </style>
71
+ <footer>
72
+ <div class="footer-content">
73
+ <div class="footer-col">
74
+ <div class="footer-logo">
75
+ <i data-feather="droplet"></i>
76
+ Crimson Canvas
77
+ </div>
78
+ <p class="text-gray-400">Bringing bold red creativity to the digital world.</p>
79
+ <div class="social-links">
80
+ <a href="#"><i data-feather="twitter"></i></a>
81
+ <a href="#"><i data-feather="instagram"></i></a>
82
+ <a href="#"><i data-feather="facebook"></i></a>
83
+ <a href="#"><i data-feather="linkedin"></i></a>
84
+ </div>
85
+ </div>
86
+ <div class="footer-links">
87
+ <h3>Quick Links</h3>
88
+ <ul>
89
+ <li><a href="/">Home</a></li>
90
+ <li><a href="#">Portfolio</a></li>
91
+ <li><a href="#">About Us</a></li>
92
+ <li><a href="#">Contact</a></li>
93
+ </ul>
94
+ </div>
95
+ <div class="footer-links">
96
+ <h3>Services</h3>
97
+ <ul>
98
+ <li><a href="#">Web Design</a></li>
99
+ <li><a href="#">UI/UX</a></li>
100
+ <li><a href="#">Branding</a></li>
101
+ <li><a href="#">Consulting</a></li>
102
+ </ul>
103
+ </div>
104
+ <div class="footer-links">
105
+ <h3>Contact</h3>
106
+ <ul>
107
+ <li><a href="mailto:hello@crimsoncanvas.com"><i data-feather="mail"></i> hello@crimsoncanvas.com</a></li>
108
+ <li><a href="tel:+1234567890"><i data-feather="phone"></i> +1 234 567 890</a></li>
109
+ <li><a href="#"><i data-feather="map-pin"></i> 123 Creative St, Design City</a></li>
110
+ </ul>
111
+ </div>
112
+ </div>
113
+ <div class="copyright">
114
+ &copy; 2023 Crimson Canvas Studio. All rights reserved.
115
+ </div>
116
+ </footer>
117
+ `;
118
+ }
119
+ }
120
+
121
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ nav {
7
+ background: white;
8
+ padding: 1rem 2rem;
9
+ display: flex;
10
+ justify-content: space-between;
11
+ align-items: center;
12
+ box-shadow: 0 2px 4px rgba(0,0,0,0.05);
13
+ position: sticky;
14
+ top: 0;
15
+ z-index: 50;
16
+ }
17
+ .logo {
18
+ color: #ef4444;
19
+ font-weight: bold;
20
+ font-size: 1.5rem;
21
+ display: flex;
22
+ align-items: center;
23
+ gap: 0.5rem;
24
+ }
25
+ ul {
26
+ display: flex;
27
+ gap: 1.5rem;
28
+ list-style: none;
29
+ margin: 0;
30
+ padding: 0;
31
+ }
32
+ a {
33
+ color: #4b5563;
34
+ text-decoration: none;
35
+ font-weight: 500;
36
+ transition: color 0.2s;
37
+ display: flex;
38
+ align-items: center;
39
+ gap: 0.25rem;
40
+ }
41
+ a:hover {
42
+ color: #ef4444;
43
+ }
44
+ .active {
45
+ color: #ef4444;
46
+ }
47
+ .menu-btn {
48
+ display: none;
49
+ background: none;
50
+ border: none;
51
+ color: #ef4444;
52
+ font-size: 1.5rem;
53
+ cursor: pointer;
54
+ }
55
+ @media (max-width: 768px) {
56
+ ul {
57
+ display: none;
58
+ position: absolute;
59
+ top: 100%;
60
+ left: 0;
61
+ right: 0;
62
+ background: white;
63
+ flex-direction: column;
64
+ padding: 1rem;
65
+ box-shadow: 0 4px 6px rgba(0,0,0,0.1);
66
+ }
67
+ ul.active {
68
+ display: flex;
69
+ }
70
+ .menu-btn {
71
+ display: block;
72
+ }
73
+ }
74
+ </style>
75
+ <nav>
76
+ <a href="/" class="logo">
77
+ <i data-feather="droplet"></i>
78
+ Crimson Canvas
79
+ </a>
80
+ <button class="menu-btn">
81
+ <i data-feather="menu"></i>
82
+ </button>
83
+ <ul>
84
+ <li><a href="/" class="active"><i data-feather="home"></i> Home</a></li>
85
+ <li><a href="#"><i data-feather="image"></i> Portfolio</a></li>
86
+ <li><a href="#"><i data-feather="info"></i> About</a></li>
87
+ <li><a href="#"><i data-feather="mail"></i> Contact</a></li>
88
+ </ul>
89
+ </nav>
90
+ `;
91
+
92
+ const menuBtn = this.shadowRoot.querySelector('.menu-btn');
93
+ const menu = this.shadowRoot.querySelector('ul');
94
+
95
+ menuBtn.addEventListener('click', () => {
96
+ menu.classList.toggle('active');
97
+ });
98
+ }
99
+ }
100
+
101
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,65 @@
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>Crimson Canvas Studio</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-100">
15
+ <custom-navbar></custom-navbar>
16
+
17
+ <main class="container mx-auto px-4 py-12">
18
+ <section class="hero bg-red-500 text-white rounded-2xl p-8 mb-12">
19
+ <div class="max-w-3xl mx-auto text-center">
20
+ <h1 class="text-4xl md:text-5xl font-bold mb-6">Welcome to Crimson Canvas Studio</h1>
21
+ <p class="text-xl mb-8">Where bold red meets creative expression</p>
22
+ <a href="#" class="inline-block bg-white text-red-500 font-semibold px-6 py-3 rounded-lg hover:bg-gray-100 transition">Explore Now</a>
23
+ </div>
24
+ </section>
25
+
26
+ <section class="features grid grid-cols-1 md:grid-cols-3 gap-8 mb-16">
27
+ <div class="feature-card bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition">
28
+ <div class="icon bg-red-100 text-red-500 w-16 h-16 rounded-full flex items-center justify-center mb-4">
29
+ <i data-feather="brush"></i>
30
+ </div>
31
+ <h3 class="text-xl font-semibold mb-3">Creative Design</h3>
32
+ <p class="text-gray-600">Stunning visuals with our signature crimson touch</p>
33
+ </div>
34
+ <div class="feature-card bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition">
35
+ <div class="icon bg-red-100 text-red-500 w-16 h-16 rounded-full flex items-center justify-center mb-4">
36
+ <i data-feather="code"></i>
37
+ </div>
38
+ <h3 class="text-xl font-semibold mb-3">Innovative Code</h3>
39
+ <p class="text-gray-600">Cutting-edge solutions with bold execution</p>
40
+ </div>
41
+ <div class="feature-card bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition">
42
+ <div class="icon bg-red-100 text-red-500 w-16 h-16 rounded-full flex items-center justify-center mb-4">
43
+ <i data-feather="zap"></i>
44
+ </div>
45
+ <h3 class="text-xl font-semibold mb-3">Lightning Fast</h3>
46
+ <p class="text-gray-600">Performance that matches our vibrant energy</p>
47
+ </div>
48
+ </section>
49
+
50
+ <section class="cta bg-red-50 rounded-xl p-8 text-center">
51
+ <h2 class="text-2xl md:text-3xl font-bold mb-4 text-red-700">Ready to make something bold?</h2>
52
+ <p class="max-w-2xl mx-auto mb-6 text-gray-700">Join our studio and let's create something extraordinary together.</p>
53
+ <a href="#" class="inline-block bg-red-500 text-white font-semibold px-6 py-3 rounded-lg hover:bg-red-600 transition">Get Started</a>
54
+ </section>
55
+ </main>
56
+
57
+ <custom-footer></custom-footer>
58
+
59
+ <script src="script.js"></script>
60
+ <script>
61
+ feather.replace();
62
+ </script>
63
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
64
+ </body>
65
+ </html>
script.js ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Initialize animations and interactions
2
+ document.addEventListener('DOMContentLoaded', () => {
3
+ // Feature cards animation on scroll
4
+ const featureCards = document.querySelectorAll('.feature-card');
5
+
6
+ const observer = new IntersectionObserver((entries) => {
7
+ entries.forEach(entry => {
8
+ if (entry.isIntersecting) {
9
+ entry.target.style.opacity = 1;
10
+ entry.target.style.transform = 'translateY(0)';
11
+ }
12
+ });
13
+ }, { threshold: 0.1 });
14
+
15
+ featureCards.forEach(card => {
16
+ card.style.opacity = 0;
17
+ card.style.transform = 'translateY(20px)';
18
+ card.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
19
+ observer.observe(card);
20
+ });
21
+ });
style.css CHANGED
@@ -1,28 +1,23 @@
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 */
2
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
 
 
3
 
4
+ body {
5
+ font-family: 'Inter', sans-serif;
6
+ min-height: 100vh;
7
+ display: flex;
8
+ flex-direction: column;
9
  }
10
 
11
+ .hero {
12
+ background-image: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(239, 68, 68, 0.95));
13
+ box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
 
 
14
  }
15
 
16
+ .feature-card:hover .icon {
17
+ transform: scale(1.05);
18
+ box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.2);
 
 
 
19
  }
20
 
21
+ .icon {
22
+ transition: all 0.3s ease;
23
+ }