# Online Marketplace Storefront

Pasarloka is a storefront for online stores, marketplaces, retail chains, and UMKM sellers: browse categories, run a flash deal with a live countdown, add products to a cart and wishlist, and invite small businesses to open a shop.

- Template name: Pasarloka
- Recommended for: Online stores, Marketplaces, Retail chains, UMKM
- Type: Welcome page
- Frameworks: React, Vue, Blade, Svelte, Angular and Astro
- Page: https://markas.jenderalcorp.com/pages/pasar
- Source: https://github.com/ahmad-rian/markasui/tree/main/templates/pasar
- CLI: `npx markasui@latest add avatar bottom-navigation button carousel drawer footer input toast toggle-group`

## Components used

- [Avatar](https://markas.jenderalcorp.com/components/avatar): Round profile photo in three sizes, with name initials as a fallback when the image is empty or fails to load.
- [Bottom Navigation](https://markas.jenderalcorp.com/components/bottom-navigation): Mobile app style bottom bar. A pill glides to the selected item, its label rises in, and the bar can shrink to icons while content scrolls.
- [Button](https://markas.jenderalcorp.com/components/button): Button with primary, secondary, ghost, and danger variants.
- [Carousel](https://markas.jenderalcorp.com/components/carousel): Row of slides built on CSS scroll snap, with previous and next buttons, optional dots, and arrow key navigation. No autoplay.
- [Drawer](https://markas.jenderalcorp.com/components/drawer): Full-height side panel built on the native dialog element, sliding in from the right or left.
- [Footer](https://markas.jenderalcorp.com/components/footer): Site footer with six layouts: link columns, centered glow, newsletter pill card, giant cropped wordmark, dark glowing call to action, and a floating pill.
- [Input](https://markas.jenderalcorp.com/components/input): Text field with a label, hint, and error message wired up through ARIA.
- [Toast](https://markas.jenderalcorp.com/components/toast): Short notification in the bottom right corner that dismisses itself, triggered with the toast() function or an event.
- [Toggle Group](https://markas.jenderalcorp.com/components/toggle-group): Segmented group of toggle buttons with single or multiple selection and arrow key navigation between items.

## Get the code

Add every component with the CLI, then copy the page file for your framework from GitHub. The live demo shows the finished page.

```bash
npx markasui@latest add avatar bottom-navigation button carousel drawer footer input toast toggle-group
```

| Framework | Source file | Live demo |
| --- | --- | --- |
| Blade | [`templates/pasar/blade/pasar.blade.php`](https://github.com/ahmad-rian/markasui/blob/main/templates/pasar/blade/pasar.blade.php) | https://markas.jenderalcorp.com/demo/templates/pasar/blade |
| React | [`templates/pasar/react/Pasar.tsx`](https://github.com/ahmad-rian/markasui/blob/main/templates/pasar/react/Pasar.tsx) | https://markas.jenderalcorp.com/demo/templates/pasar/react |
| Vue | [`templates/pasar/vue/Pasar.vue`](https://github.com/ahmad-rian/markasui/blob/main/templates/pasar/vue/Pasar.vue) | https://markas.jenderalcorp.com/demo/templates/pasar/vue |
| Svelte | [`templates/pasar/svelte/Pasar.svelte`](https://github.com/ahmad-rian/markasui/blob/main/templates/pasar/svelte/Pasar.svelte) | https://markas.jenderalcorp.com/demo/templates/pasar/svelte |
| Astro | [`templates/pasar/astro/Pasar.astro`](https://github.com/ahmad-rian/markasui/blob/main/templates/pasar/astro/Pasar.astro) | https://markas.jenderalcorp.com/demo/templates/pasar/astro |
| Angular | [`templates/pasar/angular/pasar.component.ts`](https://github.com/ahmad-rian/markasui/blob/main/templates/pasar/angular/pasar.component.ts) | https://markas.jenderalcorp.com/demo/templates/pasar/angular |
