diff --git a/src/components/directory/DirectoryCard.vue b/src/components/directory/DirectoryCard.vue index a44fc0e..d3bd144 100644 --- a/src/components/directory/DirectoryCard.vue +++ b/src/components/directory/DirectoryCard.vue @@ -13,7 +13,6 @@ import { UtensilsCrossed, Bed, ShoppingBag, - Wrench, Car, Ship, HelpCircle, diff --git a/src/components/directory/DirectoryFilter.vue b/src/components/directory/DirectoryFilter.vue index 26a412c..8635403 100644 --- a/src/components/directory/DirectoryFilter.vue +++ b/src/components/directory/DirectoryFilter.vue @@ -4,6 +4,15 @@ import { useI18n } from 'vue-i18n' import { Search } from 'lucide-vue-next' import { Input } from '@/components/ui/input' import { Button } from '@/components/ui/button' +import { + UtensilsCrossed, + Bed, + ShoppingBag, + Sparkles, + Car, + Ship, + HelpCircle, +} from 'lucide-vue-next' const { t } = useI18n() @@ -19,25 +28,45 @@ const emit = defineEmits<{ 'update:town': [value: string] }>() +const categoryIcons = { + restaurant: UtensilsCrossed, + lodging: Bed, + goods: ShoppingBag, + services: Sparkles, + taxi: Car, + lancha: Ship, + other: HelpCircle, +} as const + +const categoryColors = { + restaurant: 'text-orange-500', + lodging: 'text-purple-500', + goods: 'text-green-500', + services: 'text-pink-500', + taxi: 'text-yellow-500', + lancha: 'text-blue-500', + other: 'text-gray-500', +} as const + const categories = computed(() => [ { id: 'all', label: t('directory.categories.all') }, - { id: 'restaurant', label: t('directory.categories.restaurant') }, - { id: 'lodging', label: t('directory.categories.lodging') }, - { id: 'goods', label: t('directory.categories.goods') }, - { id: 'services', label: t('directory.categories.services') }, - { id: 'taxi', label: t('directory.categories.taxi') }, - { id: 'lancha', label: t('directory.categories.lancha') }, - { id: 'other', label: t('directory.categories.other') } + { id: 'restaurant', label: t('directory.categories.restaurant'), icon: categoryIcons.restaurant }, + { id: 'lodging', label: t('directory.categories.lodging'), icon: categoryIcons.lodging }, + { id: 'goods', label: t('directory.categories.goods'), icon: categoryIcons.goods }, + { id: 'services', label: t('directory.categories.services'), icon: categoryIcons.services }, + { id: 'taxi', label: t('directory.categories.taxi'), icon: categoryIcons.taxi }, + { id: 'lancha', label: t('directory.categories.lancha'), icon: categoryIcons.lancha }, + { id: 'other', label: t('directory.categories.other'), icon: categoryIcons.other }, ]) const towns = computed(() => [ { id: 'all', label: t('directory.towns.all') }, { id: 'San Marcos', label: 'San Marcos' }, - { id: 'Tzununa', label: 'Tzununa' }, - { id: 'San Pablo', label: 'San Pablo' }, { id: 'San Pedro', label: 'San Pedro' }, + { id: 'Tzununa', label: 'Tzununa' }, + { id: 'Jaibalito', label: 'Jaibalito' }, + { id: 'San Pablo', label: 'San Pablo' }, { id: 'Panajachel', label: 'Panajachel' }, - { id: 'Jaibalito', label: 'Jaibalito' } ]) @@ -56,15 +85,33 @@ const towns = computed(() => [
diff --git a/src/components/directory/DirectoryItemDetail.vue b/src/components/directory/DirectoryItemDetail.vue index 3254d2d..88544ff 100644 --- a/src/components/directory/DirectoryItemDetail.vue +++ b/src/components/directory/DirectoryItemDetail.vue @@ -14,7 +14,6 @@ import { UtensilsCrossed, Bed, ShoppingBag, - Wrench, Car, Ship, HelpCircle, @@ -85,12 +84,8 @@ const socialColors = {
- + {{ item.name }}
@@ -122,14 +117,14 @@ const socialColors = {
{{ item.contact }}
- \ No newline at end of file + diff --git a/src/pages/Directory.vue b/src/pages/Directory.vue index 5adf0af..e62f82c 100644 --- a/src/pages/Directory.vue +++ b/src/pages/Directory.vue @@ -1,7 +1,6 @@