feat: add admin dashboard and core API routes with Docker configuration
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import Link from 'next/link';
|
||||
import { Search, MapPin, ChevronLeft, ChevronRight, ArrowRight } from 'lucide-react';
|
||||
import { safeUrl } from '@/lib/utils';
|
||||
|
||||
interface HomeSlide {
|
||||
id: string;
|
||||
@@ -130,7 +131,7 @@ const HomeSlider = ({ slides, onSearch }: Props) => {
|
||||
|
||||
<div className="flex flex-wrap gap-4 items-center">
|
||||
<Link
|
||||
href={slide.type === 'BUSINESS' ? `/annuaire/${slide.business?.id}` : (slide.linkUrl || '#')}
|
||||
href={slide.type === 'BUSINESS' ? `/annuaire/${slide.business?.id}` : safeUrl(slide.linkUrl)}
|
||||
className="inline-flex items-center gap-2 bg-brand-600 text-white px-8 py-4 rounded-lg font-bold hover:bg-brand-700 transition-all shadow-lg shadow-brand-600/20 hover:scale-105"
|
||||
>
|
||||
{slide.type === 'BUSINESS' ? 'Voir la fiche' : 'En savoir plus'}
|
||||
|
||||
Reference in New Issue
Block a user