2000+ people voted
Page: Product Pages (Optimized for Conversions)


Snippet Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Feedback Section</title>
<style>
body.unique-feedback-body-Xyz123 {
background-color: #f0f0f0; /* Açık arka plan rengi */
color: #333;
font-family: Arial, sans-serif;
display: flex;
justify-content: flex-start; /* Sola hizalama */
align-items: center;
height: 100vh;
margin: 0;
padding-left: 20px; /* Soldan biraz boşluk */
}
.unique-feedback-container-Abc456 {
background-color: #fff;
padding: 10px 20px;
border-radius: 10px;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Hafif gölge efekti */
max-width: 100%; /* Mobil ve masaüstü cihazlar için uyumlu genişlik */
width: 500px; /* Maksimum genişlik */
margin: 2px auto; /* Yukarı ve aşağı 2px boşluk */
}
.unique-feedback-question-Def789 {
font-size: 14px; /* Font boyutu küçültüldü */
margin-bottom: 10px;
display: flex;
align-items: center;
justify-content: flex-start;
border-left: 5px solid green; /* Sol tarafta yeşil çizgi */
padding-left: 10px;
background-color: #f9f9f9; /* Hafif gri arka plan */
border-radius: 5px;
padding: 5px 10px; /* İçerik ile kenar arasındaki boşluk */
}
.unique-thumbs-up-icon-Ghi012 {
color: green;
margin-right: 5px;
font-size: 14px; /* Emoji ve metin boyutları eşitlendi */
}
.unique-feedback-buttons-Jkl345 {
display: flex;
justify-content: space-between;
gap: 10px;
margin-bottom: 10px;
}
.unique-feedback-button-Mno678 {
padding: 8px 15px; /* Buton padding azaltıldı */
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 14px; /* Font boyutu */
flex-grow: 1;
background-color: #e0e0e0; /* Açık buton rengi */
color: #333; /* Metin rengi */
transition: transform 0.1s ease-in-out; /* Animasyon efekti */
}
.unique-feedback-button-Mno678:active {
transform: scale(1.1); /* Butona tıklama animasyonu */
}
#unique-like-button-Pqr901, #unique-dislike-button-Stu234 {
background-color: #e0e0e0; /* Açık buton rengi */
color: #333; /* Metin rengi */
}
.unique-feedback-progress-Vwx567 {
background-color: #ddd;
border-radius: 5px;
height: 15px; /* Yükseklik azaltıldı */
overflow: hidden;
margin-bottom: 10px;
width: 100%;
display: flex;
align-items: center;
}
.unique-progress-bar-Yza890 {
background-color: green; /* Progress bar rengi yeşil */
height: 100%;
width: 85%; /* Default olarak %85'den başlayacak */
text-align: center;
line-height: 15px; /* Yükseklik ile uyumlu */
color: white; /* Metin rengi beyaz */
font-weight: bold;
font-size: 12px; /* Font boyutu küçültüldü */
transition: width 0.5s ease-in-out; /* Animasyon efekti */
}
.unique-feedback-percentage-Bcd123 {
font-size: 14px;
display: none;
}
.unique-feedback-votes-Efg456 {
font-size: 12px;
color: #666;
margin-top: 10px;
}
</style>
</head>
<body class="unique-feedback-body-Xyz123">
<div class="unique-feedback-container-Abc456">
<div class="unique-feedback-question-Def789">
<span class="unique-thumbs-up-icon-Ghi012">👍</span>
Did you like the product?
</div>
<div class="unique-feedback-buttons-Jkl345">
<button class="unique-feedback-button-Mno678" id="unique-like-button-Pqr901">Like</button>
<button class="unique-feedback-button-Mno678" id="unique-dislike-button-Stu234">Dislike</button>
</div>
<div class="unique-feedback-progress-Vwx567">
<div class="unique-progress-bar-Yza890" id="unique-progress-bar-Yza890">85%</div>
</div>
<p class="unique-feedback-percentage-Bcd123" id="unique-feedback-percentage-Bcd123">85%</p>
<p class="unique-feedback-votes-Efg456">2000+ people have voted</p>
</div>
<script>
const likeButtonUnique = document.getElementById('unique-like-button-Pqr901');
const dislikeButtonUnique = document.getElementById('unique-dislike-button-Stu234');
const progressBarUnique = document.getElementById('unique-progress-bar-Yza890');
const feedbackPercentageUnique = document.getElementById('unique-feedback-percentage-Bcd123');
let likesUnique = 85;
let dislikesUnique = 15;
function updateProgressBarUnique() {
const totalUnique = likesUnique + dislikesUnique;
const percentageUnique = totalUnique === 0 ? 0 : (likesUnique / totalUnique) * 100;
progressBarUnique.style.width = percentageUnique + '%';
progressBarUnique.textContent = Math.round(percentageUnique) + '%';
feedbackPercentageUnique.textContent = Math.round(percentageUnique) + '%';
}
likeButtonUnique.addEventListener('click', () => {
likesUnique++;
updateProgressBarUnique();
});
dislikeButtonUnique.addEventListener('click', () => {
dislikesUnique++;
updateProgressBarUnique();
});
// Initialize progress bar with animation
setTimeout(() => {
updateProgressBarUnique();
}, 100);
</script>
</body>
</html>