নিচের কোডটি সম্পুর্ন কপি করে আপনার ব্লগারের নিউ পোস্ট তৈরি করে সেখানে পেস্ট করুন।
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sports Live Hub | Pro Streaming</title>
<style>
:root {
--primary: #00f2fe;
--secondary: #4facfe;
--accent: #ff007c;
--bg: #05070a;
--card-glass: rgba(255, 255, 255, 0.03);
--border-glass: rgba(255, 255, 255, 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
body {
background-color: var(--bg);
background: radial-gradient(circle at top right, #101520, #05070a);
color: #fff;
min-height: 100vh;
}
/* --- Header --- */
header {
padding: 20px 6%;
display: flex;
justify-content: space-between;
align-items: center;
backdrop-filter: blur(15px);
position: sticky;
top: 0;
z-index: 100;
border-bottom: 1px solid var(--border-glass);
}
.logo {
font-size: 1.6rem;
font-weight: 900;
letter-spacing: -1px;
background: linear-gradient(to right, var(--primary), var(--secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-transform: uppercase;
}
.search-box {
background: var(--card-glass);
border: 1px solid var(--border-glass);
padding: 10px 20px;
border-radius: 50px;
width: 300px;
transition: 0.3s;
}
.search-box:focus-within {
border-color: var(--primary);
box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}
.search-box input {
background: transparent;
border: none;
color: white;
outline: none;
width: 100%;
}
/* --- Layout --- */
.main-content {
padding: 30px 6%;
}
.section-title {
font-size: 1.4rem;
margin: 30px 0 20px;
font-weight: 700;
display: flex;
align-items: center;
gap: 10px;
}
.section-title::before {
content: '';
width: 4px;
height: 24px;
background: var(--primary);
border-radius: 10px;
}
/* --- Cards --- */
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 25px;
}
.card {
background: var(--card-glass);
border: 1px solid var(--border-glass);
border-radius: 20px;
padding: 15px;
text-align: center;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
cursor: pointer;
position: relative;
overflow: hidden;
}
.card:hover {
transform: scale(1.05);
background: rgba(255, 255, 255, 0.08);
border-color: var(--primary);
box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
.card img {
width: 70px;
height: 70px;
margin-bottom: 15px;
filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}
.card h3 {
font-size: 1rem;
font-weight: 600;
}
/* --- Server Modal --- */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.9);
backdrop-filter: blur(10px);
z-index: 1000;
justify-content: center;
align-items: center;
}
.modal-content {
background: #111;
padding: 40px;
border-radius: 30px;
border: 1px solid var(--border-glass);
width: 90%;
max-width: 500px;
text-align: center;
animation: slideUp 0.4s ease;
}
@keyframes slideUp {
from { transform: translateY(50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.server-list {
display: flex;
flex-direction: column;
gap: 15px;
margin-top: 25px;
}
.server-link {
padding: 15px;
background: linear-gradient(90deg, #1a1a1a, #222);
border: 1px solid var(--border-glass);
border-radius: 15px;
color: white;
text-decoration: none;
font-weight: 600;
transition: 0.3s;
display: flex;
justify-content: space-between;
align-items: center;
}
.server-link:hover {
background: linear-gradient(90deg, var(--secondary), var(--primary));
color: #000;
transform: translateX(10px);
}
.close-btn {
margin-top: 20px;
background: transparent;
border: none;
color: var(--accent);
cursor: pointer;
font-weight: bold;
}
/* Mobile Responsive */
@media (max-width: 768px) {
.search-box { width: 150px; }
.grid { grid-template-columns: repeat(2, 1fr); }
}
</style>
</head>
<body>
<header>
<div class="logo">SportsHub</div>
<div class="search-box">
<input type="text" id="searchInput" placeholder="Search..." onkeyup="search()">
</div>
</header>
<div class="main-content">
<h2 class="section-title">🏏 Cricket Leagues</h2>
<div class="grid" id="cricketGrid"></div>
<h2 class="section-title">⚽ Football Leagues</h2>
<div class="grid" id="footballGrid"></div>
</div>
<div id="serverModal" class="modal">
<div class="modal-content">
<h2 id="matchTitle" style="margin-bottom:10px;">Select Server</h2>
<p style="color: #888;">লিংকে ক্লিক করলে সরাসরি স্ট্রিমিং পেজে নিয়ে যাবে</p>
<div class="server-list" id="serverLinks">
</div>
<button class="close-btn" onclick="closeModal()">CLOSE</button>
</div>
</div>
<script>
// --- ডাটা কনফিগারেশন (এখানে আপনার লিংক বসান) ---
const data = {
cricket: [
{ title: 'IPL 2026 Live', s1: 'LINK_1', s2: 'LINK_2', s3: 'LINK_3' },
{ title: 'PSL 2026', s1: 'LINK', s2: 'LINK', s3: 'LINK' },
{ title: 'World Cup', s1: 'LINK_1', s2: 'LINK_2', s3: 'LINK_3' }
],
football: [
{ title: 'Premier League', s1: 'LINK_1', s2: 'LINK_2', s3: 'LINK_3' },
{ title: 'Champions League', s1: 'LINK_1', s2: 'LINK_2', s3: 'LINK_3' }
],
channels: [
{ title: 'Star Sports 1', s1: 'LINK_1', s2: 'LINK_2', s3: 'LINK_3' },
{ title: 'T Sports Live', s1: 'LINK_1', s2: 'LINK_2', s3: 'LINK_3' },
{ title: 'Sony Ten 2', s1: 'LINK_1', s2: 'LINK_2', s3: 'LINK_3' }
]
};
function init() {
render('cricketGrid', data.cricket);
render('footballGrid', data.football);
render('channelsGrid', data.channels);
}
function render(id, items) {
const grid = document.getElementById(id);
grid.innerHTML = items.map(item => `
<div class="card" onclick="openServers('${item.title}', '${item.s1}', '${item.s2}', '${item.s3}')">
<img src="https://cdn-icons-png.flaticon.com/512/5358/5358640.png" alt="icon">
<h3>${item.title}</h3>
</div>
`).join('');
}
function openServers(title, s1, s2, s3) {
document.getElementById('matchTitle').innerText = title;
const list = document.getElementById('serverLinks');
list.innerHTML = `
<a href="${s1}" target="_blank" class="server-link">🚀 Server 1 (Fast) <span>→</span></a>
<a href="${s2}" target="_blank" class="server-link">⚡ Server 2 (HD) <span>→</span></a>
<a href="${s3}" target="_blank" class="server-link">💎 Server 3 (Backup) <span>→</span></a>
`;
document.getElementById('serverModal').style.display = 'flex';
}
function closeModal() {
document.getElementById('serverModal').style.display = 'none';
}
function search() {
const query = document.getElementById('searchInput').value.toLowerCase();
const cards = document.querySelectorAll('.card');
cards.forEach(card => {
const title = card.querySelector('h3').innerText.toLowerCase();
card.style.display = title.includes(query) ? 'block' : 'none';
});
}
// Close modal when clicking outside
window.onclick = (e) => {
if(e.target == document.getElementById('serverModal')) closeModal();
}
init();
</script>
</body>
</html>

Post a Comment