julien-c HF Staff commited on
Commit
739eaca
Β·
verified Β·
1 Parent(s): e8cad20

change text to "cool cool"

Browse files
Files changed (6) hide show
  1. README.md +7 -4
  2. components/footer.js +53 -0
  3. components/navbar.js +62 -0
  4. index.html +30 -19
  5. script.js +9 -0
  6. style.css +15 -23
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Cool Cool Website
3
- emoji: πŸ“‰
4
- colorFrom: gray
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: Cool Cool Website πŸ†’
3
+ colorFrom: red
 
4
  colorTo: yellow
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://deepsite.hf.co).
components/footer.js ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ footer {
7
+ background: #1E293B;
8
+ color: white;
9
+ padding: 2rem;
10
+ text-align: center;
11
+ margin-top: auto;
12
+ }
13
+ .footer-content {
14
+ max-width: 1200px;
15
+ margin: 0 auto;
16
+ display: flex;
17
+ flex-direction: column;
18
+ gap: 1rem;
19
+ }
20
+ .social-links {
21
+ display: flex;
22
+ justify-content: center;
23
+ gap: 1.5rem;
24
+ margin-bottom: 1rem;
25
+ }
26
+ .social-links a {
27
+ color: white;
28
+ transition: all 0.3s;
29
+ }
30
+ .social-links a:hover {
31
+ transform: translateY(-3px);
32
+ color: #60A5FA;
33
+ }
34
+ .copyright {
35
+ font-size: 0.9rem;
36
+ opacity: 0.8;
37
+ }
38
+ </style>
39
+ <footer>
40
+ <div class="footer-content">
41
+ <div class="social-links">
42
+ <a href="#"><i data-feather="twitter"></i></a>
43
+ <a href="#"><i data-feather="instagram"></i></a>
44
+ <a href="#"><i data-feather="github"></i></a>
45
+ <a href="#"><i data-feather="linkedin"></i></a>
46
+ </div>
47
+ <p class="copyright">&copy; ${new Date().getFullYear()} Cool Cool. All rights reserved.</p>
48
+ </div>
49
+ </footer>
50
+ `;
51
+ }
52
+ }
53
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ nav {
7
+ background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
8
+ padding: 1rem 2rem;
9
+ display: flex;
10
+ justify-content: space-between;
11
+ align-items: center;
12
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
13
+ }
14
+ .logo {
15
+ color: white;
16
+ font-weight: bold;
17
+ font-size: 1.5rem;
18
+ letter-spacing: 1px;
19
+ }
20
+ ul {
21
+ display: flex;
22
+ gap: 2rem;
23
+ list-style: none;
24
+ margin: 0;
25
+ padding: 0;
26
+ }
27
+ a {
28
+ color: white;
29
+ text-decoration: none;
30
+ transition: all 0.3s;
31
+ font-weight: 500;
32
+ display: flex;
33
+ align-items: center;
34
+ gap: 0.5rem;
35
+ }
36
+ a:hover {
37
+ transform: translateY(-2px);
38
+ }
39
+ @media (max-width: 768px) {
40
+ nav {
41
+ flex-direction: column;
42
+ gap: 1rem;
43
+ }
44
+ ul {
45
+ flex-direction: column;
46
+ gap: 0.5rem;
47
+ align-items: center;
48
+ }
49
+ }
50
+ </style>
51
+ <nav>
52
+ <div class="logo">cool cool</div>
53
+ <ul>
54
+ <li><a href="/"><i data-feather="home"></i> Home</a></li>
55
+ <li><a href="#"><i data-feather="info"></i> About</a></li>
56
+ <li><a href="#"><i data-feather="mail"></i> Contact</a></li>
57
+ </ul>
58
+ </nav>
59
+ `;
60
+ }
61
+ }
62
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,30 @@
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>Cool Cool</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-100">
13
+ <custom-navbar></custom-navbar>
14
+
15
+ <main class="container mx-auto px-4 py-12">
16
+ <div class="text-center">
17
+ <h1 class="text-6xl font-bold text-gray-800 mb-6">cool cool</h1>
18
+ <p class="text-xl text-gray-600">Welcome to the coolest place on the web</p>
19
+ </div>
20
+ </main>
21
+
22
+ <custom-footer></custom-footer>
23
+
24
+ <script src="components/navbar.js"></script>
25
+ <script src="components/footer.js"></script>
26
+ <script src="script.js"></script>
27
+ <script>feather.replace();</script>
28
+ <script src="https://deepsite.hf.co/deepsite-badge.js"></script>
29
+ </body>
30
+ </html>
script.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ // Shared JavaScript across all pages
2
+ console.log('Cool cool app loaded');
3
+
4
+ document.addEventListener('DOMContentLoaded', () => {
5
+ const headings = document.querySelectorAll('h1');
6
+ headings.forEach(heading => {
7
+ heading.classList.add('cool-pulse');
8
+ });
9
+ });
style.css CHANGED
@@ -1,28 +1,20 @@
 
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
+ /* Shared styles across all pages */
2
  body {
3
+ font-family: 'Inter', sans-serif;
4
+ min-height: 100vh;
5
+ display: flex;
6
+ flex-direction: column;
7
  }
8
 
9
+ @keyframes coolPulse {
10
+ 0%, 100% {
11
+ transform: scale(1);
12
+ }
13
+ 50% {
14
+ transform: scale(1.05);
15
+ }
16
  }
17
 
18
+ .cool-pulse {
19
+ animation: coolPulse 2s infinite;
20
+ }