Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions frontend/src/components/Parrainnage/parrainageForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,31 @@ export const ParrainageNewStudent = () => (
</Card>
);

export const ParrainageNewStudentEnglish = () => (
<Card className="w-full max-w-3xl mx-auto">
<CardHeader>
<CardTitle className="text-2xl font-semibold text-gray-800 text-center">
You are joining the UTT ?
</CardTitle>
<p className="text-lg md:text-xl text-gray-700">
Would you like to be accompanied by a student to explore your new school? Fill out this form now!
</p>
</CardHeader>
<CardContent className="space-y-10">
<div className="relative pb-[56.25%] rounded-xl shadow-lg overflow-hidden">
<iframe
src="https://docs.google.com/forms/d/e/1FAIpQLSegnFsXqPhBj98cENhu6WWbYuE2Js3M1uA90LmJTz2N1tBfnA/viewform?embedded=true"
className="absolute inset-0 w-full h-full border-none"
title="New Student Sponsorship Form"
loading="lazy">
Loading...
</iframe>
</div>
{/* <p className="text-red-500 font-medium text-center">🚫 This form is not yet available.</p> */}
</CardContent>
</Card>
);

export const ParrainageStudent = () => (
<Card className="w-full max-w-3xl mx-auto">
<CardHeader>
Expand Down
5 changes: 0 additions & 5 deletions frontend/src/components/home/infosSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,6 @@ export const Infos = () => (
{ logo: 'DAMONTE.png', name: 'DAMONTE', link: 'https://www.yves-damonte.fr/' },
{ logo: 'FONDATIONUTT.png', name: 'Fondation UTT', link: 'https://fondation.utt.fr/' },
{ logo: 'POPEYE.png', name: 'POPEYE', link: 'https://popeye-troyes.fr/' },
{
logo: 'GRANDEST.png',
name: 'GRANDEST',
link: 'https://www.grandest.fr/vos-aides-regionales/jeunest-15-29-ans/',
},
{ logo: 'UTT.png', name: 'UTT', link: 'https://utt.fr/' },
{ logo: 'SECUTT.png', name: 'SECUTT', link: 'https://ffssaube.fr/secutt/' },
].map((partner, i) => (
Expand Down
8 changes: 7 additions & 1 deletion frontend/src/pages/parrainage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import { useNavigate } from 'react-router-dom';
import { Footer } from '../components/footer';
import EmergencyModal from '../components/home/emergencyModal';
import { Navbar } from '../components/navbar';
import { ParrainageNewStudent, ParrainageStudent } from '../components/Parrainnage/parrainageForm';
import {
ParrainageNewStudent,
ParrainageNewStudentEnglish,
ParrainageStudent,
} from '../components/Parrainnage/parrainageForm';
import { getPermission } from '../services/requests/user.service';

const ParrainagePage = () => {
Expand All @@ -23,6 +27,8 @@ const ParrainagePage = () => {
<div className="max-w-7xl mx-auto space-y-8">
{(permission === 'Nouveau' || permission === 'Admin') && <ParrainageNewStudent />}

{(permission === 'Nouveau' || permission === 'Admin') && <ParrainageNewStudentEnglish />}

{(permission === 'Student' || permission === 'Admin') && <ParrainageStudent />}
</div>
</div>
Expand Down
Loading