mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-06 04:35:18 +02:00
🐛 fix: user interface and directory
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { MapPin } from 'lucide-react';
|
import { MapPin } from 'lucide-react';
|
||||||
import { type Mirror } from '@/types/download';
|
import { type Mirror } from '../../types/download';
|
||||||
import { type UserLocation } from '@/lib/location';
|
import { type UserLocation } from '../../lib/location';
|
||||||
|
|
||||||
interface SuggestedMirrorProps {
|
interface SuggestedMirrorProps {
|
||||||
mirror: Mirror;
|
mirror: Mirror;
|
||||||
@@ -10,25 +10,26 @@ interface SuggestedMirrorProps {
|
|||||||
|
|
||||||
export function SuggestedMirror({ mirror, userLocation, onSelect }: SuggestedMirrorProps) {
|
export function SuggestedMirror({ mirror, userLocation, onSelect }: SuggestedMirrorProps) {
|
||||||
return (
|
return (
|
||||||
<div className="bg-white/80 backdrop-blur-sm p-6 rounded-lg border-2 border-cornflower-blue">
|
<div className="bg-white/90 backdrop-blur-lg p-6 rounded-lg shadow-lg border-2 border-cornflower-blue hover:shadow-xl transition-shadow">
|
||||||
<div className="flex items-center gap-2 mb-4">
|
<div className="flex items-center gap-3 mb-5">
|
||||||
<MapPin className="h-5 w-5 text-cornflower-blue" />
|
<MapPin className="h-6 w-6 text-cornflower-blue" />
|
||||||
<div>
|
<div>
|
||||||
<h3 className="font-medium text-gray-900">Suggested Mirror</h3>
|
<h3 className="text-2xl font-semibold text-gray-900">Suggested Mirror</h3>
|
||||||
<p className="text-sm text-gray-500">Based on your location: {userLocation.city}, {userLocation.country}</p>
|
<p className="text-sm text-gray-600">Based on your location: {userLocation.city}, {userLocation.country}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-3">
|
||||||
<p className="font-medium text-gray-900">{mirror.name}</p>
|
<p className="font-semibold text-gray-900 text-lg">{mirror.name}</p>
|
||||||
<p className="text-sm text-gray-600">{mirror.location}</p>
|
<p className="text-sm text-gray-600">{mirror.location}</p>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
onClick={() => onSelect(mirror)}
|
onClick={() => onSelect(mirror)}
|
||||||
className="w-full mt-2 px-4 py-2 bg-cornflower-blue text-white rounded-lg hover:bg-blue-600 transition-colors"
|
className="w-full mt-4 px-5 py-3 bg-cornflower-blue text-white rounded-lg hover:bg-blue-600 transition-colors ease-in-out"
|
||||||
>
|
>
|
||||||
Use This Mirror
|
Use This Mirror
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user