Created
April 25, 2026 19:06
-
-
Save blopa/769ffcc95f941fe4fe4550d83d9babc5 to your computer and use it in GitHub Desktop.
Code for post "I built a retro RPG game shop extension for my Magento 2 store"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Category Tabs --> | |
| <div v-if="activeView === 'list'" class="flex flex-wrap gap-2 mb-3"> | |
| <button v-for="cat in categories" :key="cat.id" | |
| class="px-3 py-1 border border-orange-500 hover:bg-orange-500 hover:text-black transition" | |
| :class="{'bg-orange-500 text-black': currentCategoryId === cat.id}" | |
| @click="loadProducts(cat.id, cat.name)"> | |
| {{ cat.name }} | |
| </button> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment