Overview & Problem Statement
University campus trade is typically conducted through disorganized social media groups or bulletin boards. Students face friction when buying or selling essential supplies: listings get lost, prices are difficult to compare, and there is no structured way to filter items by academic relevance or calculate running order estimates.
Campus Marketplace was developed as a clean, client-side web application tailored specifically to student communities. It provides a structured catalog of laptops, calculators, hostel necessities, and accessories with instant keyword and category filtering, an interactive synchronized slideshow gallery, and verified form submission workflows.
Key Implemented Features
-
Synchronized Gallery & Category Filters: Centralized dataset in
app.jsbinds product filtering with the catalog slideshow. Selecting a category (e.g. Laptops, Academics, Hostel) updates both the product listing and the gallery carousel simultaneously. - Live Validated Cart Arithmetic: Running order total calculates instantly on quantity adjustments. Enforces strict input validation (whole numbers 0–10), rejecting non-numeric or out-of-range quantities with smooth inline warning messages.
-
Animated Form Confirmation: User registration validates field inputs (format, password length, confirmation match) without disruptive browser
alert()boxes, employing CSS@keyframestransitions for confirmation feedback. - Item Listing Preview: Interactive "Post an Item for Sale" interface generating live product preview cards with student verification status before submission.
-
Universal Accessibility: Semantic HTML5 markup, keyboard-accessible navigation controls, and descriptive
alttext on all catalog images.
My Work & Engineering Contributions
I designed and engineered the entire web application end-to-end, working without heavy frontend frameworks to demonstrate core web platform mastery:
-
Frontend Architecture: Crafted the modular JavaScript layer in
app.js, separating data manipulation, event handling, and DOM rendering. -
Responsive Design System: Built custom CSS in
styles.cssfeaturing a mobile drawer menu, CSS grid product layouts, and smooth transition states. - Form Verification Engine: Created granular validation logic checking email format regular expressions, password length constraints, and matching password verification fields.
- Production Deployment: Configured clean asset bundling and automated Git-based continuous deployment via Vercel.
Technical Implementation & Architecture
The project is built on vanilla web standards (HTML5, CSS3, ES6+ JavaScript), achieving fast initial load times and instant interactivity without client-side framework overhead:
- Centralized State Architecture: A single product dataset drives both the catalog search/filtering mechanism and the top banner carousel, ensuring zero state desynchronization.
- DOM Event Delegation: Handlers on container elements process user interactions (quantity modifications, category button toggles, gallery navigation) efficiently without attaching individual listeners to every product item.
-
CSS Keyframe Animations: Custom keyframe animations (
successPopAnimation) visually confirm valid submissions while CSSmax-heightandopacitytransitions reveal inline validation errors cleanly.
Engineering Challenges & Solutions
-
Challenge: Gallery and Search Desynchronization: Filtering the product grid previously left the carousel displaying items that were hidden from view.
Solution: Refactored the gallery controller to consume the active filtered slice from the central data array, resetting the carousel index and dot indicators dynamically whenever the active filter changes. -
Challenge: Input Corruption in Running Total: Users entering negative numbers or strings into quantity inputs caused calculation errors (
NaN) in the running cart total.
Solution: Implemented a strict validation guard verifying integer values within the range of0 ≤ q ≤ 10. Out-of-bounds inputs display inline CSS error transitions and are excluded from the running calculation until corrected.