IT 312 / SIAE-Commerce Project Guide
Your section

UI guidelines

Each group designs its own pages. These few rules keep every group's pages feeling like one store; everything not listed here is your group's choice.

Must follow

  1. Use the shared layout. Every page starts with @extends('layouts.app'). Do not copy or change the nav or footer; ask the Platform group and the instructor if you need a link added.
  2. Tailwind only. Tailwind is already loaded. No Bootstrap or other CSS frameworks, and no npm run build step. Small scripts may use Alpine.js from a CDN.
  3. Admin pages live under /admin and are protected by auth + admin. Add your admin link to the Admin Dashboard's admin menu through a PR.
  4. Every form: @csrf, inputs keep their values after an error (old()), and errors show through the layout's error box.
  5. Feedback after actions: redirect with ->with('success', '...') or ->with('error', '...'). The layout shows both.
  6. Confirm before destroying: delete, cancel and remove actions ask "Are you sure?" first.
  7. Money: always ₱ + two decimals, e.g. ₱{{ number_format($price, 2) }}.
  8. Works on a phone: pages are usable at 375 px wide. Tables may scroll sideways.
  9. Accessible basics: every input has a label, every image has alt text, and clickable things are <button> or <a>, not plain <div>s.
  10. Empty states: a list with nothing in it says so and suggests the next step, e.g. "Your cart is empty. Continue shopping."

Shared look

ElementUse
Page backgroundLight gray (bg-gray-50), content on white cards (bg-white rounded shadow)
Primary buttonDark (bg-gray-900 text-white rounded px-4 py-2)
Secondary buttonOutlined (border rounded px-4 py-2)
Destructive button / textRed (bg-red-600 or text-red-600)
Success / error messagesAlready styled by the layout; do not restyle them
Page titletext-2xl font-bold mb-6
TextSentence case; English

Free for your group to decide

Page layout, grids, cards vs tables, icons, extra colours inside your pages, animations, and how your feature works on screen. If two groups' pages connect (for example the product page and the reviews section), agree on the look in the PR.

Where to put view files

In your module's views/ folder, used as view('<module>::file'). Reusable pieces other groups include go in views/partials/, e.g. reviews::partials.product-reviews.