الگو:نظرات مشتری: تفاوت میان نسخه‌ها

بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
 
خط ۵: خط ۵:
     <title>نظرات مشتریان - چاپ و تبلیغات نعمتی</title>
     <title>نظرات مشتریان - چاپ و تبلیغات نعمتی</title>
     <style>
     <style>
        :root {
    /*====================================================
            --primary-green: #e6f7ef;
    Customer Comments
            --text-green: #1aaa72;
    Mobile First
            --star-color: #f9bc05;
====================================================*/
            --border-color: #f0f0f0;
            --yellow-active: #f9bc05;
            --gray-text: #888;
        }


        body {
:root{
            font-family: 'IRANSans', Tahoma, sans-serif;
            background-color: #fcfcfc;
            padding: 10px;
            margin: 0;
            color: #333;
        }


        .comments-section {
    --primary:#ff7900;
            width: 100%;
    --primary-light:#fff4ea;
            max-width: 1000px;
            margin: 0 auto;
            background: #fff;
            border-radius: 12px;
            /* پدینگ داینامیک برای ریسپانسیو بودن */
            padding: clamp(15px, 3vw, 25px);
            box-shadow: 0 2px 15px rgba(0,0,0,0.04);
            box-sizing: border-box;
        }


        .header-title {
    --success-bg:#edf9f2;
            font-size: clamp(1.1rem, 4vw, 1.3rem);
    --success:#198754;
            font-weight: bold;
            margin-bottom: 20px;
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 12px;
        }


        .comment-card {
    --card-bg:#fff;
            padding: 20px 0;
            border-bottom: 1px solid var(--border-color);
        }


        .comment-card:last-child {
    --border:#ececec;
            border-bottom: none;
        }


        /* چیدمان منعطف */
    --shadow:
        .meta-container {
    0 10px 30px rgba(0,0,0,.04);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 15px;
        }


        .user-info {
    --text:#333;
            display: flex;
    --gray:#777;
            align-items: center;
            gap: 10px;
            font-size: 0.85rem;
            color: var(--gray-text);
        }


        .user-name {
    --star:#FDBA12;
            font-weight: bold;
            color: #555;
        }


        .rating-side {
    --vote:#cfcfcf;
            display: flex;
    --vote-active:#FDBA12;
            align-items: center;
            gap: 10px;
        }


        .suggest-badge {
    --radius:16px;
            background-color: var(--primary-green);
            color: var(--text-green);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.70rem;
            white-space: nowrap;
        }


        .stars-box {
}
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 4px;
        }


        .stars-gold {
body{
            color: var(--star-color);
        }


        .comment-content h4 {
    margin:0;
            margin: 0 0 8px 0;
    padding:12px;
            font-size: 1rem;
        }


        .comment-content p {
    font-family:'IRANSans',Tahoma,sans-serif;
            font-size: 0.9rem;
            color: #666;
            line-height: 1.7;
            margin-bottom: 15px;
            word-wrap: break-word;
        }


        .admin-reply {
    background:#fafafa;
            background-color: #fafafa;
            border-right: 4px solid #ff7900;
            padding: 10px 15px;
            margin-top: 10px;
            font-size: 0.85rem;
            border-radius: 4px;
        }


        .reply-label {
    color:var(--text);
            color: #ff7900;
            font-weight: bold;
            display: block;
            margin-bottom: 3px;
        }


        .action-area {
}
            display: flex;
            justify-content: flex-start;
            margin-top: 15px;
        }


        .vote-btns {
.comments-section{
            display: flex;
            gap: 10px;
        }


        .btn-vote {
    width:100%;
            background: none;
    max-width:1000px;
            border: 1px solid #eee;
            padding: 8px 16px; /* بزرگتر برای لمس راحت‌تر */
            border-radius: 8px;
            cursor: pointer;
            color: #ccc;
            transition: 0.3s;
            font-size: 1rem;
        }


        .btn-vote.active {
    margin:auto;
            color: var(--yellow-active);
            border-color: var(--yellow-active);
        }


        /* شکستن چیدمان در موبایل های کوچک */
    background:#fff;
        @media (max-width: 550px) {
 
            .meta-container {
    padding:clamp(18px,4vw,30px);
                flex-direction: column;
 
                align-items: flex-start;
    border-radius:20px;
                gap: 10px;
 
            }
    box-shadow:var(--shadow);
            .rating-side {
 
                width: 100%;
    box-sizing:border-box;
                justify-content: space-between;
 
            }
}
         }
 
    </style>
.header-title{
 
    margin:0 0 28px;
 
    font-size:clamp(1.15rem,4vw,1.45rem);
 
    font-weight:700;
 
    padding-bottom:14px;
 
    border-bottom:2px solid var(--border);
 
}
 
.comment-card{
 
    position:relative;
 
    padding:22px 0;
 
    border-bottom:1px solid var(--border);
 
}
 
.comment-card:last-child{
 
    border-bottom:none;
 
}
 
.comment-card::before{
 
    content:"";
 
    position:absolute;
 
    right:-30px;
 
    top:25px;
 
    width:5px;
 
    height:65px;
 
    border-radius:50px;
 
    background:linear-gradient(
        to bottom,
        #ff7900,
        #ffb26b
    );
 
}
 
.meta-container{
 
    display:flex;
 
    flex-direction:column;
 
    gap:15px;
 
    margin-bottom:18px;
 
}
 
.user-info{
 
    display:flex;
 
    align-items:center;
 
    flex-wrap:wrap;
 
    gap:10px;
 
    color:var(--gray);
 
    font-size:.86rem;
 
}
 
.user-avatar{
 
    width:42px;
 
    height:42px;
 
    border-radius:50%;
 
    display:flex;
 
    align-items:center;
 
    justify-content:center;
 
    background:#fff7f1;
 
    color:var(--primary);
 
    border:1px solid #ffe1c5;
 
    flex-shrink:0;
 
}
 
.user-avatar i{
 
    font-size:15px;
 
}
 
.user-name{
 
    font-weight:700;
 
    color:#444;
 
}
 
.rating-side{
 
    display:flex;
 
    justify-content:space-between;
 
    align-items:center;
 
    gap:12px;
 
    flex-wrap:wrap;
 
}
 
.suggest-badge{
 
    background:var(--success-bg);
 
    color:var(--success);
 
    padding:7px 14px;
 
    border-radius:30px;
 
    font-size:.74rem;
 
    font-weight:700;
 
}
 
.stars-box{
 
    display:flex;
 
    align-items:center;
 
    gap:8px;
 
    padding:8px 12px;
 
    border:1px solid #f4f4f4;
 
    border-radius:12px;
 
    background:#fcfcfc;
 
    font-size:.85rem;
 
    font-weight:700;
 
}
 
.stars-gold{
 
    color:var(--star);
 
    letter-spacing:1px;
 
}
 
.comment-content h4{
 
    margin:0 0 12px;
 
    font-size:1.05rem;
 
    color:#222;
 
}
 
.comment-content p{
 
    margin:0;
 
    line-height:2;
 
    font-size:.93rem;
 
    color:#666;
 
}
 
.admin-reply{
 
    margin-top:18px;
 
    background:#fffaf6;
 
    border:1px solid #ffe2c2;
 
    border-right:4px solid var(--primary);
 
    border-radius:12px;
 
    padding:14px 16px;
 
    font-size:.86rem;
 
    line-height:1.9;
 
}
 
.reply-label{
 
    display:block;
 
    margin-bottom:6px;
 
    color:var(--primary);
 
    font-weight:700;
 
}
 
.action-area{
 
    margin-top:18px;
 
}
 
.vote-btns{
 
    display:flex;
 
    gap:10px;
 
}
 
.btn-vote{
 
    width:45px;
 
    height:45px;
 
    border-radius:12px;
 
    background:#fff;
 
    border:1px solid var(--border);
 
    cursor:pointer;
 
    color:var(--vote);
 
    font-size:18px;
 
    display:flex;
 
    justify-content:center;
 
    align-items:center;
 
}
 
.btn-vote.active{
 
    border-color:var(--vote-active);
 
    color:var(--vote-active);
 
}
 
/*============================
Tablet
============================*/
 
@media(min-width:768px){
 
    .meta-container{
 
        flex-direction:row;
 
        justify-content:space-between;
 
        align-items:center;
 
    }
 
}
 
/*============================
Desktop
============================*/
 
@media(min-width:992px){
 
    .comment-content p{
 
         font-size:.96rem;
 
    }
 
}    </style>
</head>
</head>
<body>
<body>
خط ۱۷۹: خط ۳۹۲:
         <div class="meta-container">
         <div class="meta-container">
             <div class="user-info">
             <div class="user-info">
                <span class="user-name">کاربر مهمان</span>
    <span class="user-avatar" aria-hidden="true">
                <span>|</span>
        <i class="fa-solid fa-user"></i>
                <time>۰۱ فروردین ۱۴۰۴</time>
    </span>
            </div>
 
    <span class="user-name">کاربر مهمان</span>
    <span>|</span>
    <time datetime="2025-03-21">۰۱ فروردین ۱۴۰۴</time>
</div>
             <div class="rating-side">
             <div class="rating-side">
                 <span class="suggest-badge">این خدمات را پیشنهاد می‌کنم</span>
                 <span class="suggest-badge">این خدمات را پیشنهاد می‌کنم</span>
خط ۲۰۸: خط ۴۲۵:
         <div class="meta-container">
         <div class="meta-container">
             <div class="user-info">
             <div class="user-info">
                <span class="user-name">امیر امیری</span>
    <span class="user-avatar" aria-hidden="true">
                <span>|</span>
        <i class="fa-solid fa-user"></i>
                <time>۲۱ بهمن ۱۴۰۴</time>
    </span>
            </div>
 
    <span class="user-name">کاربر مهمان</span>
    <span>|</span>
    <time datetime="2025-03-21">۰۱ فروردین ۱۴۰۴</time>
</div>
             <div class="rating-side">
             <div class="rating-side">
                 <span class="suggest-badge">این خدمات را پیشنهاد می‌کنم</span>
                 <span class="suggest-badge">این خدمات را پیشنهاد می‌کنم</span>
خط ۲۳۳: خط ۴۵۴:
         <div class="meta-container">
         <div class="meta-container">
             <div class="user-info">
             <div class="user-info">
                <span class="user-name">سجاد رضایی</span>
    <span class="user-avatar" aria-hidden="true">
                <span>|</span>
        <i class="fa-solid fa-user"></i>
                <time>۱۵ تیر ۱۴۰۵</time>
    </span>
            </div>
 
    <span class="user-name">کاربر مهمان</span>
    <span>|</span>
    <time datetime="2025-03-21">۰۱ فروردین ۱۴۰۴</time>
</div>
             <div class="rating-side">
             <div class="rating-side">
                 <span class="suggest-badge">این خدمات را پیشنهاد می‌کنم</span>
                 <span class="suggest-badge">این خدمات را پیشنهاد می‌کنم</span>