Spaces:
Running
Running
Trích xuất tin tức mới nhất từ https://bongdaplus.vn, khi nhấn vào từng tin sẽ hiện ra 6tin tức dưới dạng ý chính kèm theo toàn bộ hình ảnh bài viết
Browse files- index.html +1 -1
- style.css +39 -1
index.html
CHANGED
|
@@ -34,13 +34,13 @@
|
|
| 34 |
</main>
|
| 35 |
|
| 36 |
<custom-footer></custom-footer>
|
| 37 |
-
|
| 38 |
<script src="components/navbar.js"></script>
|
| 39 |
<script src="components/footer.js"></script>
|
| 40 |
<script src="script.js"></script>
|
| 41 |
<script>
|
| 42 |
feather.replace();
|
| 43 |
</script>
|
|
|
|
| 44 |
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 45 |
</body>
|
| 46 |
</html>
|
|
|
|
| 34 |
</main>
|
| 35 |
|
| 36 |
<custom-footer></custom-footer>
|
|
|
|
| 37 |
<script src="components/navbar.js"></script>
|
| 38 |
<script src="components/footer.js"></script>
|
| 39 |
<script src="script.js"></script>
|
| 40 |
<script>
|
| 41 |
feather.replace();
|
| 42 |
</script>
|
| 43 |
+
<script src="https://cdn.jsdelivr.net/npm/rss-parser@3.12.0/dist/rss-parser.min.js"></script>
|
| 44 |
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 45 |
</body>
|
| 46 |
</html>
|
style.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
/* Custom styles */
|
| 2 |
body {
|
| 3 |
font-family: 'Be Vietnam Pro', sans-serif;
|
|
@@ -8,6 +9,9 @@ body {
|
|
| 8 |
|
| 9 |
.news-card {
|
| 10 |
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
|
|
|
|
|
|
|
|
| 11 |
}
|
| 12 |
|
| 13 |
.news-card:hover {
|
|
@@ -15,12 +19,46 @@ body {
|
|
| 15 |
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
| 16 |
}
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
#news-modal {
|
| 19 |
opacity: 0;
|
| 20 |
transition: opacity 0.3s ease;
|
|
|
|
| 21 |
}
|
| 22 |
|
| 23 |
#news-modal.show {
|
| 24 |
opacity: 1;
|
| 25 |
display: block;
|
| 26 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
/* Custom styles */
|
| 3 |
body {
|
| 4 |
font-family: 'Be Vietnam Pro', sans-serif;
|
|
|
|
| 9 |
|
| 10 |
.news-card {
|
| 11 |
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 12 |
+
height: 100%;
|
| 13 |
+
display: flex;
|
| 14 |
+
flex-direction: column;
|
| 15 |
}
|
| 16 |
|
| 17 |
.news-card:hover {
|
|
|
|
| 19 |
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
| 20 |
}
|
| 21 |
|
| 22 |
+
.news-card img {
|
| 23 |
+
transition: transform 0.3s ease;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
.news-card:hover img {
|
| 27 |
+
transform: scale(1.05);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
#news-modal {
|
| 31 |
opacity: 0;
|
| 32 |
transition: opacity 0.3s ease;
|
| 33 |
+
display: none;
|
| 34 |
}
|
| 35 |
|
| 36 |
#news-modal.show {
|
| 37 |
opacity: 1;
|
| 38 |
display: block;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
.line-clamp-2 {
|
| 42 |
+
display: -webkit-box;
|
| 43 |
+
-webkit-line-clamp: 2;
|
| 44 |
+
-webkit-box-orient: vertical;
|
| 45 |
+
overflow: hidden;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.line-clamp-3 {
|
| 49 |
+
display: -webkit-box;
|
| 50 |
+
-webkit-line-clamp: 3;
|
| 51 |
+
-webkit-box-orient: vertical;
|
| 52 |
+
overflow: hidden;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
#modal-content img {
|
| 56 |
+
max-height: 400px;
|
| 57 |
+
object-fit: cover;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
@media (max-width: 640px) {
|
| 61 |
+
#modal-content img {
|
| 62 |
+
max-height: 250px;
|
| 63 |
+
}
|
| 64 |
+
}
|