Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +286 -19
- prompts.txt +0 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
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: lasercraft-gallery
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: purple
|
5 |
+
colorTo: gray
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,286 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>Laser Engraving Case Library</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
.gallery-item {
|
11 |
+
transition: all 0.3s ease;
|
12 |
+
}
|
13 |
+
.gallery-item:hover {
|
14 |
+
transform: translateY(-5px);
|
15 |
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
|
16 |
+
}
|
17 |
+
.category-btn.active {
|
18 |
+
background-color: #3b82f6;
|
19 |
+
color: white;
|
20 |
+
}
|
21 |
+
.grid-container {
|
22 |
+
display: grid;
|
23 |
+
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
24 |
+
gap: 1.5rem;
|
25 |
+
}
|
26 |
+
.hero-pattern {
|
27 |
+
background-image: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
|
28 |
+
}
|
29 |
+
.drawer {
|
30 |
+
transition: transform 0.3s ease-in-out;
|
31 |
+
transform: translateX(100%);
|
32 |
+
}
|
33 |
+
.drawer.open {
|
34 |
+
transform: translateX(0);
|
35 |
+
}
|
36 |
+
.language-selector {
|
37 |
+
position: relative;
|
38 |
+
display: inline-block;
|
39 |
+
}
|
40 |
+
.language-dropdown {
|
41 |
+
display: none;
|
42 |
+
position: absolute;
|
43 |
+
right: 0;
|
44 |
+
background-color: white;
|
45 |
+
min-width: 160px;
|
46 |
+
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
47 |
+
z-index: 1;
|
48 |
+
border-radius: 0.5rem;
|
49 |
+
}
|
50 |
+
.language-selector:hover .language-dropdown {
|
51 |
+
display: block;
|
52 |
+
}
|
53 |
+
.language-option {
|
54 |
+
padding: 12px 16px;
|
55 |
+
display: flex;
|
56 |
+
align-items: center;
|
57 |
+
cursor: pointer;
|
58 |
+
}
|
59 |
+
.language-option:hover {
|
60 |
+
background-color: #f1f1f1;
|
61 |
+
}
|
62 |
+
.language-flag {
|
63 |
+
width: 20px;
|
64 |
+
margin-right: 10px;
|
65 |
+
}
|
66 |
+
</style>
|
67 |
+
</head>
|
68 |
+
<body class="bg-gray-50 font-sans">
|
69 |
+
<!-- Header -->
|
70 |
+
<header class="bg-white shadow-sm sticky top-0 z-50">
|
71 |
+
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
|
72 |
+
<div class="flex items-center space-x-2">
|
73 |
+
<i class="fas fa-fire text-blue-500 text-2xl"></i>
|
74 |
+
<h1 class="text-xl font-bold text-gray-800" data-i18n="title">LaserCraft Gallery</h1>
|
75 |
+
</div>
|
76 |
+
<div class="hidden md:flex space-x-6 items-center">
|
77 |
+
<a href="#" class="text-blue-500 font-medium" data-i18n="nav.home">Home</a>
|
78 |
+
<a href="#" class="text-gray-600 hover:text-blue-500" data-i18n="nav.gallery">Gallery</a>
|
79 |
+
<a href="#" class="text-gray-600 hover:text-blue-500" data-i18n="nav.materials">Materials</a>
|
80 |
+
<a href="#" class="text-gray-600 hover:text-blue-500" data-i18n="nav.tutorials">Tutorials</a>
|
81 |
+
<a href="#" class="text-gray-600 hover:text-blue-500" data-i18n="nav.about">About</a>
|
82 |
+
|
83 |
+
<!-- Language Selector -->
|
84 |
+
<div class="language-selector ml-4">
|
85 |
+
<button class="flex items-center text-gray-600 hover:text-blue-500">
|
86 |
+
<i class="fas fa-globe mr-1"></i>
|
87 |
+
<span data-i18n="currentLanguage">English</span>
|
88 |
+
<i class="fas fa-chevron-down ml-1 text-xs"></i>
|
89 |
+
</button>
|
90 |
+
<div class="language-dropdown">
|
91 |
+
<div class="language-option" onclick="changeLanguage('en')">
|
92 |
+
<img src="https://flagcdn.com/w20/gb.png" class="language-flag" alt="English">
|
93 |
+
<span>English</span>
|
94 |
+
</div>
|
95 |
+
<div class="language-option" onclick="changeLanguage('zh')">
|
96 |
+
<img src="https://flagcdn.com/w20/cn.png" class="language-flag" alt="Chinese">
|
97 |
+
<span>中文</span>
|
98 |
+
</div>
|
99 |
+
<div class="language-option" onclick="changeLanguage('fr')">
|
100 |
+
<img src="https://flagcdn.com/w20/fr.png" class="language-flag" alt="French">
|
101 |
+
<span>Français</span>
|
102 |
+
</div>
|
103 |
+
<div class="language-option" onclick="changeLanguage('ru')">
|
104 |
+
<img src="https://flagcdn.com/w20/ru.png" class="language-flag" alt="Russian">
|
105 |
+
<span>Русский</span>
|
106 |
+
</div>
|
107 |
+
<div class="language-option" onclick="changeLanguage('es')">
|
108 |
+
<img src="https://flagcdn.com/w20/es.png" class="language-flag" alt="Spanish">
|
109 |
+
<span>Español</span>
|
110 |
+
</div>
|
111 |
+
<div class="language-option" onclick="changeLanguage('pt')">
|
112 |
+
<img src="https://flagcdn.com/w20/pt.png" class="language-flag" alt="Portuguese">
|
113 |
+
<span>Português</span>
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
+
</div>
|
117 |
+
</div>
|
118 |
+
<button id="mobile-menu-btn" class="md:hidden text-gray-600">
|
119 |
+
<i class="fas fa-bars text-2xl"></i>
|
120 |
+
</button>
|
121 |
+
</div>
|
122 |
+
</header>
|
123 |
+
|
124 |
+
<!-- Mobile Drawer -->
|
125 |
+
<div id="mobile-drawer" class="drawer fixed inset-y-0 right-0 w-64 bg-white shadow-lg z-50 p-4">
|
126 |
+
<div class="flex justify-between items-center mb-6">
|
127 |
+
<h2 data-i18n="mobileMenu.title">Menu</h2>
|
128 |
+
<button id="close-drawer" class="text-gray-500">
|
129 |
+
<i class="fas fa-times"></i>
|
130 |
+
</button>
|
131 |
+
</div>
|
132 |
+
<nav class="flex flex-col space-y-4">
|
133 |
+
<a href="#" class="text-blue-500 font-medium" data-i18n="nav.home">Home</a>
|
134 |
+
<a href="#" class="text-gray-600 hover:text-blue-500" data-i18n="nav.gallery">Gallery</a>
|
135 |
+
<a href="#" class="text-gray-600 hover:text-blue-500" data-i18n="nav.materials">Materials</a>
|
136 |
+
<a href="#" class="text-gray-600 hover:text-blue-500" data-i18n="nav.tutorials">Tutorials</a>
|
137 |
+
<a href="#" class="text-gray-600 hover:text-blue-500" data-i18n="nav.about">About</a>
|
138 |
+
|
139 |
+
<!-- Mobile Language Selector -->
|
140 |
+
<div class="pt-4 border-t mt-4">
|
141 |
+
<h3 class="font-medium mb-2" data-i18n="mobileMenu.language">Language</h3>
|
142 |
+
<select id="mobile-language-select" class="w-full p-2 border rounded" onchange="changeLanguage(this.value)">
|
143 |
+
<option value="en">English</option>
|
144 |
+
<option value="zh">中文</option>
|
145 |
+
<option value="fr">Français</option>
|
146 |
+
<option value="ru">Русский</option>
|
147 |
+
<option value="es">Español</option>
|
148 |
+
<option value="pt">Português</option>
|
149 |
+
</select>
|
150 |
+
</div>
|
151 |
+
</nav>
|
152 |
+
</div>
|
153 |
+
|
154 |
+
<!-- Hero Section -->
|
155 |
+
<section class="hero-pattern py-16">
|
156 |
+
<div class="container mx-auto px-4 text-center">
|
157 |
+
<h1 class="text-4xl md:text-5xl font-bold text-gray-800 mb-4" data-i18n="hero.title">Laser Engraving Case Library</h1>
|
158 |
+
<p class="text-xl text-gray-600 max-w-3xl mx-auto mb-8" data-i18n="hero.subtitle">
|
159 |
+
Explore our collection of stunning laser engraving projects. Get inspired for your next creative endeavor.
|
160 |
+
</p>
|
161 |
+
<div class="max-w-2xl mx-auto relative">
|
162 |
+
<input type="text" placeholder="Search projects..." class="w-full px-6 py-3 rounded-full border border-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent shadow-sm" data-i18n-placeholder="search.placeholder">
|
163 |
+
<button class="absolute right-2 top-1/2 transform -translate-y-1/2 bg-blue-500 text-white p-2 rounded-full hover:bg-blue-600 transition">
|
164 |
+
<i class="fas fa-search"></i>
|
165 |
+
</button>
|
166 |
+
</div>
|
167 |
+
</div>
|
168 |
+
</section>
|
169 |
+
|
170 |
+
<!-- Main Content -->
|
171 |
+
<main class="container mx-auto px-4 py-12">
|
172 |
+
<!-- Filter Section -->
|
173 |
+
<div class="mb-12">
|
174 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-6" data-i18n="categories.title">Browse by Category</h2>
|
175 |
+
<div class="flex flex-wrap gap-3">
|
176 |
+
<button class="category-btn active px-4 py-2 rounded-full bg-blue-100 text-blue-600 font-medium" data-i18n="categories.all">All</button>
|
177 |
+
<button class="category-btn px-4 py-2 rounded-full bg-gray-100 text-gray-600 font-medium" data-i18n="categories.wood">Wood</button>
|
178 |
+
<button class="category-btn px-4 py-2 rounded-full bg-gray-100 text-gray-600 font-medium" data-i18n="categories.acrylic">Acrylic</button>
|
179 |
+
<button class="category-btn px-4 py-2 rounded-full bg-gray-100 text-gray-600 font-medium" data-i18n="categories.leather">Leather</button>
|
180 |
+
<button class="category-btn px-4 py-2 rounded-full bg-gray-100 text-gray-600 font-medium" data-i18n="categories.metal">Metal</button>
|
181 |
+
<button class="category-btn px-4 py-2 rounded-full bg-gray-100 text-gray-600 font-medium" data-i18n="categories.glass">Glass</button>
|
182 |
+
<button class="category-btn px-4 py-2 rounded-full bg-gray-100 text-gray-600 font-medium" data-i18n="categories.3d">3D Objects</button>
|
183 |
+
</div>
|
184 |
+
</div>
|
185 |
+
|
186 |
+
<!-- Gallery Grid -->
|
187 |
+
<div class="grid-container">
|
188 |
+
<!-- Item 1 -->
|
189 |
+
<div class="gallery-item bg-white rounded-xl overflow-hidden shadow-md">
|
190 |
+
<div class="relative h-60 overflow-hidden">
|
191 |
+
<img src="https://images.unsplash.com/photo-1583847268964-b28dc8f51f92?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80" alt="Wooden engraved sign" class="w-full h-full object-cover">
|
192 |
+
<div class="absolute inset-0 bg-gradient-to-t from-black/50 to-transparent flex items-end p-4">
|
193 |
+
<span class="bg-blue-500 text-white text-xs px-2 py-1 rounded" data-i18n="categories.wood">Wood</span>
|
194 |
+
</div>
|
195 |
+
</div>
|
196 |
+
<div class="p-4">
|
197 |
+
<h3 class="font-bold text-lg mb-2" data-i18n="projects.woodSign.title">Custom Wooden Sign</h3>
|
198 |
+
<p class="text-gray-600 text-sm mb-3" data-i18n="projects.woodSign.description">Beautifully engraved family name sign with intricate border details.</p>
|
199 |
+
<div class="flex justify-between items-center">
|
200 |
+
<div class="flex items-center text-yellow-400">
|
201 |
+
<i class="fas fa-star"></i>
|
202 |
+
<span class="text-gray-600 ml-1">4.8</span>
|
203 |
+
</div>
|
204 |
+
<button class="text-blue-500 hover:text-blue-700 font-medium" data-i18n="projects.viewDetails">View Details</button>
|
205 |
+
</div>
|
206 |
+
</div>
|
207 |
+
</div>
|
208 |
+
|
209 |
+
<!-- Item 2 -->
|
210 |
+
<div class="gallery-item bg-white rounded-xl overflow-hidden shadow-md">
|
211 |
+
<div class="relative h-60 overflow-hidden">
|
212 |
+
<img src="https://images.unsplash.com/photo-1605000797499-95a51c5269ae?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1471&q=80" alt="Acrylic keychain" class="w-full h-full object-cover">
|
213 |
+
<div class="absolute inset-0 bg-gradient-to-t from-black/50 to-transparent flex items-end p-4">
|
214 |
+
<span class="bg-pink-500 text-white text-xs px-2 py-1 rounded" data-i18n="categories.acrylic">Acrylic</span>
|
215 |
+
</div>
|
216 |
+
</div>
|
217 |
+
<div class="p-4">
|
218 |
+
<h3 class="font-bold text-lg mb-2" data-i18n="projects.keychains.title">Personalized Keychains</h3>
|
219 |
+
<p class="text-gray-600 text-sm mb-3" data-i18n="projects.keychains.description">Colorful acrylic keychains with custom text and designs.</p>
|
220 |
+
<div class="flex justify-between items-center">
|
221 |
+
<div class="flex items-center text-yellow-400">
|
222 |
+
<i class="fas fa-star"></i>
|
223 |
+
<span class="text-gray-600 ml-1">4.5</span>
|
224 |
+
</div>
|
225 |
+
<button class="text-blue-500 hover:text-blue-700 font-medium" data-i18n="projects.viewDetails">View Details</button>
|
226 |
+
</div>
|
227 |
+
</div>
|
228 |
+
</div>
|
229 |
+
|
230 |
+
<!-- Item 3 -->
|
231 |
+
<div class="gallery-item bg-white rounded-xl overflow-hidden shadow-md">
|
232 |
+
<div class="relative h-60 overflow-hidden">
|
233 |
+
<img src="https://images.unsplash.com/photo-1560343098-f07eac41b5c4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Leather wallet" class="w-full h-full object-cover">
|
234 |
+
<div class="absolute inset-0 bg-gradient-to-t from-black/50 to-transparent flex items-end p-4">
|
235 |
+
<span class="bg-amber-700 text-white text-xs px-2 py-1 rounded" data-i18n="categories.leather">Leather</span>
|
236 |
+
</div>
|
237 |
+
</div>
|
238 |
+
<div class="p-4">
|
239 |
+
<h3 class="font-bold text-lg mb-2" data-i18n="projects.wallet.title">Engraved Leather Wallet</h3>
|
240 |
+
<p class="text-gray-600 text-sm mb-3" data-i18n="projects.wallet.description">Premium leather wallet with personalized monogram engraving.</p>
|
241 |
+
<div class="flex justify-between items-center">
|
242 |
+
<div class="flex items-center text-yellow-400">
|
243 |
+
<i class="fas fa-star"></i>
|
244 |
+
<span class="text-gray-600 ml-1">4.9</span>
|
245 |
+
</div>
|
246 |
+
<button class="text-blue-500 hover:text-blue-700 font-medium" data-i18n="projects.viewDetails">View Details</button>
|
247 |
+
</div>
|
248 |
+
</div>
|
249 |
+
</div>
|
250 |
+
|
251 |
+
<!-- Item 4 -->
|
252 |
+
<div class="gallery-item bg-white rounded-xl overflow-hidden shadow-md">
|
253 |
+
<div class="relative h-60 overflow-hidden">
|
254 |
+
<img src="https://images.unsplash.com/photo-1605100804763-247f67b3557e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D3D&auto=format&fit=crop&w=1470&q=80" alt="Metal business card" class="w-full h-full object-cover">
|
255 |
+
<div class="absolute inset-0 bg-gradient-to-t from-black/50 to-transparent flex items-end p-4">
|
256 |
+
<span class="bg-gray-600 text-white text-xs px-2 py-1 rounded" data-i18n="categories.metal">Metal</span>
|
257 |
+
</div>
|
258 |
+
</div>
|
259 |
+
<div class="p-4">
|
260 |
+
<h3 class="font-bold text-lg mb-2" data-i18n="projects.businessCard.title">Stainless Steel Business Card</h3>
|
261 |
+
<p class="text-gray-600 text-sm mb-3" data-i18n="projects.businessCard.description">Elegant metal business card with laser engraved contact details.</p>
|
262 |
+
<div class="flex justify-between items-center">
|
263 |
+
<div class="flex items-center text-yellow-400">
|
264 |
+
<i class="fas fa-star"></i>
|
265 |
+
<span class="text-gray-600 ml-1">4.7</span>
|
266 |
+
</div>
|
267 |
+
<button class="text-blue-500 hover:text-blue-700 font-medium" data-i18n="projects.viewDetails">View Details</button>
|
268 |
+
</div>
|
269 |
+
</div>
|
270 |
+
</div>
|
271 |
+
|
272 |
+
<!-- Item 5 -->
|
273 |
+
<div class="gallery-item bg-white rounded-xl overflow-hidden shadow-md">
|
274 |
+
<div class="relative h-60 overflow-hidden">
|
275 |
+
<img src="https://images.unsplash.com/photo-1584735422189-080e845a5411?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Glass trophy" class="w-full h-full object-cover">
|
276 |
+
<div class="absolute inset-0 bg-gradient-to-t from-black/50 to-transparent flex items-end p-4">
|
277 |
+
<span class="bg-blue-300 text-white text-xs px-2 py-1 rounded" data-i18n="categories.glass">Glass</span>
|
278 |
+
</div>
|
279 |
+
</div>
|
280 |
+
<div class="p-4">
|
281 |
+
<h3 class="font-bold text-lg mb-2" data-i18n="projects.trophy.title">Award Trophy Engraving</h3>
|
282 |
+
<p class="text-gray-600 text-sm mb-3" data-i18n="projects.trophy.description">Crystal clear glass trophy with precise laser engraved text.</p>
|
283 |
+
<div class="flex justify-between items-center">
|
284 |
+
<div class="flex items-center text-yellow-400">
|
285 |
+
<i class="fas fa-star"></
|
286 |
+
</html>
|
prompts.txt
ADDED
File without changes
|