پراپ اف ایکس فایننسر: تفاوت میان نسخهها
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
خط ۱۱: | خط ۱۱: | ||
} | } | ||
/* ایزوله کردن کل ساختار */ | |||
.prop-page { | |||
height: 100%; | |||
width: 100%; | |||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
align-items: center; | align-items: center; | ||
font-family: 'Vazir', Arial, sans-serif; | |||
background: #f5f7fa; | |||
} | } | ||
.prop-box { | .prop-box { | ||
width: 90%; | |||
max-width: 1200px; | |||
height: 90%; | |||
max-height: 700px; | |||
background: #2c3e50; | background: #2c3e50; | ||
color: #fff; | color: #fff; | ||
border-radius: 12px; | border-radius: 12px; | ||
padding: 20px; | padding: 20px; | ||
display: flex; | |||
flex-direction: column; | |||
justify-content: space-between; | |||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); | |||
} | } | ||
.prop-header { | .prop-header { | ||
font-size: | font-size: 1.8rem; | ||
text-align: center; | |||
color: #42eb9c; | color: #42eb9c; | ||
margin-bottom: 20px; | margin-bottom: 20px; | ||
} | } | ||
خط ۵۰: | خط ۴۸: | ||
justify-content: space-between; | justify-content: space-between; | ||
align-items: center; | align-items: center; | ||
gap: | gap: 15px; | ||
} | } | ||
select { | select, .prop-button { | ||
padding: 10px | padding: 10px; | ||
font-size: 1rem; | font-size: 1rem; | ||
border-radius: 8px; | border-radius: 8px; | ||
border: none; | |||
border | |||
outline: none; | outline: none; | ||
flex: 1; | |||
} | } | ||
select: | select { | ||
background: #34495e; | |||
color: #fff; | |||
cursor: pointer; | |||
} | } | ||
.prop-button { | .prop-button { | ||
background | background: #42eb9c; | ||
color: #2c3e50; | color: #2c3e50; | ||
text-decoration: none; | text-decoration: none; | ||
font-weight: bold; | font-weight: bold; | ||
transition: background | transition: background 0.3s; | ||
} | } | ||
.prop-button:hover { | .prop-button:hover { | ||
background | background: #35c07d; | ||
} | } | ||
.prop-grid { | .prop-grid { | ||
flex-grow: 1; | |||
overflow-y: auto; | |||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax( | grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); | ||
gap: 15px; | gap: 15px; | ||
padding: 10px 0; | |||
} | } | ||
.prop-item { | .prop-item { | ||
background: | background: #3e4c59; | ||
border-radius: | color: #fff; | ||
padding: 10px; | |||
border-radius: 8px; | |||
text-align: center; | |||
font-size: 1rem; | font-size: 1rem; | ||
transition: transform 0.3s; | |||
transition: transform 0.3s | |||
} | } | ||
.prop-item:hover { | .prop-item:hover { | ||
transform: scale(1.05); | transform: scale(1.05); | ||
} | } | ||
.prop- | @media (max-width: 768px) { | ||
.prop-box { | |||
height: 100%; | |||
border-radius: 0; | |||
} | |||
.select-container { | .select-container { | ||
flex-direction: column; | flex-direction: column; | ||
gap: 10px; | |||
} | } | ||
خط ۱۴۸: | خط ۱۱۷: | ||
} | } | ||
@media (max-width: 480px) { | @media (max-width: 480px) { | ||
.prop-header { | .prop-header { | ||
font-size: 1. | font-size: 1.5rem; | ||
} | } | ||
. | select, .prop-button { | ||
font-size: 0.9rem; | |||
} | } | ||
.prop-item { | |||
font-size: 0.9rem; | |||
.prop- | |||
} | } | ||
} | } | ||
خط ۱۷۰: | خط ۱۳۳: | ||
</head> | </head> | ||
<body> | <body> | ||
<div class="prop- | <div class="prop-page"> | ||
<div class="prop-box"> | <div class="prop-box"> | ||
<div class="prop-header">لیست پراپها</div> | <div class="prop-header">لیست پراپها</div> | ||
<div class="select-container"> | <div class="select-container"> | ||
<a href="https://wikitrader.net/view/%D9%BE%D8%B1%D8%A7%D9%BE" class="prop-button">مقایسه پراپها</a> | |||
<select id="propCategory" onchange="filterProps()"> | <select id="propCategory" onchange="filterProps()"> | ||
<option value="">همه پراپها</option> | <option value="">همه پراپها</option> | ||
خط ۱۸۱: | خط ۱۴۳: | ||
<option value="foreign">پراپهای خارجی</option> | <option value="foreign">پراپهای خارجی</option> | ||
</select> | </select> | ||
</div> | </div> | ||
<div class="prop-grid"> | <div class="prop-grid"> | ||
<div class="prop-item iranian | <div class="prop-item iranian">پراپ آرکن پراپی</div> | ||
<div class="prop-item iranian | <div class="prop-item iranian">پراپ آریا اینوستور</div> | ||
<div class="prop-item iranian | <div class="prop-item iranian">پراپ آقای سرمایهگذار</div> | ||
<div class="prop-item foreign | <div class="prop-item foreign">پراپ آقای پراپ</div> | ||
<div class="prop-item foreign | <div class="prop-item foreign">پراپ آی پراپ فرم</div> | ||
</div> | </div> | ||
</div> | </div> | ||
خط ۱۹۸: | خط ۱۵۷: | ||
function filterProps() { | function filterProps() { | ||
const selectedCategory = document.getElementById('propCategory').value; | const selectedCategory = document.getElementById('propCategory').value; | ||
const | const items = document.querySelectorAll('.prop-item'); | ||
items.forEach(item => { | |||
const isIranian = item.classList.contains('iranian'); | |||
item.style.display = | |||
selectedCategory === "iranian" && !isIranian || | |||
selectedCategory === "foreign" && isIranian | |||
? "none" | |||
: "block"; | |||
}); | |||
} | |||
} | } | ||
</script> | </script> | ||
</body> | </body> | ||
</html> | </html> |
نسخهٔ ۲۰ دسامبر ۲۰۲۴، ساعت ۱۹:۱۹
<!DOCTYPE html>
لیست پراپها
پراپ آرکن پراپی
پراپ آریا اینوستور
پراپ آقای سرمایهگذار
پراپ آقای پراپ
پراپ آی پراپ فرم