💬 Testimonial Card
Карточка отзыва клиента с цитатой и рейтингом
← Назад к Карточки
С аватаром
HTML
<div class="testimonial-card">
<div class="quote-icon">❝</div>
<p class="testimonial-text">This product completely transformed our workflow. The team is more productive than ever, and our clients are thrilled with the results!</p>
<div class="testimonial-rating">⭐⭐⭐⭐⭐</div>
<div class="testimonial-author">
<img src="https://i.pravatar.cc/60?img=15" alt="Author" class="testimonial-avatar">
<div>
<div class="testimonial-name">David Miller</div>
<div class="testimonial-role">CEO at TechCorp</div>
</div>
</div>
</div>
CSS
.testimonial-card {
width: 320px;
background: #ffffff;
border-radius: 16px;
padding: 2rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
position: relative;
}
.testimonial-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.quote-icon {
font-size: 3rem;
line-height: 1;
color: #667eea;
opacity: 0.3;
margin-bottom: 0.5rem;
}
.testimonial-text {
margin: 0 0 1rem;
font-size: 0.95rem;
color: #444;
line-height: 1.6;
font-style: italic;
}
.testimonial-rating {
margin-bottom: 1.25rem;
font-size: 1.1rem;
}
.testimonial-author {
display: flex;
align-items: center;
gap: 0.75rem;
padding-top: 1rem;
border-top: 1px solid #eee;
}
.testimonial-avatar {
width: 48px;
height: 48px;
border-radius: 50%;
object-fit: cover;
}
.testimonial-name {
font-size: 0.95rem;
font-weight: 700;
color: #1a1a2e;
}
.testimonial-role {
font-size: 0.8rem;
color: #999;
margin-top: 0.15rem;
}
С градиентом
HTML
<div class="testimonial-card-grad">
<div class="testimonial-rating-grad">⭐⭐⭐⭐⭐</div>
<p class="testimonial-text-grad">"Absolutely amazing service! The attention to detail and customer support is unmatched. Highly recommended for any business."</p>
<div class="testimonial-author-grad">
<img src="https://i.pravatar.cc/60?img=25" alt="Author" class="testimonial-avatar-grad">
<div>
<div class="testimonial-name-grad">Jennifer Lee</div>
<div class="testimonial-role-grad">Marketing Director</div>
</div>
</div>
</div>
CSS
.testimonial-card-grad {
width: 320px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 16px;
padding: 2rem;
box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
transition: all 0.3s ease;
color: white;
}
.testimonial-card-grad:hover {
transform: translateY(-4px);
box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}
.testimonial-rating-grad {
margin-bottom: 1rem;
font-size: 1.1rem;
}
.testimonial-text-grad {
margin: 0 0 1.5rem;
font-size: 0.95rem;
color: rgba(255, 255, 255, 0.95);
line-height: 1.6;
font-style: italic;
}
.testimonial-author-grad {
display: flex;
align-items: center;
gap: 0.75rem;
padding-top: 1rem;
border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.testimonial-avatar-grad {
width: 48px;
height: 48px;
border-radius: 50%;
object-fit: cover;
border: 2px solid rgba(255, 255, 255, 0.3);
}
.testimonial-name-grad {
font-size: 0.95rem;
font-weight: 700;
color: white;
}
.testimonial-role-grad {
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.7);
margin-top: 0.15rem;
}
Минималистичная
HTML
<div class="testimonial-card-min">
<p class="testimonial-text-min">"The best investment we made this year. Our conversion rates increased by 40% after implementing this solution."</p>
<div class="testimonial-author-min">
<div class="testimonial-name-min">Robert Chen</div>
<div class="testimonial-role-min">Founder, StartupXYZ</div>
</div>
</div>
CSS
.testimonial-card-min {
width: 320px;
background: #ffffff;
border-radius: 12px;
padding: 2rem;
border: 1px solid #eee;
transition: all 0.3s ease;
}
.testimonial-card-min:hover {
border-color: #1a1a2e;
transform: translateY(-2px);
}
.testimonial-text-min {
margin: 0 0 1.5rem;
font-size: 1rem;
color: #1a1a2e;
line-height: 1.6;
font-weight: 500;
}
.testimonial-author-min {
padding-top: 1rem;
border-top: 2px solid #1a1a2e;
}
.testimonial-name-min {
font-size: 0.95rem;
font-weight: 700;
color: #1a1a2e;
}
.testimonial-role-min {
font-size: 0.8rem;
color: #666;
margin-top: 0.15rem;
}