rework home page, fichier config pour l'url , ajout de liens en bas des pages publiques

This commit is contained in:
Yannick Le Duc
2025-08-27 11:10:26 +02:00
parent 5c5c5d11e3
commit 28df167fee
5 changed files with 151 additions and 20 deletions

View File

@@ -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 */}