932 B
932 B
Phase 3 Website Delivery
Implemented routes
In app/routes/web.php:
GET /(home)GET /emoji/{slug}(detail)GET /api-docsGET /pricingGET /privacyGET /terms
Implemented pages
In app/resources/views/site/:
layout.blade.phphome.blade.phpemoji-detail.blade.phpapi-docs.blade.phppricing.blade.phpprivacy.blade.phpterms.blade.php
Behavior
- Home page fetches categories and emojis from the new APIs:
/v1/categories/v1/emojis
- Supports search/category/subcategory filtering and pagination via "Load more".
- Emoji cards link to server-rendered detail page by slug.
Controller
app/app/Http/Controllers/Web/SiteController.php- Handles page rendering and slug-based emoji lookup from configured dataset.
Test coverage
app/tests/Feature/SitePagesTest.php- Validates core pages, valid emoji detail, and 404 for invalid slug.