- Мар
- 126
- 20
Пользователь
By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!<style>
:root {
--primary: #ffb82b;
--primary-dark: #e5a524;
--bg-dark: #0b0b0f;
--bg-card: rgba(26, 26, 35, 0.8);
--text-primary: #e8eef2;
--text-secondary: #a0a8b8;
--border-glow: rgba(255, 184, 43, 0.1);
}
.maintenance-box {
background: var(--bg-card);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid var(--border-glow);
border-radius: 32px;
width: 500px;
padding: 40px 30px;
color: var(--text-primary);
text-align: center;
margin: 0 auto;
box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
position: relative;
overflow: hidden;
animation: fadeInUp 0.6s ease-out forwards;
}
.maintenance-box::before {
content: ''...
я понимаю а как сделать в таком видеэто не плагин, а настраивается он в панеле управления
настройки - настройки - включение и отключение форума
<style>
:root {
--primary: #ffb82b;
--primary-dark: #e5a524;
--bg-dark: #0b0b0f;
--bg-card: rgba(26, 26, 35, 0.8);
--text-primary: #e8eef2;
--text-secondary: #a0a8b8;
--border-glow: rgba(255, 184, 43, 0.1);
}
.maintenance-box {
background: var(--bg-card);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid var(--border-glow);
border-radius: 32px;
width: 500px;
padding: 40px 30px;
color: var(--text-primary);
text-align: center;
margin: 0 auto;
box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
position: relative;
overflow: hidden;
animation: fadeInUp 0.6s ease-out forwards;
}
.maintenance-box::before {
content: '';
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 4px;
background: linear-gradient(180deg, var(--primary) 0%, #ff8c42 100%);
border-radius: 4px 0 0 4px;
}
.maintenance-box::after {
content: '';
position: absolute;
top: -50%;
right: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255, 184, 43, 0.03) 0%, transparent 70%);
animation: glow 20s infinite linear;
pointer-events: none;
}
@keyframes glow {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.maintenance-logo {
width: 120px;
margin: 0 auto 20px;
display: block;
filter: drop-shadow(0 0 15px rgba(255, 184, 43, 0.3));
border-radius: 50%;
border: 2px solid rgba(255, 184, 43, 0.2);
padding: 5px;
background: rgba(255, 184, 43, 0.05);
}
.maintenance-title {
font-weight: 800;
font-size: 28px;
margin-bottom: 12px;
color: #fff;
letter-spacing: -0.02em;
text-transform: uppercase;
-webkit-text-stroke: 1px var(--primary);
-webkit-text-fill-color: transparent;
text-shadow: 0 0 20px rgba(255, 184, 43, 0.3);
}
.maintenance-text {
font-weight: 400;
font-size: 15px;
margin-bottom: 30px;
color: var(--text-secondary);
line-height: 1.6;
max-width: 350px;
margin-left: auto;
margin-right: auto;
}
.timer {
display: flex;
justify-content: center;
gap: 15px;
margin-bottom: 25px;
}
.timer div {
background: rgba(20, 20, 28, 0.8);
backdrop-filter: blur(8px);
border: 1px solid rgba(255, 184, 43, 0.2);
border-radius: 16px;
padding: 15px 20px;
min-width: 80px;
position: relative;
overflow: hidden;
}
.timer div::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 2px;
background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.timer-value {
font-weight: 700;
font-size: 32px;
color: var(--primary);
line-height: 1.2;
text-shadow: 0 0 15px rgba(255, 184, 43, 0.5);
}
.timer-label {
font-size: 12px;
color: var(--text-secondary);
margin-top: 5px;
text-transform: uppercase;
font-weight: 600;
letter-spacing: 0.5px;
}
.expected-time {
color: #6a7285;
font-size: 13px;
padding: 12px 20px;
background: rgba(255, 184, 43, 0.05);
border-radius: 40px;
display: inline-block;
border: 1px solid rgba(255, 184, 43, 0.1);
backdrop-filter: blur(4px);
margin-top: 10px;
}
.contact-info {
margin-top: 30px;
padding: 20px 15px;
background: linear-gradient(135deg, rgba(255, 184, 43, 0.1) 0%, rgba(255, 140, 66, 0.05) 100%);
border-radius: 24px;
border: 1px solid rgba(255, 184, 43, 0.2);
backdrop-filter: blur(4px);
transition: all 0.3s ease;
}
.contact-info:hover {
border-color: rgba(255, 184, 43, 0.4);
box-shadow: 0 0 20px rgba(255, 184, 43, 0.1);
transform: translateY(-2px);
}
.contact-title {
font-size: 14px;
color: var(--text-secondary);
margin-bottom: 12px;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 600;
}
.contact-details {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.contact-name {
font-weight: 600;
font-size: 18px;
color: var(--primary);
text-shadow: 0 0 10px rgba(255, 184, 43, 0.3);
}
.contact-telegram {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(255, 184, 43, 0.1);
padding: 10px 25px;
border-radius: 40px;
border: 1px solid rgba(255, 184, 43, 0.3);
transition: all 0.3s ease;
text-decoration: none;
color: var(--primary);
font-weight: 500;
margin-top: 5px;
}
.contact-telegram:hover {
background: rgba(255, 184, 43, 0.2);
border-color: var(--primary);
box-shadow: 0 0 20px rgba(255, 184, 43, 0.2);
transform: scale(1.05);
}
.contact-telegram::before {
content: '✈️';
font-size: 16px;
filter: drop-shadow(0 0 5px rgba(255, 184, 43, 0.5));
}
@media (max-width: 600px) {
.maintenance-box {
width: 100%;
padding: 30px 20px;
}
.maintenance-title {
font-size: 24px;
}
.timer {
gap: 10px;
}
.timer div {
min-width: 60px;
padding: 12px 15px;
}
.timer-value {
font-size: 26px;
}
.timer-label {
font-size: 10px;
}
.maintenance-text {
font-size: 14px;
}
.contact-name {
font-size: 16px;
}
.contact-telegram {
padding: 8px 20px;
font-size: 14px;
}
}
@media (max-width: 400px) {
.timer div {
min-width: 50px;
padding: 10px 12px;
}
.timer-value {
font-size: 22px;
}
}
</style>
<div class="maintenance-box">
<img src="https://s5.iimage.su/s/01/g2L48tWxEPDYQztX5K8keloSovmX3PZrjdVzKcoa.png" alt="Логотип" class="maintenance-logo" />
<div class="maintenance-title">ФОРУМ ВЫКЛЮЧЕН</div>
<div class="maintenance-text">Сейчас проводятся технические работы. Форум будет готов в ближайшее время.</div>
<div class="timer">
<div><div id="hours" class="timer-value">00</div><div class="timer-label">часов</div></div>
<div><div id="minutes" class="timer-value">00</div><div class="timer-label">минут</div></div>
<div><div id="seconds" class="timer-value">00</div><div class="timer-label">секунд</div></div>
</div>
<div class="expected-time">Ожидаемое время: 1–2 часа</div>
<div class="contact-info">
<div class="contact-title">По всем вопросам</div>
<div class="contact-details">
<span class="contact-name">Keleen Dalaner</span>
<span style="color: var(--text-secondary); font-size: 14px;">Администратор Форума</span>
<a href="https://t.me/azxfalens" target="_blank" class="contact-telegram">@azxfalens</a>
</div>
</div>
</div>
<script>
let endTime = localStorage.getItem('maintenanceEndTime');
if (!endTime) {
let date = new Date();
date.setHours(date.getHours() +2);
endTime = date.getTime();
localStorage.setItem('maintenanceEndTime', endTime);
} else {
endTime = parseInt(endTime);
}
function updateTimer() {
let now = new Date().getTime();
let distance = endTime - now;
if (distance < 0) {
document.getElementById('hours').innerText = '00';
document.getElementById('minutes').innerText = '00';
document.getElementById('seconds').innerText = '00';
localStorage.removeItem('maintenanceEndTime');
clearInterval(timerInterval);
return;
}
let hours = Math.floor(distance / (1000 * 60 * 60));
let minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
let seconds = Math.floor((distance % (1000 * 60)) / 1000);
document.getElementById('hours').innerText = hours < 10 ? '0' + hours : hours;
document.getElementById('minutes').innerText = minutes < 10 ? '0' + minutes : minutes;
document.getElementById('seconds').innerText = seconds < 10 ? '0' + seconds : seconds;
}
let timerInterval = setInterval(updateTimer, 1000);
updateTimer();
</script>
Спасибоcss:<style> :root { --primary: #ffb82b; --primary-dark: #e5a524; --bg-dark: #0b0b0f; --bg-card: rgba(26, 26, 35, 0.8); --text-primary: #e8eef2; --text-secondary: #a0a8b8; --border-glow: rgba(255, 184, 43, 0.1); } .maintenance-box { background: var(--bg-card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-glow); border-radius: 32px; width: 500px; padding: 40px 30px; color: var(--text-primary); text-align: center; margin: 0 auto; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); position: relative; overflow: hidden; animation: fadeInUp 0.6s ease-out forwards; } .maintenance-box::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: linear-gradient(180deg, var(--primary) 0%, #ff8c42 100%); border-radius: 4px 0 0 4px; } .maintenance-box::after { content: ''; position: absolute; top: -50%; right: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255, 184, 43, 0.03) 0%, transparent 70%); animation: glow 20s infinite linear; pointer-events: none; } @keyframes glow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } .maintenance-logo { width: 120px; margin: 0 auto 20px; display: block; filter: drop-shadow(0 0 15px rgba(255, 184, 43, 0.3)); border-radius: 50%; border: 2px solid rgba(255, 184, 43, 0.2); padding: 5px; background: rgba(255, 184, 43, 0.05); } .maintenance-title { font-weight: 800; font-size: 28px; margin-bottom: 12px; color: #fff; letter-spacing: -0.02em; text-transform: uppercase; -webkit-text-stroke: 1px var(--primary); -webkit-text-fill-color: transparent; text-shadow: 0 0 20px rgba(255, 184, 43, 0.3); } .maintenance-text { font-weight: 400; font-size: 15px; margin-bottom: 30px; color: var(--text-secondary); line-height: 1.6; max-width: 350px; margin-left: auto; margin-right: auto; } .timer { display: flex; justify-content: center; gap: 15px; margin-bottom: 25px; } .timer div { background: rgba(20, 20, 28, 0.8); backdrop-filter: blur(8px); border: 1px solid rgba(255, 184, 43, 0.2); border-radius: 16px; padding: 15px 20px; min-width: 80px; position: relative; overflow: hidden; } .timer div::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); } .timer-value { font-weight: 700; font-size: 32px; color: var(--primary); line-height: 1.2; text-shadow: 0 0 15px rgba(255, 184, 43, 0.5); } .timer-label { font-size: 12px; color: var(--text-secondary); margin-top: 5px; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; } .expected-time { color: #6a7285; font-size: 13px; padding: 12px 20px; background: rgba(255, 184, 43, 0.05); border-radius: 40px; display: inline-block; border: 1px solid rgba(255, 184, 43, 0.1); backdrop-filter: blur(4px); margin-top: 10px; } .contact-info { margin-top: 30px; padding: 20px 15px; background: linear-gradient(135deg, rgba(255, 184, 43, 0.1) 0%, rgba(255, 140, 66, 0.05) 100%); border-radius: 24px; border: 1px solid rgba(255, 184, 43, 0.2); backdrop-filter: blur(4px); transition: all 0.3s ease; } .contact-info:hover { border-color: rgba(255, 184, 43, 0.4); box-shadow: 0 0 20px rgba(255, 184, 43, 0.1); transform: translateY(-2px); } .contact-title { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; } .contact-details { display: flex; flex-direction: column; align-items: center; gap: 8px; } .contact-name { font-weight: 600; font-size: 18px; color: var(--primary); text-shadow: 0 0 10px rgba(255, 184, 43, 0.3); } .contact-telegram { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 184, 43, 0.1); padding: 10px 25px; border-radius: 40px; border: 1px solid rgba(255, 184, 43, 0.3); transition: all 0.3s ease; text-decoration: none; color: var(--primary); font-weight: 500; margin-top: 5px; } .contact-telegram:hover { background: rgba(255, 184, 43, 0.2); border-color: var(--primary); box-shadow: 0 0 20px rgba(255, 184, 43, 0.2); transform: scale(1.05); } .contact-telegram::before { content: '✈️'; font-size: 16px; filter: drop-shadow(0 0 5px rgba(255, 184, 43, 0.5)); } @media (max-width: 600px) { .maintenance-box { width: 100%; padding: 30px 20px; } .maintenance-title { font-size: 24px; } .timer { gap: 10px; } .timer div { min-width: 60px; padding: 12px 15px; } .timer-value { font-size: 26px; } .timer-label { font-size: 10px; } .maintenance-text { font-size: 14px; } .contact-name { font-size: 16px; } .contact-telegram { padding: 8px 20px; font-size: 14px; } } @media (max-width: 400px) { .timer div { min-width: 50px; padding: 10px 12px; } .timer-value { font-size: 22px; } } </style> <div class="maintenance-box"> <img src="https://s5.iimage.su/s/01/g2L48tWxEPDYQztX5K8keloSovmX3PZrjdVzKcoa.png" alt="Логотип" class="maintenance-logo" /> <div class="maintenance-title">ФОРУМ ВЫКЛЮЧЕН</div> <div class="maintenance-text">Сейчас проводятся технические работы. Форум будет готов в ближайшее время.</div> <div class="timer"> <div><div id="hours" class="timer-value">00</div><div class="timer-label">часов</div></div> <div><div id="minutes" class="timer-value">00</div><div class="timer-label">минут</div></div> <div><div id="seconds" class="timer-value">00</div><div class="timer-label">секунд</div></div> </div> <div class="expected-time">Ожидаемое время: 1–2 часа</div> <div class="contact-info"> <div class="contact-title">По всем вопросам</div> <div class="contact-details"> <span class="contact-name">Keleen Dalaner</span> <span style="color: var(--text-secondary); font-size: 14px;">Администратор Форума</span> <a href="https://t.me/azxfalens" target="_blank" class="contact-telegram">@azxfalens</a> </div> </div> </div> <script> let endTime = localStorage.getItem('maintenanceEndTime'); if (!endTime) { let date = new Date(); date.setHours(date.getHours() +2); endTime = date.getTime(); localStorage.setItem('maintenanceEndTime', endTime); } else { endTime = parseInt(endTime); } function updateTimer() { let now = new Date().getTime(); let distance = endTime - now; if (distance < 0) { document.getElementById('hours').innerText = '00'; document.getElementById('minutes').innerText = '00'; document.getElementById('seconds').innerText = '00'; localStorage.removeItem('maintenanceEndTime'); clearInterval(timerInterval); return; } let hours = Math.floor(distance / (1000 * 60 * 60)); let minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); let seconds = Math.floor((distance % (1000 * 60)) / 1000); document.getElementById('hours').innerText = hours < 10 ? '0' + hours : hours; document.getElementById('minutes').innerText = minutes < 10 ? '0' + minutes : minutes; document.getElementById('seconds').innerText = seconds < 10 ? '0' + seconds : seconds; } let timerInterval = setInterval(updateTimer, 1000); updateTimer(); </script>
нет. по путю который указывал раньше. в строчку "Сообщение, отображаемое при отключённом форуме" и убери галочку с "Форум включён"это в extra?