21 Kasım 2025, 20:05
|
#1 |
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
| Mobil Uyumlu Radyo Player + HTML + CSS Tek Dosya – Full Responsive 📻 Mobil Uyumlu Radyo Player + HTML + CSS Tek Dosya – Full Responsive Modern tasarımlı, mobil cihazlarda %100 uyumlu çalışan HTML radyo player kodunu aşağıda paylaşıyorum.
Navbar + footer + player bölümü aynı sayfada entegre edilmiştir. ✨ Özellikler- %100 mobil uyumlu (responsive) yapı
- Sabit üst Navbar menüsü
- Sabit alt Footer alanı
- Modern koyu tema
- Dinle / Durdur butonları
- Her tarayıcı ile uyumlu
- HTML + CSS + JS tek dosyada
🔧 Kurulum (3 Adım)- Aşağıdaki kodları bir **index.html** dosyasına kaydedin.
- `STREAM_LINK_HERE` yazan yere kendi radyo yayın URL’nizi ekleyin.
- Dosyayı sunucunuza yükleyip çalıştırın.
📄 Tüm Kod (Tek Dosya – Full Responsive) Kod: Kodu kopyalamak için üzerine çift tıklayın! <!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Radyo Player</title>
<style>
/* GENEL AYARLAR */
body {
margin: 0;
background: #111;
font-family: Arial, sans-serif;
color: #fff;
display: flex;
flex-direction: column;
height: 100vh;
}
/* NAVBAR */
.navbar {
width: 100%;
background: #1c1c1c;
padding: 15px;
text-align: center;
font-size: 20px;
font-weight: bold;
position: fixed;
top: 0;
left: 0;
z-index: 100;
box-shadow: 0 0 10px rgba(0,0,0,0.6);
}
/* FOOTER */
.footer {
width: 100%;
background: #1c1c1c;
padding: 12px;
text-align: center;
font-size: 14px;
position: fixed;
bottom: 0;
left: 0;
z-index: 100;
color: #bbb;
}
/* ORTA PLAYER ALANI */
.content {
margin-top: 70px;
margin-bottom: 60px;
flex: 1;
display: flex;
justify-content: center;
align-items: center;
}
.player-container {
width: 90%;
max-width: 350px;
background: #1c1c1c;
padding: 25px;
border-radius: 15px;
text-align: center;
box-shadow: 0 0 15px rgba(0,0,0,0.5);
}
.title {
font-size: 22px;
margin-bottom: 20px;
font-weight: bold;
}
.btn {
width: 100%;
padding: 15px;
background: #ff3b3b;
border: none;
border-radius: 10px;
color: #fff;
font-size: 18px;
margin-top: 10px;
cursor: pointer;
transition: .2s;
}
.btn:hover {
background: #ff5252;
}
.btn:active {
background: #e63131;
}
.stop-btn {
background: #444 !important;
}
.status {
margin-top: 15px;
font-size: 14px;
color: #ccc;
}
</style>
</head>
<body>
<!-- NAVBAR -->
<div class="navbar">
📻 Radyo Menü
</div>
<!-- ORTA PLAYER -->
<div class="content">
<div class="player-container">
<div class="title">IRCForumu Online Radyo</div>
<audio id="radioPlayer"
src="STREAM_LINK_HERE"
preload="none"></audio>
<button class="btn" onclick="playRadio()">▶ Dinle</button>
<button class="btn stop-btn" onclick="stopRadio()">■ Durdur</button>
<div class="status" id="statusText">Durum: Beklemede</div>
</div>
</div>
<!-- FOOTER -->
<div class="footer">
© 2025 IRCForumu.Net Radyo Yayını - Tüm Hakları Saklıdır
</div>
<script>
const radio = document.getElementById("radioPlayer");
const statusText = document.getElementById("statusText");
function playRadio() {
radio.play();
statusText.innerHTML = "Durum: Çalıyor 🎶";
}
function stopRadio() {
radio.pause();
radio.currentTime = 0;
statusText.innerHTML = "Durum: Durduruldu";
}
</script>
</body>
</html> 📌 Önemli Not:
`STREAM_LINK_HERE` yazan yere kendi radyo yayın adresinizi girmeniz yeterlidir. Kodları dilediğiniz gibi düzenleyebilir, geliştirebilir, projelerinizde kullanabilirsiniz. |
|
| |