یک وبسایت درباره ایران
- User
یک وبسایت درباره ایران
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
یک وبسایت درباره ایران
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
عالی! بیایید یک طرح کامل و جامع برای یک وبسایت مدرن و جذاب درباره ایران طراحی کنیم. این وبسایت میتواند یک مرجع کامل برای هر کسی باشد که به ایران علاقه دارد، از گردشگران خارجی گرفته تا ایرانیان مقیم خارج و حتی خود ایرانیان داخل کشور.
ما از نام "پنجرهای به ایران" به عنوان مفهوم اصلی استفاده میکنیم.
ارائه تصویری جامع، واقعی، چندبعدی و بهروز از ایران؛ فراتر از کلیشههای رسانهای. این وبسایت قصد دارد پلی میان فرهنگ غنی دیروز و زندگی پویای امروز ایران برقرار کند و منبعی معتبر برای شناخت فرهنگ، هنر، تاریخ، طبیعت و مردم ایران باشد.
این بخش قلب تپنده سایت است.
یک سفر در زمان به صورت خطی و جذاب.
راهنمای عملی برای مسافران.
این بخش برای نمایش چهره واقعی و پویای ایران امروز طراحی شده است.
برای تولید محتوای تازه و پویا.
این وبسایت میتواند به یک مرجع معتبر و دوستداشتنی برای همه کسانی تبدیل شود که قلبشان برای ایران میتپد یا ذهنشان در مورد آن کنجکاو است.
بساز
عالی! بر اساس طرحی که با هم ایجاد کردیم، یک نمونه اولیه (Prototype) از صفحه اصلی وبسایت "پنجرهای به ایران" را با استفاده از HTML، CSS و کمی JavaScript ساختم.
این یک فایل کامل و مستقل است. شما میتوانید تمام کد زیر را کپی کرده، در یک فایل با پسوند .html (مثلا index.html) ذخیره کنید و سپس آن را در مرورگر خود باز کنید تا نتیجه را ببینید.
<!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>
<!-- Google Fonts: Vazirmatn -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700&display=swap" rel="stylesheet">
<style>
/* --- General Styles --- */
:root {
--primary-color: #0d47a1; /* آبی تیره */
--secondary-color: #c62828; /* قرمز */
--text-color: #333;
--bg-color: #f4f4f9;
--white-color: #ffffff;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Vazirmatn', sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
line-height: 1.7;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
a {
text-decoration: none;
color: inherit;
}
h1, h2, h3 {
font-weight: 700;
}
section {
padding: 60px 0;
}
/* --- Header & Navigation --- */
.main-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
background-color: rgba(0, 0, 0, 0.4);
padding: 15px 0;
transition: background-color 0.3s ease;
}
.main-header.scrolled {
background-color: rgba(0, 0, 0, 0.8);
}
.main-header .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 1.8rem;
font-weight: 700;
color: var(--white-color);
}
.nav-links {
list-style: none;
display: flex;
}
.nav-links li {
margin-right: 25px;
}
.nav-links a {
color: var(--white-color);
font-weight: 400;
font-size: 1.1rem;
transition: color 0.3s ease;
}
.nav-links a:hover {
color: var(--secondary-color);
}
.menu-toggle {
display: none;
cursor: pointer;
color: var(--white-color);
font-size: 2rem;
}
/* --- Hero Section --- */
.hero {
height: 100vh;
background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1549646875-1a31887e2a4e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
background-size: cover;
background-position: center;
background-attachment: fixed;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
color: var(--white-color);
}
.hero-content h1 {
font-size: 4rem;
margin-bottom: 20px;
}
.hero-content p {
font-size: 1.5rem;
font-weight: 300;
margin-bottom: 30px;
}
.cta-button {
display: inline-block;
padding: 15px 35px;
background-color: var(--secondary-color);
color: var(--white-color);
border-radius: 5px;
font-size: 1.2rem;
font-weight: 700;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button:hover {
background-color: #a62121;
transform: translateY(-3px);
}
/* --- Featured Sections --- */
.section-title {
text-align: center;
margin-bottom: 50px;
font-size: 2.5rem;
}
.featured-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 30px;
}
.feature-card {
background-color: var(--white-color);
border-radius: 8px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
transform: translateY(-10px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.feature-card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.card-content {
padding: 25px;
}
.card-content h3 {
font-size: 1.5rem;
margin-bottom: 10px;
color: var(--primary-color);
}
/* --- Did You Know Section --- */
.did-you-know {
background-color: var(--primary-color);
color: var(--white-color);
text-align: center;
padding: 60px 20px;
}
.did-you-know h2 {
font-size: 2rem;
margin-bottom: 15px;
}
.did-you-know p {
font-size: 1.2rem;
max-width: 800px;
margin: 0 auto;
font-weight: 300;
}
/* --- Footer --- */
.main-footer {
background-color: #222;
color: #ccc;
padding: 40px 0;
text-align: center;
}
.footer-content p {
margin-bottom: 20px;
}
.social-links a {
color: #ccc;
font-size: 1.5rem;
margin: 0 15px;
transition: color 0.3s ease;
}
.social-links a:hover {
color: var(--secondary-color);
}
/* --- Responsive Design --- */
@media (max-width: 768px) {
.logo {
font-size: 1.5rem;
}
.menu-toggle {
display: block;
}
.nav-links {
position: absolute;
top: 70px; /* height of header */
right: 0;
background-color: rgba(0, 0, 0, 0.9);
width: 100%;
flex-direction: column;
align-items: center;
padding: 20px 0;
transform: translateY(-120%);
transition: transform 0.3s ease-in-out;
}
.nav-links.active {
transform: translateY(0);
}
.nav-links li {
margin: 15px 0;
}
.hero-content h1 {
font-size: 2.5rem;
}
.hero-content p {
font-size: 1.2rem;
}
}
</style>
</head>
<body>
<!-- Header -->
<header class="main-header">
<div class="container">
<a href="#" class="logo">پنجرهای به ایران</a>
<nav>
<ul class="nav-links">
<li><a href="#featured">سفر و گردشگری</a></li>
<li><a href="#featured">فرهنگ و هنر</a></li>
<li><a href="#featured">تاریخ</a></li>
<li><a href="#did-you-know">مجله</a></li>
</ul>
</nav>
<div class="menu-toggle">☰</div>
</div>
</header>
<!-- Hero Section -->
<section class="hero">
<div class="hero-content">
<h1>پنجرهای به ایران</h1>
<p>کشف فرهنگ، تاریخ و زیبایی بیپایان</p>
<a href="#featured" class="cta-button">سفر خود را آغاز کنید</a>
</div>
</section>
<main>
<!-- Featured Sections -->
<section id="featured">
<div class="container">
<h2 class="section-title">ایران را کشف کنید</h2>
<div class="featured-grid">
<!-- Card 1: Culture & Art -->
<a href="#" class="feature-card">
<img src="https://images.unsplash.com/photo-1599421497992-9494371f6f87?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80" alt="هنر و معماری ایرانی">
<div class="card-content">
<h3>فرهنگ و هنر</h3>
<p>سفری به دنیای شعر، موسیقی، معماری خیرهکننده و سینمای پرآوازه ایران.</p>
</div>
</a>
<!-- Card 2: Travel & Tourism -->
<a href="#" class="feature-card">
<img src="https://images.unsplash.com/photo-1629910235338-6b2a8d506213?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1528&q=80" alt="طبیعت ایران">
<div class="card-content">
<h3>سفر و گردشگری</h3>
<p>از کویرهای سوزان تا جنگلهای سرسبز و شهرهای تاریخی. راهنمای کامل سفر شما.</p>
</div>
</a>
<!-- Card 3: History -->
<a href="#" class="feature-card">
<img src="https://images.unsplash.com/photo-1600862432634-a1d81180b5e2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="تخت جمشید">
<div class="card-content">
<h3>تاریخ شکوهمند</h3>
<p>روایت تاریخ غنی ایران، از امپراتوریهای باستان تا رویدادهای معاصر.</p>
</div>
</a>
</div>
</div>
</section>
<!-- Did you know Section -->
<section id="did-you-know" class="did-you-know">
<div class="container">
<h2>آیا میدانستید؟</h2>
<p>ایران یکی از قدیمیترین تمدنهای جهان است و بیش از ۲۰ اثر ثبتشده در میراث جهانی یونسکو دارد. هر گوشه از این سرزمین، داستانی برای گفتن دارد.</p>
</div>
</section>
</main>
<!-- Footer -->
<footer class="main-footer">
<div class="container footer-content">
<p>© ۱۴۰۳ | وبسایت پنجرهای به ایران | تمام حقوق محفوظ است.</p>
<div class="social-links">
<!-- Replace # with your actual social media links -->
<a href="#">Instagram</a>
<a href="#">Twitter</a>
<a href="#">YouTube</a>
</div>
</div>
</footer>
<script>
// --- Mobile Menu Toggle ---
const menuToggle = document.querySelector('.menu-toggle');
const navLinks = document.querySelector('.nav-links');
menuToggle.addEventListener('click', () => {
navLinks.classList.toggle('active');
});
// --- Change header background on scroll ---
const header = document.querySelector('.main-header');
window.addEventListener('scroll', () => {
if (window.scrollY > 50) {
header.classList.add('scrolled');
} else {
header.classList.remove('scrolled');
}
});
</script>
</body>
</html>
این کد یک نقطه شروع عالی است. برای توسعه آن میتوانید:
امیدوارم از این نمونه اولیه لذت ببرید و الهامبخش شما برای ساخت یک وبسایت کامل و بینظیر باشد