Skip to content

Business Card Style Contact Card

Bootstrap 5 digital business card with portrait, role, tap-to-call contact links, copy buttons, a QR code and a downloadable vCard.

Also known as: digital business card, scannable contact card, vcard contact card, online business card

Business Card Style Contact Card live demo

Open in new tab

Bootstrap 5 code (HTML, CSS, JS)

A digital business card built with Bootstrap 5: a deep green brand side with portrait, name and role, and a paper-colored details side with tap-to-call links, copy buttons, a scannable QR code and a "Save contact" button that downloads a vCard. Use it on personal sites, team pages, link-in-bio pages or conference badges.

How it works

The root article.bcc-card sits inside the .bcc-wrap background and is split by a Bootstrap row g-0 into .bcc-front (col-md-5) and .bcc-back (col-md-7). On phones the two sides stack. The front uses a green gradient with a soft gold glow, and a ::after pseudo-element draws the thin inset gold frame that gives the printed-card look. It holds the inline SVG company mark, the round .bcc-photo, the serif .bcc-name, the gold .bcc-role and a short tagline.

The back is a list of .bcc-item rows. Each row has a .bcc-icon tile, a .bcc-value link (tel:, mailto: or a web URL) and, where useful, a .bcc-copy button. Below the list, .bcc-qr holds a real QR code drawn as one SVG path, so it stays sharp at any size and needs no library.

The script runs on DOMContentLoaded for every .bcc-card. Copy buttons read data-bcc-copy, try navigator.clipboard.writeText and fall back to a hidden textarea, then swap the icon to a check mark and write the result into .bcc-status. The buildVcard() function turns the data-bcc-name, data-bcc-title, data-bcc-org, data-bcc-phone, data-bcc-email and data-bcc-url attributes on the card into a vCard 3.0 file and sets it as a Blob URL on .bcc-save.

Customization

  • --bcc-green, --bcc-green-2 and --bcc-gold in .bcc-wrap: recolor the brand side, icons, button and photo ring.
  • --bcc-radius in .bcc-wrap: round or square off the card and its inner frame together.
  • The data-bcc-* attributes on .bcc-card: change the details that end up in the downloaded vCard.
  • data-bcc-copy on each .bcc-copy button: set the exact text that is copied, for example a phone number without spaces.
  • The path inside .bcc-qr svg: replace it with a QR code for your own URL, generated by any QR tool as SVG.
  • max-width: 720px in .bcc-card: make the card wider or narrower; col-md-5 and col-md-7 set the split between the sides.
  • download="alex-morgan.vcf" on .bcc-save: change the file name of the downloaded contact.

Use cases

  • Personal sites: a visitor taps to call or email and saves the contact as a vCard file
  • Team pages: each person gets a card with portrait, role, copy buttons and a scannable QR code
  • Link-in-bio pages: contact details and a save contact button replace a printed business card
  • Conference badges: attendees scan the QR code to open your site and exchange details quickly

Accessibility

The card is an article labelled by the name heading. Each contact link has a visually-hidden prefix such as "Email:", and every copy button has its own aria-label. The QR code is an SVG with role="img" and a title that says where it leads. .bcc-status is a polite live region, so copy and download results are announced. Links and buttons show a gold focus outline with a dark ring, and decorative icons are aria-hidden.

Usage notes

Requires Bootstrap 5 (added automatically) and Bootstrap Icons. The portrait comes from Unsplash; replace it with your own photo. Clipboard access and downloads can be blocked inside sandboxed preview frames; both work on a normal page.

Business Card Style Contact Card at a glance

Framework
Bootstrap 5
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 5, Bootstrap Icons
Layout
Responsive, works on mobile
Category
Profile Cards
License
Free for personal and commercial use

Questions about this template

Can I use the Business Card Style Contact Card code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 5 and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
Business Card Style Contact Card – Bootstrap 5 profile cards component screenshot
Business Card Style Contact Card · Bootstrap 5 Profile Cards

More Profile Cards

Neon Glow Profile Card – Pure CSS profile cards preview

Neon Glow Profile Card

Dark profile card with an animated neon conic-gradient border, soft glow, stats, skill tags and a Follow toggle, built with pure CSS and vanilla JS.

Profile Card with Stats – Bootstrap 5 profile cards preview

Profile Card with Stats

Bootstrap 5 user profile card with gradient cover, initials avatar, animated stat counters, follow toggle, message and copy-link buttons.

Profile Card with Cover – Tailwind CSS profile cards preview

Profile Card with Cover

Tailwind CSS profile card with a gradient cover, overlapping avatar, verified badge, bio, skill chips, stats and an accessible follow toggle.