Skip to content

Generate student ID cards effortlessly with multiple templates, barcodes, and downloadable PNG/PDF formats. Built with React and Tailwind, featuring live preview and theme toggle

Notifications You must be signed in to change notification settings

astral5wave/CampusCard

Repository files navigation

CampusCard (Student ID Card Generator)

A React-based web application that allows universities to create student ID cards with multiple templates, barcode integration, and download options in PNG or PDF format.

Note: The website supports light and dark mode, but the ID card designs themselves remain the same across themes.


Features

  • Student Information

    • Fill in student details along with his/her photo, and university information.
  • ID Card Templates

    • 5 different templates to choose from
    • Mix of portrait and landscape modes
    • Real-time preview
  • Download Options

    • PNG: Front and back of the ID included in a zip file (generated using FileSaver + JSZip)
    • PDF: Front and back included on the same page (generated using jsPDF)
  • Barcode Integration

    • Each ID card includes a barcode of the student registration number
    • Useful for scanning in campus facilities like library or canteen
  • Theme Toggle

    • Switch between light and dark mode for the website interface (ID card design is persistent)

Tech Stack

  • React.js – Frontend framework
  • Tailwind CSS – Styling
  • JavaScript (ES6+) – Logic
  • FileSaver + JSZip – PNG download
  • jsPDF – PDF download

How to Use

  1. Fill in the student and university details on the input page.
  2. Preview the ID card using one of the 5 available templates.
  3. Download the ID card as PNG (zip with front/back) or PDF (single page with front/back).
  4. Toggle the website theme between light and dark mode for comfortable viewing.
  5. Use the barcode on the ID card for campus scanning needs.

Screenshots

Student Details Input ( Dark mode )

Student Details Input ( Light mode )

Template Preview ( Landscape )

Template Preview ( Portrait )

Download Options ( PDF )

Download Options ( PNG )

About

Generate student ID cards effortlessly with multiple templates, barcodes, and downloadable PNG/PDF formats. Built with React and Tailwind, featuring live preview and theme toggle

Resources

Stars

Watchers

Forks