added listings

This commit is contained in:
2025-12-26 20:01:28 -05:00
parent 06a5ff98d7
commit f08432e417
17 changed files with 2200 additions and 101 deletions

View File

@@ -3,6 +3,45 @@
import { newEnglandStates, mapViewBox } from '$lib/states';
import { goto } from '$app/navigation';
import { browser } from '$app/environment'; // To ensure SVG interactions only run client-side
import { onMount } from 'svelte';
import {
Scissors,
Snowflake,
Hammer,
Wrench,
Zap,
Bug,
Home,
Sparkles,
Eye,
Trash2,
Palette,
TreePine,
Fence,
Waves,
Camera,
Lock,
Refrigerator,
DoorOpen,
Eye as InspectionIcon,
GlassWater,
Shield,
Flame,
Square,
Grid,
Fan,
Clock,
Construction,
ExternalLink
} from 'lucide-svelte';
interface ServiceCategory {
id: number;
name: string;
description: string;
clicks_total: number;
total_companies: number;
}
let hoveredState: string | null = null;
@@ -23,8 +62,9 @@
}
</script>
<div class="text-center mb-8">
<div class="text-center mb-8">
<p class="text-lg">Click your state to find prices.</p>
</div>
@@ -67,7 +107,10 @@
<ul class="flex flex-wrap justify-center gap-4">
{#each newEnglandStates as state}
<li>
<a href="/{state.id}" class="btn btn-outline btn-secondary">{state.name}</a>
<a href="/{state.id}" class="text-blue-600 hover:text-blue-800 underline flex items-center gap-1">
<span>{state.name}</span>
<ExternalLink size={12} />
</a>
</li>
{/each}
</ul>