کد های مورد نیاز:
PHP Code:
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
?>
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#080d1c">
<title>نوروز ۱۴۰۶ | جشن هفتسالگی ماورا</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');
:root {
--gold: #e8c77c;
--gold-light: #fff0bd;
--muted: #a6b1ca;
--panel: rgba(255,255,255,.055);
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
min-height: 100vh;
overflow-x: hidden;
font-family: Vazirmatn, Tahoma, sans-serif;
color: #fff;
background: #080d1c;
}
body::before {
content: "";
position: fixed;
inset: 0;
z-index: -2;
background:
radial-gradient(ellipse at 50% 0%, rgba(58,83,155,.48), transparent 55%),
radial-gradient(ellipse at 0% 75%, rgba(112,76,137,.16), transparent 45%),
radial-gradient(ellipse at 100% 80%, rgba(174,133,65,.12), transparent 40%),
linear-gradient(145deg,#080d1c,#101a35 55%,#080d1c);
}
body::after {
content: "";
position: fixed;
inset: 0;
z-index: -1;
opacity: .12;
pointer-events: none;
background-image: radial-gradient(#fff 0.7px,transparent .7px);
background-size: 38px 38px;
}
#particles {
position: fixed;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 0;
}
.page {
position: relative;
z-index: 1;
width: 100%;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 35px 18px;
}
.main-card {
width: 100%;
max-width: 1020px;
position: relative;
padding: 55px 48px 35px;
border-radius: 32px;
text-align: center;
overflow: hidden;
border: 1px solid rgba(232,199,124,.2);
background:
linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
backdrop-filter: blur(22px);
-webkit-backdrop-filter: blur(22px);
box-shadow:
0 35px 100px rgba(0,0,0,.42),
inset 0 1px 0 rgba(255,255,255,.12);
}
.main-card::before {
content: "";
position: absolute;
top: 0;
left: 15%;
width: 70%;
height: 1px;
background: linear-gradient(90deg,transparent,var(--gold),transparent);
box-shadow: 0 0 25px var(--gold);
}
.glow {
position: absolute;
width: 300px;
height: 300px;
border-radius: 50%;
filter: blur(100px);
opacity: .12;
pointer-events: none;
}
.glow.one {
background: #d9a947;
top: -190px;
right: -100px;
}
.glow.two {
background: #587dff;
bottom: -200px;
left: -100px;
}
.top-badge {
display: inline-flex;
align-items: center;
gap: 9px;
padding: 9px 19px;
border-radius: 50px;
border: 1px solid rgba(232,199,124,.32);
background: rgba(232,199,124,.08);
color: var(--gold-light);
font-size: 12px;
font-weight: 600;
letter-spacing: .5px;
}
.badge-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: #e8c77c;
box-shadow: 0 0 12px #e8c77c;
animation: pulse 1.8s infinite;
}
@keyframes pulse {
50% { opacity: .35; transform: scale(.7); }
}
.hero-icon {
margin: 27px auto 15px;
width: 76px;
height: 76px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 25px;
font-size: 37px;
background: linear-gradient(145deg,rgba(232,199,124,.2),rgba(232,199,124,.035));
border: 1px solid rgba(232,199,124,.28);
box-shadow: 0 0 45px rgba(232,199,124,.12);
}
h1 {
margin: 0;
font-size: clamp(42px,8vw,78px);
font-weight: 900;
line-height: 1.35;
background: linear-gradient(110deg,#fff7d9 5%,#e8c77c 45%,#fff0bd 70%,#c89b4d);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 5px 22px rgba(232,199,124,.12));
}
.subtitle {
color: #b7c3dc;
font-size: clamp(13px,2vw,16px);
margin: 10px 0 13px;
}
.date-line {
color: #e4c985;
font-size: 13px;
font-weight: 500;
margin-bottom: 36px;
}
.section-heading {
color: #d9e0ef;
font-size: 13px;
margin-bottom: 17px;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
}
.section-heading::before,
.section-heading::after {
content: "";
width: 45px;
height: 1px;
background: linear-gradient(90deg,transparent,rgba(232,199,124,.5));
}
.section-heading::after {
transform: rotate(180deg);
}
.countdown {
display: grid;
grid-template-columns: repeat(6,minmax(0,1fr));
gap: 13px;
direction: rtl;
}
.time-box {
position: relative;
padding: 23px 8px 19px;
border-radius: 19px;
background: linear-gradient(155deg,rgba(255,255,255,.085),rgba(255,255,255,.025));
border: 1px solid rgba(255,255,255,.1);
box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
transition: transform .3s,border-color .3s,background .3s;
}
.time-box:hover {
transform: translateY(-6px);
border-color: rgba(232,199,124,.48);
background: rgba(232,199,124,.075);
}
.time-number {
display: block;
color: var(--gold-light);
font-size: clamp(25px,4vw,43px);
line-height: 1.35;
font-weight: 800;
font-variant-numeric: tabular-nums;
text-shadow: 0 0 22px rgba(232,199,124,.18);
}
.time-label {
display: block;
margin-top: 8px;
color: #9eabc8;
font-size: 12px;
font-weight: 500;
}
.time-box.seconds {
border-color: rgba(232,199,124,.28);
background: linear-gradient(155deg,rgba(232,199,124,.13),rgba(255,255,255,.025));
}
.separator {
width: 65px;
height: 1px;
margin: 34px auto 25px;
background: linear-gradient(90deg,transparent,var(--gold),transparent);
}
.brand-area {
padding-top: 2px;
}
.brand-title {
color: #f3d895;
font-size: clamp(19px,3vw,25px);
font-weight: 800;
}
.brand-caption {
color: #9eabc8;
font-size: 12px;
margin-top: 7px;
}
.anniversary {
display: inline-flex;
align-items: center;
gap: 9px;
margin-top: 20px;
padding: 10px 19px;
border: 1px solid rgba(232,199,124,.22);
background: rgba(232,199,124,.06);
color: #ecd59e;
border-radius: 50px;
font-size: 12px;
}
.live-clock {
margin-top: 22px;
color: #7786a8;
font-size: 11px;
}
#celebration {
display: none;
animation: appear 1.2s ease both;
}
@keyframes appear {
from { opacity: 0; transform: translateY(18px) scale(.97); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.celebration-icon {
font-size: 55px;
margin: 20px 0;
}
#celebration h2 {
font-size: clamp(30px,6vw,54px);
margin: 10px 0;
color: var(--gold-light);
}
#celebration p {
color: #c4cee3;
line-height: 2.3;
font-size: 15px;
}
.celebration-brand {
color: #f0d38c;
font-weight: 800;
font-size: 21px;
margin-top: 20px;
}
.bottom-note {
margin-top: 35px;
padding-top: 18px;
border-top: 1px solid rgba(255,255,255,.08);
color: #6f7d9e;
font-size: 10px;
}
@media(max-width:700px) {
.main-card {
padding: 38px 20px 25px;
border-radius: 25px;
}
.countdown {
grid-template-columns: repeat(3,minmax(0,1fr));
gap: 10px;
}
.time-box {
padding: 19px 5px 15px;
}
.date-line {
margin-bottom: 28px;
}
}
@media(max-width:380px) {
.page { padding: 12px; }
.main-card { padding: 30px 13px 22px; }
.time-number { font-size: 27px; }
.time-label { font-size: 11px; }
}
@media(prefers-reduced-motion:reduce) {
*, *::before, *::after {
animation-duration: .01ms !important;
animation-iteration-count: 1 !important;
scroll-behavior: auto !important;
transition-duration: .01ms !important;
}
}
</style>
</head>
<body>
<canvas id="particles"></canvas>
<div class="page">
<main class="main-card">
<div class="glow one"></div>
<div class="glow two"></div>
<div class="top-badge">
<span class="badge-dot"></span>
شمارش معکوس یک اتفاق ویژه
</div>
<div class="hero-icon">🌙</div>
<h1>نوروز ۱۴۰۶</h1>
<div class="subtitle">
به استقبال بهار، تازگی و شروعی دوباره
</div>
<div class="date-line">
شنبه ۲۹ اسفند ۱۴۰۵ | ساعت ۲۳:۵۴:۱۸
</div>
<section id="timerArea">
<div class="section-heading">
زمان باقیمانده تا تحویل سال
</div>
<div class="countdown">
<div class="time-box">
<span class="time-number" id="months">۰</span>
<span class="time-label">ماه</span>
</div>
<div class="time-box">
<span class="time-number" id="weeks">۰</span>
<span class="time-label">هفته</span>
</div>
<div class="time-box">
<span class="time-number" id="days">۰</span>
<span class="time-label">روز</span>
</div>
<div class="time-box">
<span class="time-number" id="hours">۰۰</span>
<span class="time-label">ساعت</span>
</div>
<div class="time-box">
<span class="time-number" id="minutes">۰۰</span>
<span class="time-label">دقیقه</span>
</div>
<div class="time-box seconds">
<span class="time-number" id="seconds">۰۰</span>
<span class="time-label">ثانیه</span>
</div>
</div>
</section>
<section id="celebration">
<div class="celebration-icon">🌸✨🌸</div>
<h2>نوروز ۱۴۰۶ مبارک</h2>
<p>
بهار آمد تا یادمان بیاورد<br>
همیشه میتوان از نو شروع کرد.<br>
سالی سرشار از آرامش، سلامتی و موفقیت برای شما آرزومندیم.
</p>
<div class="celebration-brand">
هفتسالگی ماورا مبارک!
</div>
</section>
<div class="separator"></div>
<div class="brand-area">
<div class="brand-title">
خدمات کامپیوتری و کافینت ماورا
</div>
<div class="brand-caption">
همراه شما در مسیر دنیای دیجیتال
</div>
<div class="anniversary">
<span>✦</span>
جشن هفتمین سال فعالیت ماورا
<span>✦</span>
</div>
</div>
<div class="live-clock" id="tehranClock">
ساعت تهران: در حال دریافت زمان...
</div>
<div class="bottom-note">
ساخته شده با عشق برای همراهان ماورا
</div>
</main>
</div>
<script>
(function () {
'use strict';
const target = Date.UTC(2027, 2, 20, 20, 24, 18);
const fa = new Intl.NumberFormat('fa-IR');
const ids = [
'months', 'weeks', 'days',
'hours', 'minutes', 'seconds'
];
function setText(id, value) {
const el = document.getElementById(id);
if (el) el.textContent = fa.format(value);
}
function updateClock() {
try {
const now = new Date();
const clock = new Intl.DateTimeFormat('fa-IR', {
timeZone: 'Asia/Tehran',
hour: '2-digit',
minute: '2-digit',
second: '2-digit',
hour12: false
}).format(now);
document.getElementById('tehranClock').textContent =
'ساعت تهران: ' + clock;
} catch (e) {}
}
function updateTimer() {
const now = Date.now();
let remaining = target - now;
if (remaining <= 0) {
document.getElementById('timerArea').style.display = 'none';
document.getElementById('celebration').style.display = 'block';
return;
}
let months = 0;
let cursor = new Date(now);
while (months < 120) {
const next = new Date(cursor);
const originalDay = next.getUTCDate();
next.setUTCDate(1);
next.setUTCMonth(next.getUTCMonth() + 1);
const lastDay = new Date(
Date.UTC(
next.getUTCFullYear(),
next.getUTCMonth() + 1,
0
)
).getUTCDate();
next.setUTCDate(Math.min(originalDay, lastDay));
if (next.getTime() > target) break;
cursor = next;
months++;
}
remaining = target - cursor.getTime();
const weekMs = 604800000;
const dayMs = 86400000;
const hourMs = 3600000;
const minuteMs = 60000;
const weeks = Math.floor(remaining / weekMs);
remaining %= weekMs;
const days = Math.floor(remaining / dayMs);
remaining %= dayMs;
const hours = Math.floor(remaining / hourMs);
remaining %= hourMs;
const minutes = Math.floor(remaining / minuteMs);
const seconds = Math.floor((remaining % minuteMs) / 1000);
setText('months', months);
setText('weeks', weeks);
setText('days', days);
setText('hours', hours);
setText('minutes', minutes);
setText('seconds', seconds);
}
updateTimer();
updateClock();
setInterval(updateTimer, 1000);
setInterval(updateClock, 1000);
// ذرات نورانی پسزمینه
const canvas = document.getElementById('particles');
const ctx = canvas.getContext('2d');
if (ctx) {
let width = 0;
let height = 0;
let particles = [];
function resize() {
const ratio = Math.min(window.devicePixelRatio || 1, 2);
width = window.innerWidth;
height = window.innerHeight;
canvas.width = width * ratio;
canvas.height = height * ratio;
ctx.setTransform(ratio, 0, 0, ratio, 0, 0);
const count = Math.min(
75,
Math.max(25, Math.floor(width / 15))
);
particles = [];
for (let i = 0; i < count; i++) {
particles.push({
x: Math.random() * width,
y: Math.random() * height,
size: Math.random() * 2 + .4,
speed: Math.random() * .35 + .08,
opacity: Math.random() * .6 + .15,
phase: Math.random() * 6
});
}
}
function animate() {
ctx.clearRect(0, 0, width, height);
particles.forEach(function (p) {
p.y -= p.speed;
p.phase += .018;
if (p.y < -5) {
p.y = height + 5;
p.x = Math.random() * width;
}
const alpha = p.opacity *
(.55 + Math.sin(p.phase) * .35);
ctx.beginPath();
ctx.arc(p.x, p.y, p.size, 0, Math.PI * 2);
ctx.fillStyle = 'rgba(237,207,135,' + alpha + ')';
ctx.shadowBlur = 12;
ctx.shadowColor = '#e8c77c';
ctx.fill();
});
ctx.shadowBlur = 0;
requestAnimationFrame(animate);
}
resize();
animate();
window.addEventListener('resize', resize);
}
})();
</script>
</body>
</html>کد ها رو داخل یک فایل برای مثال 1406.php ذخیره کنید،
و سپس این کد رو در جایی که میخواین نمایش داده بشه قرار بدید:
کد HTML:
<iframe src="/1406.php" title="شمارش معکوس نوروز و هفت سالگی ماورا" width="100%" height="570" loading="lazy" scrolling="no" referrerpolicy="strict-origin-when-cross-origin" style=" display:block; width:100%; border:0; border-radius:24px; overflow:hidden; "> </iframe>



