Continue reading with a CnEVData subscription.
* {
font-family: ‘Times New Roman’, Times, serif;
}
.pricing-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
max-width: 400px;
margin: 0 auto;
}
.pricing-block {
width: 100%;
border: 1px solid #ddd;
border-radius: 8px;
padding: 20px;
display: flex;
cursor: pointer;
position: relative;
transition: all 0.3s ease;
}
.pricing-block:hover {
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.pricing-info {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
.pricing-text {
display: flex;
flex-direction: column;
}
.pricing-period {
font-size: 18px;
color: #333;
}
.pricing-price {
font-size: 24px;
font-weight: bold;
color: #000;
}
.pricing-save {
font-size: 14px;
color: #4f46e5;
margin-top: 5px;
}
.subscribe-btn {
background-color: #4f46e5;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.subscribe-btn:hover {
background-color: #4338ca;
}
.checkmark {
position: absolute;
top: 10px;
left: 10px;
width: 20px;
height: 20px;
border: 2px solid #4f46e5;
border-radius: 50%;
display: none;
align-items: center;
justify-content: center;
color: #4f46e5;
font-weight: bold;
}
.pricing-block.selected .checkmark {
display: flex;
}
$25
$270
Save 10% with annual subscription
function selectBlock(block) {
document.querySelectorAll(‘.pricing-block’).forEach(b => b.classList.remove(‘selected’));
block.classList.add(‘selected’);
}
function subscribe(plan) {
event.stopPropagation();
if (plan === ‘monthly’) {
console.log(‘Redirecting to monthly subscription page’);
// 替换为您的月度订阅链接
// window.location.href = ‘https://cnevdata.memberful.com/checkout?plan=118334’;
} else if (plan === ‘annual’) {
console.log(‘Redirecting to annual subscription page’);
// 替换为您的年度订阅链接
// window.location.href = ‘https://cnevdata.memberful.com/checkout?plan=118336’;
}
}
Already a subscriber? Sign in