باکس شناور - فراغیب
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
| خط ۱: | خط ۱: | ||
<html lang="fa" dir="rtl"> | <html lang="fa" dir="rtl"> | ||
<head> | <head> | ||
<meta charset="UTF-8"> | <meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>کادر معرفی</title> | <title>کادر معرفی</title> | ||
<meta name="description" content="استاد شایق، استاد مدرس خودشناسی"> | <meta name="description" content="استاد شایق، استاد مدرس خودشناسی" /> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | <link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link href="https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap" rel="stylesheet"> | <link | ||
<link rel="stylesheet" | href="https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" | rel="stylesheet" | ||
/> | |||
<link | |||
rel="stylesheet" | |||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" | |||
/> | |||
</style> | <style> | ||
* { | |||
margin: 0; | |||
padding: 0; | |||
box-sizing: border-box; | |||
} | |||
body { | |||
font-family: 'Vazirmatn', sans-serif; | |||
background: #f5f5f5; | |||
padding: 20px; | |||
line-height: 1.9; | |||
color: #444; | |||
} | |||
.online-support-box { | |||
position: fixed; | |||
left: 20px; | |||
bottom: 20px; | |||
z-index: 999999; | |||
} | |||
.info-box { | |||
max-width: 340px; | |||
width: 100%; | |||
background: #fff; | |||
border-radius: 14px; | |||
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08); | |||
padding: 14px; | |||
position: relative; | |||
overflow: hidden; | |||
transition: opacity 0.3s ease, transform 0.3s ease; | |||
} | |||
.info-box.hide { | |||
opacity: 0; | |||
transform: translateY(15px); | |||
pointer-events: none; | |||
} | |||
.info-box .close { | |||
position: absolute; | |||
top: 10px; | |||
left: 10px; | |||
width: 30px; | |||
height: 30px; | |||
border: none; | |||
background: #f3f3f3; | |||
border-radius: 50%; | |||
cursor: pointer; | |||
transition: 0.3s; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
color: #777; | |||
font-size: 14px; | |||
} | |||
.info-box .close:hover { | |||
background: #e7e7e7; | |||
transform: rotate(90deg); | |||
} | |||
.info-header { | |||
display: flex; | |||
align-items: center; | |||
gap: 10px; | |||
margin-bottom: 10px; | |||
padding-left: 34px; | |||
} | |||
.avatar { | |||
width: 52px; | |||
height: 52px; | |||
border-radius: 50%; | |||
background: linear-gradient(135deg, #2c9b66, #45b883); | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
font-size: 24px; | |||
color: #fff; | |||
flex-shrink: 0; | |||
box-shadow: 0 3px 10px rgba(44, 155, 102, 0.25); | |||
} | |||
.info-title { | |||
font-size: 14px; | |||
font-weight: 700; | |||
color: #2c9b66; | |||
line-height: 1.8; | |||
} | |||
.info-text { | |||
font-size: 14px; | |||
color: #666; | |||
} | |||
@media (max-width: 480px) { | |||
.online-support-box { | |||
left: 12px; | |||
right: 12px; | |||
bottom: 12px; | |||
} | |||
.info-box { | |||
max-width: 100%; | |||
} | |||
} | |||
</style> | |||
</head> | </head> | ||
<body> | <body> | ||
<div class="online-support-box"> | <div class="online-support-box"> | ||
<section class="info-box" aria-label="معرفی استاد"> | <section class="info-box" id="infoBox" aria-label="معرفی استاد"> | ||
<button class="close" aria-label="بستن"> | <button class="close" id="closeBtn" aria-label="بستن"> | ||
<i class="fa-solid fa-xmark"></i> | <i class="fa-solid fa-xmark"></i> | ||
</button> | </button> | ||
<div class="info-header"> | |||
<div class="avatar"> | <div class="info-header"> | ||
<i class="fa-solid fa- | <div class="avatar"> | ||
</div> | <i class="fa-solid fa-headset"></i> | ||
<h2 class="info-title"> | </div> | ||
استاد شایق، استاد مدرس خودشناسی | <h2 class="info-title"> | ||
</h2> | استاد شایق، استاد مدرس خودشناسی | ||
</div> | </h2> | ||
<p class="info-text"> | </div> | ||
سپاس از بازدید شما | |||
</p> | <p class="info-text"> | ||
</section> | سپاس از بازدید شما. اگر سوالی دارید، با افتخار در خدمت شما هستیم. | ||
</div> | </p> | ||
</section> | |||
</div> | |||
<script> | |||
const closeBtn = document.getElementById('closeBtn'); | |||
const infoBox = document.getElementById('infoBox'); | |||
closeBtn.addEventListener('click', function () { | |||
infoBox.classList.add('hide'); | |||
setTimeout(() => { | |||
infoBox.style.display = 'none'; | |||
}, 300); | |||
}); | |||
</script> | |||
</body> | </body> | ||
</html> | </html> | ||
نسخهٔ ۵ اوت ۲۰۲۶، ساعت ۱۲:۰۵
استاد شایق، استاد مدرس خودشناسی
سپاس از بازدید شما. اگر سوالی دارید، با افتخار در خدمت شما هستیم.