Spaces:
Running
Running
Commit
·
cb789b0
1
Parent(s):
76b0e4f
Enhanced layout and responsiveness in index.html by adding media queries and improving the tool card design. Updated tool details in tools.json for clarity, including renaming and adjusting descriptions.
Browse files- index.html +62 -72
- tools.json +3 -3
index.html
CHANGED
@@ -246,6 +246,43 @@ sagi test
|
|
246 |
height: 32px;
|
247 |
}
|
248 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
</style>
|
250 |
<!-- Google tag (gtag.js) -->
|
251 |
<script
|
@@ -1218,82 +1255,35 @@ sagi test
|
|
1218 |
toolCard.setAttribute('data-tool', 'true');
|
1219 |
|
1220 |
toolCard.innerHTML = `
|
1221 |
-
<div class="flex items-center
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
<div>
|
1229 |
-
<!-- שם הכלי, תגית 'חדש!' וכפתור רמקול -->
|
1230 |
-
<div class="flex items-center gap-2">
|
1231 |
-
<h3 class="text-xl font-semibold">${
|
1232 |
-
tool.name
|
1233 |
-
}</h3>
|
1234 |
-
${
|
1235 |
-
tool.isNew
|
1236 |
-
? `<span class="text-xs bg-green-500 text-white px-2 py-1 rounded-full animate-pulse">חדש!</span>`
|
1237 |
-
: ''
|
1238 |
-
}
|
1239 |
-
${
|
1240 |
-
tool.free
|
1241 |
-
? `<span class="text-xs bg-yellow-400 text-black px-2 py-1 rounded-full">חינם</span>`
|
1242 |
-
: ''
|
1243 |
-
}
|
1244 |
-
|
1245 |
-
<button title="הקרא תיאור" onclick="event.stopPropagation(); speakText('${tool.description.replace(
|
1246 |
-
/'/g,
|
1247 |
-
"\\'"
|
1248 |
-
)}')" class="text-blue-600 hover:text-blue-800 focus:outline-none">
|
1249 |
-
<i class="fas fa-volume-up"></i>
|
1250 |
-
</button>
|
1251 |
-
</div>
|
1252 |
-
|
1253 |
-
<!-- תגית קטגוריה -->
|
1254 |
-
<span class="text-xs px-2 py-1 rounded-full ${getCategoryBadgeColor(
|
1255 |
-
tool.category
|
1256 |
-
)}">
|
1257 |
-
${getCategoryName(tool.category)}
|
1258 |
-
</span>
|
1259 |
-
</div>
|
1260 |
-
</div>
|
1261 |
-
|
1262 |
-
<!-- כפתור מועדפים -->
|
1263 |
-
<div class="flex items-center gap-2">
|
1264 |
-
<button class="favorite-btn p-2 text-yellow-400 hover:text-yellow-500 transition" data-id="${index}" title="הוסף למועדפים">
|
1265 |
-
<i class="far fa-star text-xl"></i>
|
1266 |
-
</button>
|
1267 |
-
<!-- אייקון הכלי -->
|
1268 |
-
<i class="${tool.icon} text-gray-500 text-2xl"></i>
|
1269 |
-
</div>
|
1270 |
</div>
|
1271 |
-
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1278 |
<div class="flex justify-center items-center gap-1 mb-4">
|
1279 |
${renderRatingStars(tool.rating)}
|
1280 |
-
</div>
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
tool.url
|
1285 |
-
}" target="_blank" rel="noopener noreferrer"
|
1286 |
-
class="inline-block w-full text-center px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition ${
|
1287 |
-
tool.url === '#'
|
1288 |
-
? 'opacity-50 cursor-not-allowed'
|
1289 |
-
: ''
|
1290 |
-
}">
|
1291 |
-
<i class="fas fa-external-link-alt ml-2"></i> ${
|
1292 |
-
tool.url !== '#' ? 'גישה לכלי' : 'אין קישור'
|
1293 |
-
}
|
1294 |
</a>
|
1295 |
-
|
1296 |
-
<!-- כפתורי שיתוף -->
|
1297 |
${renderShareButtons(tool)}
|
1298 |
`;
|
1299 |
|
|
|
246 |
height: 32px;
|
247 |
}
|
248 |
|
249 |
+
@media (max-width: 768px) {
|
250 |
+
.favorite-btn {
|
251 |
+
|
252 |
+
right: 10px; /* Adjust the right position */
|
253 |
+
top: 10px; /* Adjust the top position */
|
254 |
+
}
|
255 |
+
}
|
256 |
+
|
257 |
+
.tool-header {
|
258 |
+
display: flex;
|
259 |
+
flex-direction: column; /* Stack title and logo vertically */
|
260 |
+
align-items: center; /* Center align */
|
261 |
+
margin-bottom: 10px; /* Space below the header */
|
262 |
+
}
|
263 |
+
|
264 |
+
.tool-logo {
|
265 |
+
width: 50px; /* Adjust size as needed */
|
266 |
+
height: 50px; /* Adjust size as needed */
|
267 |
+
}
|
268 |
+
|
269 |
+
.tool-name {
|
270 |
+
font-size: 1.5rem; /* Adjust font size as needed */
|
271 |
+
font-weight: bold; /* Make it bold */
|
272 |
+
text-align: center; /* Center align text */
|
273 |
+
}
|
274 |
+
|
275 |
+
.category-chip {
|
276 |
+
background: linear-gradient(90deg, #f3f4f6 60%, #e0e7ff 100%);
|
277 |
+
color: #3730a3;
|
278 |
+
border: 1px solid #a5b4fc;
|
279 |
+
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.07);
|
280 |
+
transition: background 0.2s;
|
281 |
+
}
|
282 |
+
.category-chip i {
|
283 |
+
color: #6366f1;
|
284 |
+
}
|
285 |
+
|
286 |
</style>
|
287 |
<!-- Google tag (gtag.js) -->
|
288 |
<script
|
|
|
1255 |
toolCard.setAttribute('data-tool', 'true');
|
1256 |
|
1257 |
toolCard.innerHTML = `
|
1258 |
+
<div class="relative flex items-center gap-3 mb-2">
|
1259 |
+
<!-- כפתור רמקול צף בפינה שמאלית -->
|
1260 |
+
<button title="הקרא תיאור" onclick="event.stopPropagation(); speakText('${tool.description.replace(/'/g, "\\'")}')" class="speak-button absolute top-0 left-0 z-10 p-2 text-blue-600 hover:text-blue-800 focus:outline-none" style="background:rgba(255,255,255,0.8); border-radius:50%;">
|
1261 |
+
<i class="fas fa-volume-up"></i>
|
1262 |
+
</button>
|
1263 |
+
<img src="${tool.logo}" alt="${tool.name} Logo" class="tool-logo w-14 h-14 object-contain rounded bg-white p-1 shadow-sm ml-2">
|
1264 |
+
<h3 class="tool-name text-2xl font-bold text-gray-800">${tool.name}</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1265 |
</div>
|
1266 |
+
<div class="flex items-center gap-2 mb-3">
|
1267 |
+
<span class="category-chip px-3 py-1 rounded-full font-semibold text-sm shadow-sm ${getCategoryBadgeColor(tool.category)} flex items-center gap-1">
|
1268 |
+
<i class="${tool.icon} text-base"></i>
|
1269 |
+
${getCategoryName(tool.category)}
|
1270 |
+
</span>
|
1271 |
+
</div>
|
1272 |
+
<div class="flex items-center gap-2 mb-3">
|
1273 |
+
${tool.isNew ? `<span class="text-xs bg-green-500 text-white px-2 py-1 rounded-full animate-pulse">חדש!</span>` : ''}
|
1274 |
+
${tool.free ? `<span class="text-xs bg-yellow-400 text-black px-2 py-1 rounded-full">חינם</span>` : ''}
|
1275 |
+
<button class="favorite-btn p-2 text-yellow-400 hover:text-yellow-500 transition" data-id="${index}" title="הוסף למועדפים">
|
1276 |
+
<i class="far fa-star text-xl"></i>
|
1277 |
+
</button>
|
1278 |
+
</div>
|
1279 |
+
<p class="text-gray-700 mb-4 text-base leading-relaxed min-h-[60px]">${tool.description}</p>
|
1280 |
<div class="flex justify-center items-center gap-1 mb-4">
|
1281 |
${renderRatingStars(tool.rating)}
|
1282 |
+
</div>
|
1283 |
+
<a href="${tool.url}" target="_blank" rel="noopener noreferrer"
|
1284 |
+
class="inline-block w-full text-center px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition ${tool.url === '#' ? 'opacity-50 cursor-not-allowed' : ''}">
|
1285 |
+
<i class="fas fa-external-link-alt ml-2"></i> ${tool.url !== '#' ? 'גישה לכלי' : 'אין קישור'}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1286 |
</a>
|
|
|
|
|
1287 |
${renderShareButtons(tool)}
|
1288 |
`;
|
1289 |
|
tools.json
CHANGED
@@ -27,12 +27,12 @@
|
|
27 |
"dateAdded": "2025-07-05T08:15:00Z"
|
28 |
},
|
29 |
{
|
30 |
-
"name": "אליעזר
|
31 |
-
"description": "בוט
|
32 |
"url": "https://wa.me/972559571223",
|
33 |
"logo": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcToJht3wuQrsZ3KNMXckeCrtKGVHgLF1PAB3A&s",
|
34 |
"category": "utility",
|
35 |
-
"icon": "
|
36 |
"video": "",
|
37 |
"isFeatured": true,
|
38 |
"rating": 5,
|
|
|
27 |
"dateAdded": "2025-07-05T08:15:00Z"
|
28 |
},
|
29 |
{
|
30 |
+
"name": "אליעזר",
|
31 |
+
"description": "בוט בוואטסאפ לתמלול הודעות קוליות לעברית במהירות ובחינם. שלחו הודעה קולית ל־'אליעזר' ותקבלו תמלול מדויק תוך שניות. הבוט מבוסס על טכנולוגיית Whisper-Turbo.",
|
32 |
"url": "https://wa.me/972559571223",
|
33 |
"logo": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcToJht3wuQrsZ3KNMXckeCrtKGVHgLF1PAB3A&s",
|
34 |
"category": "utility",
|
35 |
+
"icon": "fab fa-whatsapp",
|
36 |
"video": "",
|
37 |
"isFeatured": true,
|
38 |
"rating": 5,
|