نویسندگان: تفاوت میان نسخهها
ظاهر
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
خط ۱: | خط ۱: | ||
<html lang="fa" dir="rtl"> | <html lang="fa" dir="rtl"> | ||
<head> | <head> | ||
خط ۲۷: | خط ۲۶: | ||
.header { | .header { | ||
background: #3e6f73; | background: #3e6f73; | ||
color: white; | color: white; | ||
padding: 30px; | padding: 30px; | ||
border-radius: 10px; | border-radius: 10px; | ||
خط ۴۲: | خط ۴۱: | ||
width: 100px; | width: 100px; | ||
height: 100px; | height: 100px; | ||
background: white; | background: white; | ||
border-radius: 50%; | border-radius: 50%; | ||
margin: 0 auto 15px; | margin: 0 auto 15px; | ||
خط ۴۹: | خط ۴۸: | ||
justify-content: center; | justify-content: center; | ||
font-size: 40px; | font-size: 40px; | ||
color: #3e6f73; | color: #3e6f73; | ||
border: 2px solid rgba(255, 255, 255, 0.5); | border: 2px solid rgba(255, 255, 255, 0.5); | ||
} | } | ||
خط ۷۷: | خط ۷۶: | ||
.author-card { | .author-card { | ||
background: #3e6f73; | background: #3e6f73; | ||
color: white; | color: white; | ||
padding: 20px; | padding: 20px; | ||
border-radius: 8px; | border-radius: 8px; | ||
خط ۹۱: | خط ۹۰: | ||
transform: translateY(-5px); | transform: translateY(-5px); | ||
box-shadow: 0 8px 16px rgba(62, 111, 115, 0.3); | box-shadow: 0 8px 16px rgba(62, 111, 115, 0.3); | ||
background: #356166; | background: #356166; | ||
} | } | ||
خط ۱۰۶: | خط ۱۰۵: | ||
} | } | ||
/* استایل برای | /* استایل برای لینکهای داخلی */ | ||
.author-name a { | |||
color: white; | |||
text-decoration: none; | |||
} | |||
.author-name a:hover { | |||
text-decoration: underline; | |||
} | |||
.author-role a { | |||
color: rgba(255, 255, 255, 0.9); | |||
text-decoration: none; | |||
} | |||
.author-role a:hover { | |||
text-decoration: underline; | |||
} | |||
@media (min-width: 1400px) { | @media (min-width: 1400px) { | ||
.authors-grid { | .authors-grid { | ||
خط ۱۷۴: | خط ۱۹۱: | ||
</div> | </div> | ||
</div> | </div> | ||
<script> | |||
// تبدیل لینکهای ویکی به لینکهای قابل کلیک | |||
document.addEventListener('DOMContentLoaded', function() { | |||
const authorNames = document.querySelectorAll('.author-name'); | |||
const authorRoles = document.querySelectorAll('.author-role'); | |||
// تابع برای تبدیل متن ویکیلینک به لینک HTML | |||
function convertWikiLinks(element) { | |||
const text = element.textContent; | |||
const wikiLinkRegex = /\[\[(.*?)\]\]/g; | |||
if (wikiLinkRegex.test(text)) { | |||
const newHtml = text.replace(wikiLinkRegex, '<a href="#">$1</a>'); | |||
element.innerHTML = newHtml; | |||
} | |||
} | |||
// اعمال بر روی تمام نامها و نقشها | |||
authorNames.forEach(convertWikiLinks); | |||
authorRoles.forEach(convertWikiLinks); | |||
}); | |||
</script> | |||
</body> | </body> | ||
</html> | </html> |
نسخهٔ ۱۰ اکتبر ۲۰۲۵، ساعت ۱۸:۴۶
✍️
نویسندگان
انتشارات نویسندگان ثبت شده در دانشنامه کتاب مقدس