Spaces:
Running
Running
Update templates/index.html
Browse files- templates/index.html +16 -3
templates/index.html
CHANGED
@@ -61,9 +61,11 @@
|
|
61 |
box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow like screenshot */
|
62 |
transition: transform 0.2s;
|
63 |
overflow: hidden;
|
|
|
64 |
}
|
65 |
.article-tile:hover {
|
66 |
transform: scale(1.05);
|
|
|
67 |
}
|
68 |
.article-tile img, .article-tile svg {
|
69 |
width: 100%;
|
@@ -163,9 +165,20 @@
|
|
163 |
loading.style.display = 'block';
|
164 |
});
|
165 |
|
166 |
-
|
167 |
-
|
168 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
});
|
170 |
</script>
|
171 |
</body>
|
|
|
61 |
box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow like screenshot */
|
62 |
transition: transform 0.2s;
|
63 |
overflow: hidden;
|
64 |
+
border: 1px solid #e0e0e0; /* Subtle grey outline from screenshot */
|
65 |
}
|
66 |
.article-tile:hover {
|
67 |
transform: scale(1.05);
|
68 |
+
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
|
69 |
}
|
70 |
.article-tile img, .article-tile svg {
|
71 |
width: 100%;
|
|
|
165 |
loading.style.display = 'block';
|
166 |
});
|
167 |
|
168 |
+
// Redirect to load feeds on page load
|
169 |
+
fetch('/load_feeds')
|
170 |
+
.then(response => {
|
171 |
+
if (response.status === 200) {
|
172 |
+
window.location.href = '/index';
|
173 |
+
} else {
|
174 |
+
console.error('Failed to load feeds');
|
175 |
+
loading.style.display = 'none';
|
176 |
+
}
|
177 |
+
})
|
178 |
+
.catch(error => {
|
179 |
+
console.error('Error loading feeds:', error);
|
180 |
+
loading.style.display = 'none';
|
181 |
+
});
|
182 |
});
|
183 |
</script>
|
184 |
</body>
|