Utility Pages
Utility Pages
Supplementary pages that round out the directory experience. Most are standalone routes; /explore and /popular/:slug are 301 redirects.
Routes
| Route | Type | Description |
|---|---|---|
/popular | Page | Curated list of the most popular restaurants. |
/popular/:slug | Redirect | 301 → /restaurants/:slug (consolidated profile). |
/explore | Redirect | 301 → /restaurants. |
/about | Page | Static informational page about the directory. |
/contact | Page | Contact information page. |
/list-restaurant | Page | Landing page for restaurant owners — submission tiers, criteria, FAQ. |
/privacy | Content | Privacy policy (Nuxt Content misc collection). |
/terms | Content | Terms of service (Nuxt Content misc collection). |
/sitemap | Page | HTML sitemap of all routes. |
Components Used
/popular
| Component | Role |
|---|---|
XRDProfileCard | Restaurant card rendered for each popular result. |
XRDStarRating | Rating display within each card. |
XRDFilters* | Optional filter panel — when present, the listing reacts to the shared useRestaurantFilters() state. |
/about
Static content page using UPage, UPageHeader, UPageBody, and UCard from @nuxt/ui. Brand name is read from appConfig.xRestaurants.name. No XRD-prefixed components are required.
/contact
Contact information page (built on @nuxt/ui primitives). No XRD-prefixed components are required.
/list-restaurant
Self-contained landing page with three listing tiers (Basic free, Featured $49/mo, Premium $149/mo), editorial criteria, and a 6-question FAQ accordion. The page does not currently wire the form to an API — submissions are routed to the /contact page. The useDomain().suggestRestaurant(body) composable method is available if you want to implement form submission.
Data Fetching
| Route | Data source |
|---|---|
/popular | useDomain().getRestaurantsTopRated() via useAsyncData. May also use useRestaurantFilters() for filterable results. |
/about | No API calls — static content. |
/contact | No API calls. |
/list-restaurant | No read fetching on load. suggestRestaurant() is available for submission. |
/privacy / /terms | Nuxt Content misc collection. |
/sitemap | Static HTML. |
AI Context
routes:
- /popular
- /popular/:slug (redirect)
- /explore (redirect)
- /about
- /contact
- /list-restaurant
- /privacy
- /terms
- /sitemap
package: "@xenterprises/nuxt-x-restaurants"
use-when: >
Rendering any supplementary directory route. /popular lists top-rated
restaurants, /about and /contact are static brand pages, /list-restaurant
is a restaurant-owner landing page, /privacy and /terms pull from Nuxt
Content, /sitemap is a static HTML index. /explore and /popular/:slug
are 301 redirects used as legacy entry points.
