bep40 commited on
Commit
e22a952
·
verified ·
1 Parent(s): 5447b65

Trích xuất nội dung tin tức mới nhất từ 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
Files changed (5) hide show
  1. README.md +7 -4
  2. components/footer.js +111 -0
  3. components/navbar.js +79 -0
  4. index.html +46 -19
  5. style.css +17 -19
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: B Ng Buzz Express
3
- emoji: 🔥
4
- colorFrom: yellow
5
  colorTo: blue
 
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: Bóng Đá Buzz Express
3
+ colorFrom: red
 
4
  colorTo: blue
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).
components/footer.js ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ footer {
7
+ background: #1e3a8a;
8
+ color: white;
9
+ padding: 2rem 1rem;
10
+ text-align: center;
11
+ margin-top: auto;
12
+ }
13
+ .footer-content {
14
+ max-width: 1200px;
15
+ margin: 0 auto;
16
+ display: grid;
17
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
18
+ gap: 2rem;
19
+ text-align: left;
20
+ }
21
+ .footer-section h3 {
22
+ font-size: 1.125rem;
23
+ font-weight: 600;
24
+ margin-bottom: 1rem;
25
+ color: #93c5fd;
26
+ }
27
+ .footer-section ul {
28
+ list-style: none;
29
+ padding: 0;
30
+ margin: 0;
31
+ }
32
+ .footer-section li {
33
+ margin-bottom: 0.5rem;
34
+ }
35
+ .footer-section a {
36
+ color: #e5e7eb;
37
+ text-decoration: none;
38
+ transition: color 0.2s;
39
+ }
40
+ .footer-section a:hover {
41
+ color: #93c5fd;
42
+ }
43
+ .copyright {
44
+ margin-top: 2rem;
45
+ padding-top: 1rem;
46
+ border-top: 1px solid #3b82f6;
47
+ font-size: 0.875rem;
48
+ color: #e5e7eb;
49
+ }
50
+ .social-icons {
51
+ display: flex;
52
+ gap: 1rem;
53
+ justify-content: center;
54
+ margin-top: 1.5rem;
55
+ }
56
+ .social-icons a {
57
+ color: white;
58
+ transition: color 0.2s;
59
+ }
60
+ .social-icons a:hover {
61
+ color: #93c5fd;
62
+ }
63
+ @media (max-width: 768px) {
64
+ .footer-content {
65
+ grid-template-columns: 1fr;
66
+ text-align: center;
67
+ }
68
+ }
69
+ </style>
70
+ <footer>
71
+ <div class="footer-content">
72
+ <div class="footer-section">
73
+ <h3>Giới thiệu</h3>
74
+ <p class="text-gray-300">Bóng Đá Buzz Express - Nhanh nhất, chính xác nhất, đầy đủ nhất</p>
75
+ </div>
76
+ <div class="footer-section">
77
+ <h3>Liên kết</h3>
78
+ <ul>
79
+ <li><a href="#">Trang chủ</a></li>
80
+ <li><a href="#">Tin tức</a></li>
81
+ <li><a href="#">Video</a></li>
82
+ <li><a href="#">Bảng điểm</a></li>
83
+ </ul>
84
+ </div>
85
+ <div class="footer-section">
86
+ <h3>Hỗ trợ</h3>
87
+ <ul>
88
+ <li><a href="#">Liên hệ</a></li>
89
+ <li><a href="#">Điều khoản</a></li>
90
+ <li><a href="#">Bảo mật</a></li>
91
+ <li><a href="#">FAQ</a></li>
92
+ </ul>
93
+ </div>
94
+ <div class="footer-section">
95
+ <h3>Theo dõi chúng tôi</h3>
96
+ <div class="social-icons">
97
+ <a href="#"><i data-feather="facebook"></i></a>
98
+ <a href="#"><i data-feather="twitter"></i></a>
99
+ <a href="#"><i data-feather="youtube"></i></a>
100
+ <a href="#"><i data-feather="instagram"></i></a>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ <div class="copyright">
105
+ <p>&copy; 2024 Bóng Đá Buzz Express. All rights reserved.</p>
106
+ </div>
107
+ </footer>
108
+ `;
109
+ }
110
+ }
111
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ nav {
7
+ background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
8
+ padding: 1rem 2rem;
9
+ display: flex;
10
+ justify-content: space-between;
11
+ align-items: center;
12
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
13
+ }
14
+ .logo {
15
+ color: white;
16
+ font-weight: bold;
17
+ font-size: 1.5rem;
18
+ display: flex;
19
+ align-items: center;
20
+ gap: 0.5rem;
21
+ }
22
+ .logo-icon {
23
+ width: 30px;
24
+ height: 30px;
25
+ }
26
+ ul {
27
+ display: flex;
28
+ gap: 1.5rem;
29
+ list-style: none;
30
+ margin: 0;
31
+ padding: 0;
32
+ }
33
+ a {
34
+ color: white;
35
+ text-decoration: none;
36
+ transition: opacity 0.2s;
37
+ font-weight: 500;
38
+ padding: 0.5rem 1rem;
39
+ border-radius: 0.375rem;
40
+ }
41
+ a:hover {
42
+ opacity: 0.9;
43
+ background-color: rgba(255, 255, 255, 0.1);
44
+ }
45
+ .active {
46
+ background-color: rgba(255, 255, 255, 0.2);
47
+ }
48
+ @media (max-width: 768px) {
49
+ nav {
50
+ flex-direction: column;
51
+ padding: 1rem;
52
+ }
53
+ ul {
54
+ margin-top: 1rem;
55
+ flex-wrap: wrap;
56
+ justify-content: center;
57
+ }
58
+ }
59
+ </style>
60
+ <nav>
61
+ <a href="/" class="logo">
62
+ <svg class="logo-icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
63
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" fill="white"/>
64
+ <path d="M12 7c-.55 0-1 .45-1 1v3H8c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V8c0-.55-.45-1-1-1z" fill="white"/>
65
+ </svg>
66
+ <span>Bóng Đá Buzz</span>
67
+ </a>
68
+ <ul>
69
+ <li><a href="/" class="active">Trang chủ</a></li>
70
+ <li><a href="#">Tin nóng</a></li>
71
+ <li><a href="#">Lịch thi đấu</a></li>
72
+ <li><a href="#">Kết quả</a></li>
73
+ <li><a href="#">Video</a></li>
74
+ </ul>
75
+ </nav>
76
+ `;
77
+ }
78
+ }
79
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,46 @@
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
+ <!DOCTYPE html>
2
+ <html lang="vi">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Bóng Đá Buzz Express ⚡</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
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <link href="https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap" rel="stylesheet">
12
+ </head>
13
+ <body class="font-sans bg-gray-50">
14
+ <custom-navbar></custom-navbar>
15
+
16
+ <main class="container mx-auto px-4 py-8">
17
+ <h1 class="text-3xl font-bold text-center mb-8 text-gray-800">Tin Bóng Đá Mới Nhất</h1>
18
+
19
+ <div id="news-container" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
20
+ <!-- News will be loaded here -->
21
+ </div>
22
+
23
+ <!-- Modal for detailed news -->
24
+ <div id="news-modal" class="fixed inset-0 bg-black bg-opacity-50 hidden z-50 overflow-y-auto">
25
+ <div class="relative max-w-4xl mx-auto bg-white rounded-lg shadow-xl my-8 p-6">
26
+ <button id="close-modal" class="absolute top-4 right-4 text-gray-500 hover:text-gray-700">
27
+ <i data-feather="x"></i>
28
+ </button>
29
+ <div id="modal-content" class="mt-4">
30
+ <!-- Modal content will be loaded here -->
31
+ </div>
32
+ </div>
33
+ </div>
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>
style.css CHANGED
@@ -1,28 +1,26 @@
 
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 */
2
  body {
3
+ font-family: 'Be Vietnam Pro', sans-serif;
4
+ min-height: 100vh;
5
+ display: flex;
6
+ flex-direction: column;
7
  }
8
 
9
+ .news-card {
10
+ transition: transform 0.3s ease, box-shadow 0.3s ease;
 
11
  }
12
 
13
+ .news-card:hover {
14
+ transform: translateY(-5px);
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
+ }