DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
Payment Card - Preview | DevPlatform
DevPlatform
Categories
Accordion
Animation
Box Shadow
Button
Card
Footer
Form
Gallery
Hero Section
Inputs
Loader
Marquee
Modal
Modules
Navbar
Progress Bar
Radio Buttons
Search-Bar
Sections
Slider
Tab
Timeline
Toggle
Payment Card
jitesh208
Jan 28, 2026
2
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<div class="ticket"> <!-- Header --> <div class="header"> <div class="icon">🎉</div> <h2>Thank You</h2> <p>Payment successful</p> </div> <div class="divider"></div> <!-- Info --> <div class="info"> <div> <div class="label">Ticket ID</div> <div class="value">0120073989</div> </div> <div> <div class="label">Amount</div> <div class="value">$3,800</div> </div> </div> <!-- Payment --> <div class="pay"> 💳 Mastercard •••• 4567 </div> <!-- Barcode --> <div class="barcode"></div> </div>
1
*{ box-sizing:border-box; font-family:'Inter',sans-serif; } body{ min-height:100vh; display:grid; place-items:center; background:#fff; } /* Ticket */ .ticket{ width:320px; height:300px; /* FIXED HEIGHT */ background:#fff; border-radius:22px; position:relative; padding:20px; box-shadow:0 25px 45px rgba(0,0,0,.15); display:flex; flex-direction:column; justify-content:space-between; } /* Side cuts */ .ticket::before, .ticket::after{ content:""; position:absolute; width:24px; height:24px; background:#ededed; border-radius:50%; top:50%; transform:translateY(-50%); } .ticket::before{ left:-12px; } .ticket::after{ right:-12px; } /* Header */ .header{ text-align:center; } .icon{ font-size:28px; margin-bottom:8px; } .header h2{ font-size:20px; margin-bottom:4px; } .header p{ font-size:13px; color:#6b7280; } /* Divider */ .divider{ border-top:1px dashed #ddd; margin:14px 0; } /* Info */ .info{ display:flex; justify-content:space-between; font-size:13px; } .label{ color:#6b7280; } .value{ font-weight:600; } /* Card */ .pay{ background:#f1f5ff; padding:10px; border-radius:12px; font-size:13px; display:flex; align-items:center; gap:8px; } /* Barcode */ .barcode{ height:38px; background: repeating-linear-gradient( 90deg, #000 0 2px, transparent 2px 4px ); margin-top:8px; }
1
Comments
0
Want to comment?
Please
login
or
sign up
to post comments.
No comments yet
Be the first to comment on this component!
Comments 0
Want to comment?
Please login or sign up to post comments.
No comments yet
Be the first to comment on this component!