save avant prochaine modif
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
"use client";
|
||||
|
||||
|
||||
import React from 'react';
|
||||
import { Link, useLocation } from 'react-router-dom';
|
||||
import Link from 'next/link';
|
||||
import { usePathname } from 'next/navigation';
|
||||
|
||||
const Footer = () => {
|
||||
const location = useLocation();
|
||||
if (location.pathname.startsWith('/dashboard')) return null;
|
||||
const pathname = usePathname() || '';
|
||||
if (pathname.startsWith('/dashboard')) return null;
|
||||
|
||||
return (
|
||||
<footer className="bg-dark-900 text-white">
|
||||
@@ -13,16 +16,16 @@ const Footer = () => {
|
||||
<div>
|
||||
<h3 className="text-2xl font-serif font-bold text-brand-500 mb-4">Afropreunariat</h3>
|
||||
<p className="text-gray-400 text-sm">
|
||||
La plateforme de référence pour l'entrepreneuriat africain.
|
||||
La plateforme de référence pour l'entrepreneuriat africain.
|
||||
Visibilité, connexion et croissance pour les TPE/PME.
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h4 className="font-bold text-lg mb-4">Liens Rapides</h4>
|
||||
<ul className="space-y-2 text-gray-400 text-sm">
|
||||
<li><Link to="/directory" className="hover:text-brand-500">Rechercher une entreprise</Link></li>
|
||||
<li><Link to="/login" className="hover:text-brand-500">Inscrire mon entreprise</Link></li>
|
||||
<li><Link to="/blog" className="hover:text-brand-500">Actualités & Conseils</Link></li>
|
||||
<li><Link href="/directory" className="hover:text-brand-500">Rechercher une entreprise</Link></li>
|
||||
<li><Link href="/login" className="hover:text-brand-500">Inscrire mon entreprise</Link></li>
|
||||
<li><Link href="/blog" className="hover:text-brand-500">Actualités & Conseils</Link></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user