adaptation page index et page register

This commit is contained in:
Romain 2024-11-23 15:58:29 +01:00
parent 8bc99d9492
commit b67abad361
5 changed files with 166 additions and 320 deletions

BIN
public/images/fond_site.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 KiB

View File

@ -11,8 +11,12 @@ class IndexController extends AbstractController
#[Route('/index', name: 'app_index')]
public function index(): Response
{
return $this->render('index/index.html.twig', [
'controller_name' => 'IndexController',
]);
return $this->render('index/index.html.twig', []);
}
#[Route('/test', name: 'app_test')]
public function test(): Response
{
return $this->render('base.html.twig', []);
}
}

View File

@ -1,17 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}Welcome!{% endblock %}</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
{% block stylesheets %}
{% endblock %}
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>{% block title %}Job Portal{% endblock %}</title>
{% block javascripts %}
{% block importmap %}{{ importmap('app') }}{% endblock %}
{% endblock %}
</head>
<body>
{% block body %}{% endblock %}
</body>
{# Tailwind CSS CDN #}
<script src="https://cdn.tailwindcss.com"></script>
{# FontAwesome & Google Fonts #}
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet"/>
<style>
body {
font-family: 'Roboto', sans-serif;
}
</style>
</head>
<body class="bg-gray-100">
<header class="bg-gray-900 text-white">
<div class="container mx-auto flex justify-between items-center py-4 px-6">
<div class="flex items-center">
<i class="fas fa-briefcase text-2xl mr-2"></i>
<span class="text-xl font-bold">HegreSphere</span>
</div>
<nav class="space-x-6">
<a class="hover:text-teal-400" href="{{ path('app_index') }}">Accueil</a>
<a class="hover:text-teal-400" href="{{ path('app_index') }}">Stages</a>
<a class="hover:text-teal-400" href="{{ path('app_index') }}">À propos de nous</a>
<a class="hover:text-teal-400" href="{{ path('app_index') }}">Nous contacter</a>
</nav>
<div>
<a class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full" href="{{ path('app_index') }}">
Profil
</a>
</div>
</div>
</header>
{# Block for the specific page content #}
<main>
{% block content %}{% endblock %}
</main>
</body>
</html>

View File

@ -1,297 +1,76 @@
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>
Job Portal
</title>
<script src="https://cdn.tailwindcss.com">
</script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&amp;display=swap" rel="stylesheet"/>
<style>
body {
font-family: 'Roboto', sans-serif;
}
</style>
</head>
<body class="bg-gray-100">
<header class="bg-gray-900 text-white">
<div class="container mx-auto flex justify-between items-center py-4 px-6">
<div class="flex items-center">
<i class="fas fa-briefcase text-2xl mr-2"></i>
<span class="text-xl font-bold">HegreSphere</span>
</div>
<nav class="space-x-6">
<a class="hover:text-teal-400" href="#">Accueil</a>
<a class="hover:text-teal-400" href="#">Stages</a>
<a class="hover:text-teal-400" href="#">À propos de nous</a>
<a class="hover:text-teal-400" href="#">Nous contacter</a>
</nav>
<div>
<a class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full" href="#">
Profil
</a>
</div>
</div>
</header>
<section class="bg-cover bg-center py-20" style="background-image: url('/images/fond_site.png');">
{% extends 'base.html.twig' %}
{% block title %}Accueil - Job Portal{% endblock %}
{% block content %}
<section class="bg-cover bg-center py-20" style="background-image: url('{{ asset('images/fond_site.png') }}');">
<div class="container mx-auto text-center text-white">
<h1 class="text-4xl md:text-5xl font-bold mb-4">
Trouvez votre stage de rêve !
</h1>
<p class="text-lg mb-8">
Connectez les talents aux opportunités : votre clé vers le succès professionnel
</p>
<h1 class="text-4xl md:text-5xl font-bold mb-4">Trouvez votre stage de rêve !</h1>
<p class="text-lg mb-8">Connectez les talents aux opportunités : votre clé vers le succès professionnel</p>
<div class="bg-white rounded-lg shadow-lg p-6 inline-block">
<div class="flex flex-col md:flex-row space-y-4 md:space-y-0 md:space-x-4">
<label>
<input class="border border-gray-300 rounded py-2 px-4 w-full md:w-auto" placeholder="Nom de l'entreprise" type="text"/>
</label>
<label>
<input class="border border-gray-300 rounded py-2 px-4 w-full md:w-auto" placeholder="Indiquez un endroit" type="text"/>
<input class="border border-gray-300 rounded py-2 px-4 w-full md:w-auto" placeholder="Selectionnez une categorie" type="text"/>
<button class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-6 rounded">
Trouvez un stage
</button>
</label>
<label>
<input class="border border-gray-300 rounded py-2 px-4 w-full md:w-auto" placeholder="Sélectionnez une catégorie" type="text"/>
</label>
<button class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-6 rounded">Trouvez un stage</button>
</div>
</div>
<div class="flex justify-center space-x-8 mt-8">
<div class="text-center">
<i class="fas fa-briefcase text-2xl">
</i>
<p class="mt-2">
+850 Stages
</p>
<i class="fas fa-briefcase text-2xl"></i>
<p class="mt-2">+850 Stages</p>
</div>
<div class="text-center">
<i class="fas fa-users text-2xl">
</i>
<p class="mt-2">
1500 Candidats
</p>
<i class="fas fa-users text-2xl"></i>
<p class="mt-2">1500 Candidats</p>
</div>
<div class="text-center">
<i class="fas fa-building text-2xl">
</i>
<p class="mt-2">
+500 Entreprises
</p>
<i class="fas fa-building text-2xl"></i>
<p class="mt-2">+500 Entreprises</p>
</div>
</div>
</div>
</section>
<section class="container mx-auto py-12">
</section>
<section class="container mx-auto py-12">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold">
Propositions de stages récentes
</h2>
<a class="text-teal-500 hover:underline" href="#">
Voir tout
</a>
<h2 class="text-2xl font-bold">Propositions de stages </h2>
<a class="text-teal-500 hover:underline" href="{{ path('app_announcement_list') }}">Voir tout</a>
</div>
<div class="space-y-6">
{# Loop over recent offers (replace with dynamic data)
{% for offer in recent_offers %}
<div class="bg-white p-6 rounded-lg shadow flex justify-between items-center">
<div class="flex items-center space-x-4">
<div class="text-gray-500 text-sm">
10 min ago
</div>
<div class="text-gray-500 text-sm">{{ offer.time_ago }}</div>
<div>
<h3 class="text-lg font-bold">
Forward Security Director
</h3>
<p class="text-gray-600">
Bauch, Schuppe and Schulist Co
</p>
<h3 class="text-lg font-bold">{{ offer.title }}</h3>
<p class="text-gray-600">{{ offer.company }}</p>
<div class="flex items-center space-x-2 text-gray-500 text-sm mt-2">
<span class="flex items-center">
<i class="fas fa-briefcase mr-1">
</i>
Hotels &amp; Tourism
<i class="fas fa-briefcase mr-1"></i> {{ offer.category }}
</span>
<span class="flex items-center">
<i class="fas fa-clock mr-1">
</i>
Full time
<i class="fas fa-clock mr-1"></i> {{ offer.type }}
</span>
<span class="flex items-center">
<i class="fas fa-dollar-sign mr-1">
</i>
$40000-$42000
<i class="fas fa-dollar-sign mr-1"></i> {{ offer.salary }}
</span>
<span class="flex items-center">
<i class="fas fa-map-marker-alt mr-1">
</i>
New York, USA
<i class="fas fa-map-marker-alt mr-1"></i> {{ offer.location }}
</span>
</div>
</div>
</div>
<button class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded">
Détails de l'offre
</button>
<button class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded">Détails de l'offre</button>
</div>
<div class="bg-white p-6 rounded-lg shadow flex justify-between items-center">
<div class="flex items-center space-x-4">
<div class="text-gray-500 text-sm">
12 min ago
{% endfor %}#}
</div>
<div>
<h3 class="text-lg font-bold">
Regional Creative Facilitator
</h3>
<p class="text-gray-600">
Wisozk - Becker Co
</p>
<div class="flex items-center space-x-2 text-gray-500 text-sm mt-2">
<span class="flex items-center">
<i class="fas fa-briefcase mr-1">
</i>
Media
</span>
<span class="flex items-center">
<i class="fas fa-clock mr-1">
</i>
Part time
</span>
<span class="flex items-center">
<i class="fas fa-dollar-sign mr-1">
</i>
$28000-$32000
</span>
<span class="flex items-center">
<i class="fas fa-map-marker-alt mr-1">
</i>
Los Angeles, USA
</span>
</div>
</div>
</div>
<button class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded">
Détails de l'offre
</button>
</div>
<div class="bg-white p-6 rounded-lg shadow flex justify-between items-center">
<div class="flex items-center space-x-4">
<div class="text-gray-500 text-sm">
15 min ago
</div>
<div>
<h3 class="text-lg font-bold">
Internal Integration Planner
</h3>
<p class="text-gray-600">
Metz, Quigley and Feest Inc.
</p>
<div class="flex items-center space-x-2 text-gray-500 text-sm mt-2">
<span class="flex items-center">
<i class="fas fa-briefcase mr-1">
</i>
Construction
</span>
<span class="flex items-center">
<i class="fas fa-clock mr-1">
</i>
Full time
</span>
<span class="flex items-center">
<i class="fas fa-dollar-sign mr-1">
</i>
$48000-$50000
</span>
<span class="flex items-center">
<i class="fas fa-map-marker-alt mr-1">
</i>
Texas, USA
</span>
</div>
</div>
</div>
<button class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded">
Détails de l'offre
</button>
</div>
<div class="bg-white p-6 rounded-lg shadow flex justify-between items-center">
<div class="flex items-center space-x-4">
<div class="text-gray-500 text-sm">
26 min ago
</div>
<div>
<h3 class="text-lg font-bold">
District Intranet Director
</h3>
<p class="text-gray-600">
VonRueden - Weber Co
</p>
<div class="flex items-center space-x-2 text-gray-500 text-sm mt-2">
<span class="flex items-center">
<i class="fas fa-briefcase mr-1">
</i>
Commerce
</span>
<span class="flex items-center">
<i class="fas fa-clock mr-1">
</i>
Full time
</span>
<span class="flex items-center">
<i class="fas fa-dollar-sign mr-1">
</i>
$42000-$46000
</span>
<span class="flex items-center">
<i class="fas fa-map-marker-alt mr-1">
</i>
Florida, USA
</span>
</div>
</div>
</div>
<button class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded">
Détails de l'offre
</button>
</div>
<div class="bg-white p-6 rounded-lg shadow flex justify-between items-center">
<div class="flex items-center space-x-4">
<div class="text-gray-500 text-sm">
26 min ago
</div>
<div>
<h3 class="text-lg font-bold">
Corporate Tactics Facilitator
</h3>
<p class="text-gray-600">
Cormier, Turner and Bailey Inc
</p>
<div class="flex items-center space-x-2 text-gray-500 text-sm mt-2">
<span class="flex items-center">
<i class="fas fa-briefcase mr-1">
</i>
Commerce
</span>
<span class="flex items-center">
<i class="fas fa-clock mr-1">
</i>
Full time
</span>
<span class="flex items-center">
<i class="fas fa-dollar-sign mr-1">
</i>
$38000-$40000
</span>
<span class="flex items-center">
<i class="fas fa-map-marker-alt mr-1">
</i>
Boston, USA
</span>
</div>
</div>
</div>
<button class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded">
Détails de l'offre
</button>
</div>
</div>
</section>
</body>
</html>
</section>
{% endblock %}

View File

@ -3,20 +3,53 @@
{% block title %}Inscription{% endblock %}
{% block body %}
<h1>Inscription</h1>
<div class="bg-gray-100 flex items-center justify-center min-h-screen">
<div class="bg-white p-8 rounded-lg shadow-md w-full max-w-md">
<h2 class="text-2xl font-bold text-center mb-2">Inscription</h2>
<p class="text-center text-gray-600 mb-6">
Déjà inscrit ? <a href="{{ path('app_login') }}" class="text-teal-600 hover:underline">Connectez-vous ici</a>
</p>
{{ form_errors(registrationForm) }}
{{ form_start(registrationForm, { 'attr': { 'class': 'space-y-4' } }) }}
{{ form_start(registrationForm) }}
{{ form_row(registrationForm.nickname) }}
{{ form_row(registrationForm.firstname) }}
{{ form_row(registrationForm.lastname) }}
{{ form_row(registrationForm.mail) }}
{{ form_row(registrationForm.plainPassword, {
label: 'Password'
}) }}
{# {{ form_row(registrationForm.agreeTerms) }}#}
<div class="mb-4">
{{ form_label(registrationForm.nickname, 'Pseudo', {'label_attr': {'class': 'block text-gray-700 mb-2'}}) }}
{{ form_widget(registrationForm.nickname, {'attr': {'class': 'w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }}
{{ form_errors(registrationForm.nickname) }}
</div>
<div class="mb-4">
{{ form_label(registrationForm.firstname, 'Prénom', {'label_attr': {'class': 'block text-gray-700 mb-2'}}) }}
{{ form_widget(registrationForm.firstname, {'attr': {'class': 'w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }}
{{ form_errors(registrationForm.firstname) }}
</div>
<div class="mb-4">
{{ form_label(registrationForm.lastname, 'Nom', {'label_attr': {'class': 'block text-gray-700 mb-2'}}) }}
{{ form_widget(registrationForm.lastname, {'attr': {'class': 'w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }}
{{ form_errors(registrationForm.lastname) }}
</div>
<div class="mb-4">
{{ form_label(registrationForm.mail, 'Adresse email', {'label_attr': {'class': 'block text-gray-700 mb-2'}}) }}
{{ form_widget(registrationForm.mail, {'attr': {'class': 'w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }}
{{ form_errors(registrationForm.mail) }}
</div>
<div class="mb-4">
{{ form_label(registrationForm.plainPassword, 'Mot de passe', {'label_attr': {'class': 'block text-gray-700 mb-2'}}) }}
{{ form_widget(registrationForm.plainPassword, {'attr': {'class': 'w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }}
{{ form_errors(registrationForm.plainPassword) }}
</div>
<div class="text-center">
<button type="submit" class="bg-teal-600 text-white px-6 py-2 rounded-lg w-full hover:bg-teal-700 focus:outline-none focus:ring-2 focus:ring-teal-500">
S'inscrire
</button>
</div>
<button type="submit" class="btn">S'inscrire</button>
{{ form_end(registrationForm) }}
</div>
</div>
{% endblock %}