Card Pricing
<section class="flex items-center justify-center p-8">
<div class="card w-96 bg-base-100 shadow-md">
<div class="card-body">
<span class="badge badge-xs badge-warning">Most Popular</span>
<div class="flex justify-between">
<h2 class="text-3xl font-bold">Premium</h2>
<span class="text-xl">$29/mo</span>
</div>
<ul class="mt-6 flex flex-col gap-2 text-xs">
<li>
<svg xmlns="http://www.w3.org/2000/svg" class="size-4 me-2 inline-block text-success" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
<span>High-resolution image generation</span>
</li>
<li>
<svg xmlns="http://www.w3.org/2000/svg" class="size-4 me-2 inline-block text-success" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
<span>Customizable style templates</span>
</li>
<li>
<svg xmlns="http://www.w3.org/2000/svg" class="size-4 me-2 inline-block text-success" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
<span>Batch processing capabilities</span>
</li>
<li>
<svg xmlns="http://www.w3.org/2000/svg" class="size-4 me-2 inline-block text-success" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
<span>AI-driven image enhancements</span>
</li>
</ul>
<div class="card-actions mt-6 justify-center">
<button class="btn btn-primary w-full">Subscribe</button>
</div>
</div>
</div>
</section>
<style>
.card {
position: relative;
display: flex;
flex-direction: column;
border-radius: 0.5rem;
background-color: #ffffff;
overflow: hidden;
}
.bg-base-100 {
background-color: #ffffff;
}
.shadow-md {
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.card-body {
display: flex;
flex: 1 1 auto;
flex-direction: column;
padding: 1.5rem;
gap: 0.5rem;
}
.card-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
}
.badge {
display: inline-flex;
align-items: center;
justify-content: center;
transition-property: color, background-color, border-color;
transition-duration: 200ms;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
width: fit-content;
border-radius: 0.375rem;
}
.badge-xs {
height: 1rem;
font-size: 0.75rem;
line-height: 1rem;
padding-left: 0.438rem;
padding-right: 0.438rem;
}
.badge-warning {
background-color: #fbbd23;
color: white;
}
.text-success {
color: #36d399;
}
.me-2 {
margin-right: 0.5rem;
}
.size-4 {
width: 1rem;
height: 1rem;
}
.justify-center {
justify-content: center;
}
.justify-between {
justify-content: space-between;
}
.mt-6 {
margin-top: 1.5rem;
}
.w-full {
width: 100%;
}
.btn {
display: inline-flex;
flex-shrink: 0;
cursor: pointer;
user-select: none;
flex-wrap: wrap;
align-items: center;
justify-content: center;
border: 1px solid transparent;
border-radius: 0.375rem;
padding: 0.5rem 1rem;
font-size: 0.875rem;
line-height: 1.25rem;
font-weight: 600;
text-align: center;
transition-property: color, background-color, border-color;
transition-duration: 200ms;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
background-color: #3b82f6;
color: #ffffff;
}
.btn-primary:hover {
background-color: #2563eb;
}
</style>
Copied to clipboard