simyan1's picture
نیازی به دسته بندی نیست. و اینکه در صفحه اول تعداد مقالات نمایشی را بیشتر کن. صفحات مقالات هم بیشتر کن.
a0bd32d verified
Raw
History Blame Contribute Delete
23.5 kB
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>دایره المعارف فارسی</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css" rel="stylesheet" type="text/css" />
<script src="https://unpkg.com/feather-icons"></script>
<link rel="stylesheet" href="style.css">
<style>
body {
font-family: 'Vazirmatn', sans-serif;
}
.wiki-link:hover {
text-decoration: underline;
cursor: pointer;
}
/* Hide scrollbar for chrome/safari/opera */
.no-scrollbar::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
</style>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
wiki: {
100: '#f8f9fa',
200: '#eaecf0',
500: '#a2a9b1',
700: '#54595d',
900: '#202122',
link: '#0645ad',
visited: '#0b0080'
}
}
}
}
}
</script>
</head>
<body class="bg-wiki-100 text-wiki-900 antialiased">
<!-- Header -->
<header class="border-b border-wiki-200 bg-white mb-4 shadow-sm sticky top-0 z-50">
<div class="container mx-auto px-4 h-16 flex items-center justify-between">
<!-- Logo & Menu Button -->
<div class="flex items-center gap-4">
<button id="mobile-menu-btn" class="p-2 hover:bg-gray-100 rounded lg:hidden">
<i data-feather="menu"></i>
</button>
<a href="index.html" class="text-2xl font-bold flex items-center gap-2">
<span class="bg-wiki-900 text-white p-1 rounded">ویکی</span>
<span class="hidden sm:inline">پدیا</span>
</a>
</div>
<!-- Search Bar -->
<div class="flex-1 max-w-xl mx-4 hidden md:block">
<div class="relative">
<input type="text" placeholder="جستجو در دایره المعارف..." class="w-full border border-wiki-500 rounded-full py-1 px-4 pr-10 focus:outline-none focus:border-blue-500 transition-colors bg-wiki-100 text-sm">
<button class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500">
<i data-feather="search" class="w-4 h-4"></i>
</button>
</div>
</div>
<!-- User Actions -->
<div class="flex items-center gap-2">
<a href="#" class="text-sm px-3 py-1.5 hover:bg-gray-100 rounded border border-transparent hover:border-gray-300 transition">ساخت حساب</a>
<a href="#" class="text-sm px-3 py-1.5 bg-blue-600 text-white rounded hover:bg-blue-700 transition shadow-sm">ورود</a>
</div>
</div>
<!-- Mobile Search (Visible on small screens) -->
<div class="md:hidden px-4 pb-3">
<input type="text" placeholder="جستجو..." class="w-full border border-wiki-500 rounded-full py-2 px-4 bg-wiki-100 text-sm">
</div>
</header>
<div class="container mx-auto px-4 flex flex-col lg:flex-row gap-6 mb-8">
<!-- Sidebar Navigation -->
<aside id="sidebar" class="hidden lg:block w-64 shrink-0 order-2 lg:order-1">
<nav class="bg-white border border-wiki-200 rounded p-2 sticky top-24">
<div class="mb-2 text-sm font-bold text-gray-500 px-2 py-1">محتوا</div>
<ul class="space-y-1 text-sm">
<li><a href="#" class="block px-2 py-1 hover:bg-gray-100 rounded wiki-link">صفحهٔ اصلی</a></li>
<li><a href="#" class="block px-2 py-1 hover:bg-gray-100 rounded wiki-link">مقالهٔ تصادفی</a></li>
<li><a href="#" class="block px-2 py-1 hover:bg-gray-100 rounded wiki-link">جریان‌های اخیر</a></li>
<li><a href="#" class="block px-2 py-1 hover:bg-gray-100 rounded wiki-link">همکاری</a></li>
</ul>
<div class="mt-4 mb-2 text-sm font-bold text-gray-500 px-2 py-1">دانشنامه‌ها</div>
<ul class="space-y-1 text-sm">
<li><a href="#" class="block px-2 py-1 hover:bg-gray-100 rounded wiki-link">فناوری</a></li>
<li><a href="#" class="block px-2 py-1 hover:bg-gray-100 rounded wiki-link">تاریخ</a></li>
<li><a href="#" class="block px-2 py-1 hover:bg-gray-100 rounded wiki-link">فرهنگ</a></li>
<li><a href="#" class="block px-2 py-1 hover:bg-gray-100 rounded wiki-link">جغرافیا</a></li>
<li><a href="#" class="block px-2 py-1 hover:bg-gray-100 rounded wiki-link">علوم</a></li>
<li><a href="#" class="block px-2 py-1 hover:bg-gray-100 rounded wiki-link">ورزش</a></li>
<li><a href="#" class="block px-2 py-1 hover:bg-gray-100 rounded wiki-link">هنر</a></li>
</ul>
<div class="mt-4 mb-2 text-sm font-bold text-gray-500 px-2 py-1">ابزارها</div>
<ul class="space-y-1 text-sm">
<li><a href="#" class="block px-2 py-1 hover:bg-gray-100 rounded wiki-link">کتاب‌ها</a></li>
<li><a href="#" class="block px-2 py-1 hover:bg-gray-100 rounded wiki-link">یادآورها</a></li>
<li><a href="#" class="block px-2 py-1 hover:bg-gray-100 rounded wiki-link">پیوند‌های دائمی</a></li>
<li><a href="#" class="block px-2 py-1 hover:bg-gray-100 rounded wiki-link">بارگذاری</a></li>
</ul>
</nav>
</aside>
<!-- Main Content -->
<main class="flex-1 min-w-0 order-1 lg:order-2">
<!-- Featured Article -->
<div class="bg-white border border-wiki-200 p-6 rounded mb-6 shadow-sm relative overflow-hidden">
<div class="absolute top-0 left-0 w-2 h-full bg-blue-600"></div>
<h2 class="text-2xl font-bold mb-4 text-blue-800 border-b border-gray-200 pb-2">مقالهٔ برگزیده</h2>
<div class="flex flex-col md:flex-row gap-6">
<div class="md:w-1/3">
<div class="bg-gray-200 h-64 w-full rounded-lg flex flex-col items-center justify-center text-gray-500 shadow-inner hover:bg-gray-300 transition cursor-pointer relative group">
<i data-feather="image" class="w-16 h-16 mb-2 text-gray-400 group-hover:text-gray-600"></i>
<span class="text-sm">کوروش بزرگ</span>
<div class="absolute inset-0 border-2 border-transparent group-hover:border-blue-400 rounded-lg transition"></div>
</div>
<div class="mt-3 flex flex-wrap gap-2 justify-center">
<span class="bg-gray-100 text-xs px-2 py-1 rounded text-gray-600">بنیان‌گذار</span>
<span class="bg-gray-100 text-xs px-2 py-1 rounded text-gray-600">امپراتوری هخامنشی</span>
</div>
</div>
<div class="md:w-2/3">
<h3 class="text-2xl font-bold mb-3 text-blue-700"><a href="article.html" class="hover:underline decoration-2">کوروش بزرگ</a></h3>
<p class="text-justify leading-relaxed text-gray-800 mb-4">
<b>کوروش دوم</b> (۶۰۰ یا ۵۹۰ پیش از میلاد - ۵۳۰ پیش از میلاد)، که به <span class="font-bold text-blue-600 cursor-pointer hover:underline">کوروش کبیر</span> نیز شهرت دارد، بنیان‌گذار <span class="font-bold text-blue-600 cursor-pointer hover:underline">امپراتوری هخامنشی</span> بود. او بر <span class="font-bold text-blue-600 cursor-pointer hover:underline">ماد</span>ها چیره شد و سپس <span class="font-bold text-blue-600 cursor-pointer hover:underline">لیدیه</span> را از میان برد.
</p>
<p class="text-justify leading-relaxed text-gray-800 mb-4">
کوروش در <span class="font-bold text-blue-600 cursor-pointer hover:underline">پاسارگاد</span> زاده شد و شهر <span class="font-bold text-blue-600 cursor-pointer hover:underline">بابل</span> را فتح کرد. منشور کوروش (استوانه کوروش) که در موزه بریتانیا نگهداری می‌شود، سندی مهم از حقوق بشر است.
</p>
<div class="flex gap-3 mt-4">
<a href="article.html" class="text-sm px-4 py-2 bg-blue-50 text-blue-700 rounded hover:bg-blue-100 transition font-bold">ادامهٔ مقاله</a>
<a href="#" class="text-sm px-4 py-2 border border-gray-300 rounded hover:bg-gray-50 transition">بحث</a>
</div>
</div>
</div>
</div>
<!-- Articles List -->
<div class="mb-8">
<div class="flex justify-between items-center mb-4">
<h2 class="text-xl font-bold text-blue-700 border-r-4 border-blue-500 pr-3">مقالات جدید</h2>
<a href="#" class="text-sm text-blue-500 hover:underline">مشاهده همه</a>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
<!-- Article Card 1 -->
<a href="article.html" class="bg-white border border-gray-200 rounded-lg overflow-hidden hover:shadow-md transition group h-full flex flex-col">
<div class="h-32 bg-gray-200 flex items-center justify-center text-gray-400">
<i data-feather="image" class="w-8 h-8"></i>
</div>
<div class="p-4 flex-1 flex flex-col justify-between">
<h3 class="font-bold text-gray-800 group-hover:text-blue-600 mb-1">هخامنشیان</h3>
<p class="text-xs text-gray-500 text-justify line-clamp-3">دودمانی از پادشاهان ایرانی که از ۵۵۰ تا ۳۳۰ پیش از میلاد بر بخش بزرگی از آسیا حکومت کردند.</p>
</div>
</a>
<!-- Article Card 2 -->
<a href="#" class="bg-white border border-gray-200 rounded-lg overflow-hidden hover:shadow-md transition group h-full flex flex-col">
<div class="h-32 bg-gray-200 flex items-center justify-center text-gray-400">
<i data-feather="image" class="w-8 h-8"></i>
</div>
<div class="p-4 flex-1 flex flex-col justify-between">
<h3 class="font-bold text-gray-800 group-hover:text-blue-600 mb-1">داریوش بزرگ</h3>
<p class="text-xs text-gray-500 text-justify line-clamp-3">سومین پادشاه هخامنشی که امپراتوری را گسترش داد و سیستم اداری آن را بهبود بخشید.</p>
</div>
</a>
<!-- Article Card 3 -->
<a href="#" class="bg-white border border-gray-200 rounded-lg overflow-hidden hover:shadow-md transition group h-full flex flex-col">
<div class="h-32 bg-gray-200 flex items-center justify-center text-gray-400">
<i data-feather="image" class="w-8 h-8"></i>
</div>
<div class="p-4 flex-1 flex flex-col justify-between">
<h3 class="font-bold text-gray-800 group-hover:text-blue-600 mb-1">تخت جمشید</h3>
<p class="text-xs text-gray-500 text-justify line-clamp-3">پایتخت باشکوه هخامنشیان که در استان فارس واقع شده و نمادی از عظمت ایران باستان است.</p>
</div>
</a>
<!-- Article Card 4 -->
<a href="#" class="bg-white border border-gray-200 rounded-lg overflow-hidden hover:shadow-md transition group h-full flex flex-col">
<div class="h-32 bg-gray-200 flex items-center justify-center text-gray-400">
<i data-feather="image" class="w-8 h-8"></i>
</div>
<div class="p-4 flex-1 flex flex-col justify-between">
<h3 class="font-bold text-gray-800 group-hover:text-blue-600 mb-1">منشور کوروش</h3>
<p class="text-xs text-gray-500 text-justify line-clamp-3">سند حقوق بشری کوروش کبیر که در آن آزادی ادیان را اعلام کرد و در بابل کشف شد.</p>
</div>
</a>
</div>
</div>
=======
<<<<<<< SEARCH
</div>
<!-- Did You Know -->
<div class="bg-white border border-wiki-200 p-5 rounded shadow-sm">
<h2 class="text-lg font-bold mb-4 text-blue-700 flex items-center gap-2">
<i data-feather="bulb" class="w-5 h-5"></i> آیا می‌دانستید؟
</h2>
<ul class="space-y-3 text-sm text-justify">
<li class="pl-4 border-r-2 border-blue-200">
<span class="font-bold text-blue-600">...</span>
که <span class="font-bold">کاخ آپادانا</span> در <span class="font-bold">تخت جمشید</span> دارای ۷۲ ستون بوده است؟
</li>
<li class="pl-4 border-r-2 border-blue-200">
<span class="font-bold text-blue-600">...</span>
<span class="font-bold">قونیه</span> زمانی پایتطار <span class="font-bold">سلجوقیان</span> بوده و مرکز مهم علمی محسوب می‌شده است؟
</li>
</ul>
</div>
</div>
=======
</div>
<!-- Did You Know -->
<div class="bg-white border border-wiki-200 p-5 rounded shadow-sm">
<h2 class="text-lg font-bold mb-4 text-blue-700 flex items-center gap-2">
<i data-feather="bulb" class="w-5 h-5"></i> آیا می‌دانستید؟
</h2>
<ul class="space-y-3 text-sm text-justify">
<li class="pl-4 border-r-2 border-blue-200">
<span class="font-bold text-blue-600">...</span>
که <span class="font-bold">کاخ آپادانا</span> در <span class="font-bold">تخت جمشید</span> دارای ۷۲ ستون بوده است؟
</li>
<li class="pl-4 border-r-2 border-blue-200">
<span class="font-bold text-blue-600">...</span>
<span class="font-bold">قونیه</span> زمانی پایتطار <span class="font-bold">سلجوقیان</span> بوده و مرکز مهم علمی محسوب می‌شده است؟
</li>
<li class="pl-4 border-r-2 border-blue-200">
<span class="font-bold text-blue-600">...</span>
که زبان <span class="font-bold">فارسی باستان</span> با زبان <span class="font-bold">VEDA</span> هندی قرابت نزدیکی دارد؟
</li>
<li class="pl-4 border-r-2 border-blue-200">
<span class="font-bold text-blue-600">...</span>
<span class="font-bold">چغازنبیل</span> اولین اثر ثبت شده ایران در یونسکو است؟
</li>
</ul>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
<!-- News Column -->
<div class="bg-white border border-wiki-200 p-5 rounded shadow-sm">
<h2 class="text-lg font-bold mb-4 text-blue-700 flex items-center gap-2">
<i data-feather="clock" class="w-5 h-5"></i> رویدادهای جاری
</h2>
<ul class="space-y-3 text-sm divide-y divide-gray-100">
<li class="flex gap-3 items-start pt-2">
<span class="text-gray-400 font-mono text-xs whitespace-nowrap">۲۴ مهر</span>
<a href="#" class="hover:underline text-gray-800 leading-relaxed">کاوش در محوطه تاریخی آغاز شد. باستان‌شناسان امیدوارند آثار جدیدی کشف کنند.</a>
</li>
<li class="flex gap-3 items-start pt-2">
<span class="text-gray-400 font-mono text-xs whitespace-nowrap">۲۲ مهر</span>
<a href="#" class="hover:underline text-gray-800 leading-relaxed">کتاب جدید تاریخ سلسله‌ها منتشر شد. این کتاب بررسی دقیقی از دوران <span class="text-blue-600">صفویان</span> ارائه می‌دهد.</a>
</li>
<li class="flex gap-3 items-start pt-2">
<span class="text-gray-400 font-mono text-xs whitespace-nowrap">۲۰ مهر</span>
<a href="#" class="hover:underline text-gray-800 leading-relaxed">کشف سکه‌های باستانی در خراسان رضوی. سکه‌ها مربوط به دوران <span class="text-blue-600">ساسانیان</span> هستند.</a>
</li>
</ul>
</div>
<!-- Did You Know -->
<div class="bg-white border border-wiki-200 p-5 rounded shadow-sm">
<h2 class="text-lg font-bold mb-4 text-blue-700 flex items-center gap-2">
<i data-feather="bulb" class="w-5 h-5"></i> آیا می‌دانستید؟
</h2>
<ul class="space-y-3 text-sm text-justify">
<li class="pl-4 border-r-2 border-blue-200">
<span class="font-bold text-blue-600">...</span>
که <span class="font-bold">کاخ آپادانا</span> در <span class="font-bold">تخت جمشید</span> دارای ۷۲ ستون بوده است؟
</li>
<li class="pl-4 border-r-2 border-blue-200">
<span class="font-bold text-blue-600">...</span>
<span class="font-bold">قونیه</span> زمانی پایتطار <span class="font-bold">سلجوقیان</span> بوده و مرکز مهم علمی محسوب می‌شده است؟
</li>
</ul>
</div>
</div>
<!-- Picture of the Day -->
<div class="bg-white border border-wiki-200 p-4 rounded shadow-sm mb-6">
<div class="flex justify-between items-center mb-3 border-b border-gray-100 pb-2">
<h2 class="text-lg font-bold text-blue-700">تصویر روز</h2>
<a href="#" class="text-xs text-blue-500 hover:underline">آرشیو تصاویر</a>
</div>
<div class="flex flex-col md:flex-row gap-4">
<div class="md:w-1/4 bg-gray-200 h-48 rounded-lg flex items-center justify-center bg-cover bg-center relative" style="background-image: url('https://via.placeholder.com/400x400?text=Persepolis');">
<div class="absolute inset-0 bg-gradient-to-t from-black/50 to-transparent flex items-end p-4">
<span class="text-white text-sm font-bold shadow-black drop-shadow-md">تخت جمشید</span>
</div>
</div>
<div class="md:w-3/4">
<h4 class="font-bold mb-2 text-lg">کاخ آپادانا</h4>
<p class="text-sm text-gray-600 leading-relaxed mb-2">
کاخ آپادانا در <span class="text-blue-600">تخت‌جمشید</span> یکی از عظیم‌ترین سازه‌های باستانی ایران است که در دوره <span class="text-blue-600">داریوش اول</span> ساخته شده است. ستون‌های بلند آن نمادی از قدرت <span class="text-blue-600">هخامنشیان</span> است و نقوش برجسته آن داستان‌های شاهانه را روایت می‌کند.
</p>
<a href="#" class="text-blue-500 text-sm hover:underline">مشاهده در آلبوم</a>
</div>
</div>
</div>
</main>
</div>
<!-- Footer -->
<footer class="bg-wiki-100 border-t border-wiki-200 py-8 mt-8">
<div class="container mx-auto px-4 text-center text-sm text-gray-600">
<p class="mb-2">
تمامی محتویات تحت مجوز Creative Commons BY-SA در دسترس است.
</p>
<p class="mb-4">
<a href="#" class="hover:underline">حریم خصوصی</a> |
<a href="#" class="hover:underline">دربارهٔ ویکی‌پدیا</a> |
<a href="#" class="hover:underline">سلب مسئولیت</a> |
<a href="#" class="hover:underline">تماس با ما</a>
</p>
<div class="flex justify-center gap-4 opacity-70">
<i data-feather="github"></i>
<i data-feather="twitter"></i>
<i data-feather="facebook"></i>
</div>
</div>
</footer>
<script src="script.js"></script>
<script>
feather.replace();
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>