Receipt Viewer Card

0 viewsmedium
Background:

Receipt

#5678

TechStore Downtown

456 Commerce Street
New York, NY 10012
(555) 123-4567
Date:March 15, 2024
Time:2:45 PM
Cashier:Sarah M.
Register:Terminal #3

Items Purchased

Wireless Mouse
SKU: WM-001
$29.99 × 1
$29.99
USB-C Cable (3ft)
SKU: UC-003
$19.99 × 2(-$5)
$34.98
Screen Protector
SKU: SP-007
$14.99 × 1
$14.99
Subtotal$79.96
Total Savings-$5.00
Tax (8.75%)$7.00
Total$86.96
Payment Information
Credit Card (Visa ****4242)
Auth: A12345
Ref: REF789456123
Loyalty Rewards
Member: ****-1234
Points Earned: +8
Current Balance: 247 points
Return Policy
30 days from purchase date
Items must be unopened and in original packaging
1
2
3
4
5
6
7
8
9
10
11
12
<div class="receipt_viewer_card">
  <div class="default-card">
    <div class="card-header">
      <img src="https://via.placeholder.com/300x200" alt="Card Image" class="card-image" />
    </div>
    <div class="card-body">
      <h3 class="card-title">Card Title</h3>
      <p class="card-text">This is a beautiful card component with modern styling and smooth animations.</p>
      <button class="card-button">Learn More</button>
    </div>
  </div>
</div>
Was this helpful?

What is inside Receipt Viewer Card

Receipt Viewer Card is a CSS button built with transforms, layered shadows, defined in 56 lines across 11 selectors.

19
CSS properties
11
Selectors
56
Lines of CSS
3
Formats

Techniques used

TransitionsTransformsShadowsHover state

CSS properties in this component

backgroundborderborder-radiusbox-shadowcolorcursorfont-familyfont-sizefont-weightheightline-heightmarginmax-widthobject-fitoverflowpaddingtransformtransitionwidth

Accessibility check1 to fix

  • Built on a native <button> element, so keyboard focus and screen reader semantics work without extra attributes.
  • No focus style is defined. Add one before shipping, or keyboard users lose track of position.

These notes are generated by reading this component's own source, so they describe what it actually does rather than what a template says. Copy the code above in HTML, CSS, Tailwind and adapt it freely.