rework home page, fichier config pour l'url , ajout de liens en bas des pages publiques
This commit is contained in:
@@ -6,6 +6,7 @@ import Link from 'next/link';
|
||||
import { Campaign, Proposition, Participant, Vote, PropositionWithVote } from '@/types';
|
||||
import { campaignService, participantService, propositionService, voteService, settingsService } from '@/lib/services';
|
||||
import { MarkdownContent } from '@/components/MarkdownContent';
|
||||
import { PROJECT_CONFIG } from '@/lib/project.config';
|
||||
|
||||
// Force dynamic rendering to avoid SSR issues with Supabase
|
||||
export const dynamic = 'force-dynamic';
|
||||
@@ -536,6 +537,22 @@ export default function PublicVotePage() {
|
||||
{error}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Footer discret */}
|
||||
<div className="text-center mt-16 pb-20">
|
||||
<p className="text-gray-400 text-sm">
|
||||
Développé avec ❤️ pour faciliter la démocratie participative -{' '}
|
||||
<a
|
||||
href={PROJECT_CONFIG.repository.url}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="text-gray-500 hover:text-gray-700 underline"
|
||||
>
|
||||
Logiciel libre
|
||||
</a>{' '}
|
||||
et transparent pour tous
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Barre fixe en bas */}
|
||||
|
||||
Reference in New Issue
Block a user