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
- 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. - Tailwind only. Tailwind is already loaded. No Bootstrap or other CSS frameworks, and no
npm run buildstep. Small scripts may use Alpine.js from a CDN. - Admin pages live under
/adminand are protected byauth+admin. Add your admin link to the Admin Dashboard's admin menu through a PR. - Every form:
@csrf, inputs keep their values after an error (old()), and errors show through the layout's error box. - Feedback after actions: redirect with
->with('success', '...')or->with('error', '...'). The layout shows both. - Confirm before destroying: delete, cancel and remove actions ask "Are you sure?" first.
- Money: always
₱+ two decimals, e.g.₱{{ number_format($price, 2) }}. - Works on a phone: pages are usable at 375 px wide. Tables may scroll sideways.
- Accessible basics: every input has a label, every image has
alttext, and clickable things are<button>or<a>, not plain<div>s. - 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
| Element | Use |
|---|---|
| Page background | Light gray (bg-gray-50), content on white cards (bg-white rounded shadow) |
| Primary button | Dark (bg-gray-900 text-white rounded px-4 py-2) |
| Secondary button | Outlined (border rounded px-4 py-2) |
| Destructive button / text | Red (bg-red-600 or text-red-600) |
| Success / error messages | Already styled by the layout; do not restyle them |
| Page title | text-2xl font-bold mb-6 |
| Text | Sentence 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.