mniederee commited on
Commit
c247dd5
·
verified ·
1 Parent(s): b56f208

build a blank page

Browse files
Files changed (7) hide show
  1. README.md +8 -5
  2. blank.html +35 -0
  3. components/footer.js +14 -0
  4. components/navbar.js +57 -0
  5. index.html +2 -19
  6. script.js +32 -0
  7. style.css +26 -20
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Brewtopia Beans
3
- emoji: 👀
4
- colorFrom: yellow
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: Brewtopia Beans
3
+ colorFrom: gray
4
+ colorTo: purple
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).
blank.html ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Blank Page | Brewtopia Beans</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
+ </head>
11
+ <body class="bg-amber-50">
12
+ <custom-navbar></custom-navbar>
13
+
14
+ <main class="container mx-auto px-4 py-12 min-h-screen">
15
+ <div class="max-w-4xl mx-auto bg-white rounded-lg shadow-md p-8">
16
+ <h1 class="text-3xl font-bold text-amber-900 mb-6">Blank Canvas</h1>
17
+ <p class="text-gray-700 mb-8">This page is ready for your creative content!</p>
18
+
19
+ <div class="border-2 border-dashed border-amber-200 rounded-lg p-12 text-center">
20
+ <i data-feather="edit" class="w-16 h-16 text-amber-400 mx-auto mb-4"></i>
21
+ <p class="text-amber-600">Add your content here</p>
22
+ </div>
23
+ </div>
24
+ </main>
25
+
26
+ <custom-footer></custom-footer>
27
+
28
+ <script src="components/navbar.js"></script>
29
+ <script src="components/footer.js"></script>
30
+ <script src="script.js"></script>
31
+ <script>
32
+ feather.replace();
33
+ </script>
34
+ </body>
35
+ </html>
components/footer.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .social-icon {
7
+ transition: transform 0.3s ease, color 0.3s ease;
8
+ }
9
+ .social-icon:hover {
10
+ transform: translateY(-3px);
11
+ color: #92400e;
12
+ }
13
+ </style>
14
+ <footer class="bg-
components/navbar.js ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .nav-link {
7
+ position: relative;
8
+ }
9
+ .nav-link::after {
10
+ content: '';
11
+ position: absolute;
12
+ width: 0;
13
+ height: 2px;
14
+ bottom: -2px;
15
+ left: 0;
16
+ background-color: currentColor;
17
+ transition: width 0.3s ease;
18
+ }
19
+ .nav-link:hover::after {
20
+ width: 100%;
21
+ }
22
+ .cart-badge {
23
+ font-size: 0.6rem;
24
+ top: -0.5rem;
25
+ right: -0.5rem;
26
+ }
27
+ </style>
28
+ <nav class="bg-white shadow-md">
29
+ <div class="container mx-auto px-4 py-4 flex justify-between items-center">
30
+ <a href="/" class="flex items-center">
31
+ <i data-feather="coffee" class="text-amber-700 mr-2"></i>
32
+ <span class="text-xl font-bold text-amber-900">Brewtopia Beans</span>
33
+ </a>
34
+
35
+ <div class="hidden md:flex space-x-8">
36
+ <a href="/" class="nav-link text-amber-900 hover:text-amber-700">Home</a>
37
+ <a href="#products" class="nav-link text-amber-900 hover:text-amber-700">Products</a>
38
+ <a href="#" class="nav-link text-amber-900 hover:text-amber-700">About</a>
39
+ <a href="#" class="nav-link text-amber-900 hover:text-amber-700">Contact</a>
40
+ <a href="blank.html" class="nav-link text-amber-900 hover:text-amber-700">Blank</a>
41
+ </div>
42
+
43
+ <div class="flex items-center space-x-4">
44
+ <a href="#" class="relative">
45
+ <i data-feather="shopping-cart" class="text-amber-900"></i>
46
+ <span id="cart-count" class="cart-badge absolute bg-amber-700 text-white rounded-full w-5 h-5 flex items-center justify-center hidden">0</span>
47
+ </a>
48
+ <button class="md:hidden">
49
+ <i data-feather="menu" class="text-amber-900"></i>
50
+ </button>
51
+ </div>
52
+ </div>
53
+ </nav>
54
+ `;
55
+ }
56
+ }
57
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,2 @@
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
+
2
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
script.js ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Initialize cart functionality
2
+ document.addEventListener('DOMContentLoaded', () => {
3
+ const cart = [];
4
+
5
+ // Listen for add to cart events from coffee cards
6
+ document.addEventListener('add-to-cart', (e) => {
7
+ const { name, price } = e.detail;
8
+ cart.push({ name, price });
9
+ updateCartCount();
10
+ showToast(`${name} added to cart!`);
11
+ });
12
+
13
+ function updateCartCount() {
14
+ const cartCount = document.getElementById('cart-count');
15
+ if (cartCount) {
16
+ cartCount.textContent = cart.length;
17
+ cartCount.classList.toggle('hidden', cart.length === 0);
18
+ }
19
+ }
20
+
21
+ function showToast(message) {
22
+ const toast = document.createElement('div');
23
+ toast.className = 'fixed bottom-4 right-4 bg-amber-700 text-white px-4 py-2 rounded-lg shadow-lg';
24
+ toast.textContent = message;
25
+ document.body.appendChild(toast);
26
+
27
+ setTimeout(() => {
28
+ toast.classList.add('opacity-0', 'transition-opacity', 'duration-300');
29
+ setTimeout(() => toast.remove(), 300);
30
+ }, 2000);
31
+ }
32
+ });
style.css CHANGED
@@ -1,28 +1,34 @@
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 extend Tailwind */
2
+ .hero {
3
+ background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('http://static.photos/food/1200x630/4');
4
+ background-size: cover;
5
+ background-position: center;
6
+ min-height: 60vh;
7
+ display: flex;
8
+ align-items: center;
9
  }
10
 
11
+ /* Animation for coffee cards */
12
+ @keyframes fadeIn {
13
+ from { opacity: 0; transform: translateY(20px); }
14
+ to { opacity: 1; transform: translateY(0); }
15
  }
16
 
17
+ .coffee-card {
18
+ animation: fadeIn 0.5s ease-out forwards;
19
+ opacity: 0;
 
 
20
  }
21
 
22
+ .coffee-card:nth-child(1) { animation-delay: 0.1s; }
23
+ .coffee-card:nth-child(2) { animation-delay: 0.3s; }
24
+ .coffee-card:nth-child(3) { animation-delay: 0.5s; }
 
 
 
 
25
 
26
+ /* Hover effect for buttons */
27
+ .btn-hover {
28
+ transition: all 0.3s ease;
29
  }
30
+
31
+ .btn-hover:hover {
32
+ transform: translateY(-2px);
33
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
34
+ }