Skip to content

Commit

Permalink
Merge pull request #150 from pedrolivaresanchez/style/homepage
Browse files Browse the repository at this point in the history
style: fix padding & anchors
  • Loading branch information
Pinx0 authored Nov 8, 2024
2 parents ec97448 + 6a6eb6a commit bbc4080
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export default function Home() {
))}
</div>

<div className="grid grid-cols-1 lg:grid-cols-2 gap-6 max-w-7xl mx-auto p-6">
<div className="grid grid-cols-1 lg:grid-cols-2 gap-6 max-w-7xl mx-auto">
{/* Puntos de Encuentro */}
<div className="bg-white rounded-lg shadow-lg p-6 h-full">
<div className="flex items-center gap-3 mb-6 border-b pb-4">
Expand All @@ -269,25 +269,26 @@ export default function Home() {
</div>
<div className="grid sm:grid-cols-1 xl:grid-cols-2 gap-4">
{collectionPoints.map((point) => (
<div key={point.area} className="bg-gray-50 p-4 rounded-lg hover:shadow-md transition-shadow">
<a
key={point.area}
href={`https://maps.google.com/?q=${point.address}`}
target="_blank"
rel="noopener noreferrer"
className="bg-gray-50 p-4 rounded-lg hover:shadow-md transition-shadow"
>
<h3 className="font-bold text-gray-800 mb-2">{point.area}</h3>
<div className="space-y-1 text-sm text-gray-600">
<a
href={`https://maps.google.com/?q=${point.address}`}
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-2 text-sm text-blue-600 hover:text-blue-700 group-hover:underline"
>
<div className="flex items-center gap-2 text-sm text-blue-600 hover:text-blue-700 group-hover:underline">
<Navigation className="h-4 w-4" />
<span className="line-clamp-2">
{point.address} {point.postalCode} {point.city}
</span>
</a>
</div>
{point.location && (
<p className="text-orange-600 font-medium mt-2">Punto de referencia: {point.location}</p>
)}
</div>
</div>
</a>
))}
</div>
</div>
Expand All @@ -300,21 +301,19 @@ export default function Home() {
</div>
<div className="grid sm:grid-cols-1 xl:grid-cols-2 gap-4">
{medicalCenters.map((center) => (
<div
<a
key={center.name}
href={center.location}
target="_blank"
rel="noopener noreferrer"
className="group bg-gray-50 p-4 rounded-lg hover:bg-gray-100 transition-shadow hover:shadow-md"
>
<h3 className="font-bold text-gray-800 mb-2">{center.name}</h3>
<a
href={center.location}
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-2 text-sm text-blue-600 hover:text-blue-700 group-hover:underline"
>
<div className="flex items-center gap-2 text-sm text-blue-600 hover:text-blue-700">
<Navigation className="h-4 w-4" />
<span className="line-clamp-2">{center.address}</span>
</a>
</div>
</div>
</a>
))}
</div>
</div>
Expand Down

0 comments on commit bbc4080

Please sign in to comment.