diff --git a/public/images/fond_site.png b/public/images/fond_site.png new file mode 100644 index 0000000..f26fa80 Binary files /dev/null and b/public/images/fond_site.png differ diff --git a/src/Controller/IndexController.php b/src/Controller/IndexController.php index 0bc7e55..c1ad21b 100644 --- a/src/Controller/IndexController.php +++ b/src/Controller/IndexController.php @@ -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', []); } } \ No newline at end of file diff --git a/templates/base.html.twig b/templates/base.html.twig index 3cda30f..ff7d2bf 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -1,17 +1,47 @@ - - - - {% block title %}Welcome!{% endblock %} - - {% block stylesheets %} - {% endblock %} + + + + + {% block title %}Job Portal{% endblock %} - {% block javascripts %} - {% block importmap %}{{ importmap('app') }}{% endblock %} - {% endblock %} - - - {% block body %}{% endblock %} - + {# Tailwind CSS CDN #} + + + {# FontAwesome & Google Fonts #} + + + + + + +
+
+
+ + HegreSphere +
+ +
+ + Profil + +
+
+
+ +{# Block for the specific page content #} +
+ {% block content %}{% endblock %} +
+ diff --git a/templates/index/index.html.twig b/templates/index/index.html.twig index 08175d5..9862b31 100644 --- a/templates/index/index.html.twig +++ b/templates/index/index.html.twig @@ -1,297 +1,76 @@ - - - - - - Job Portal - - - - - - - -
-
-
- - HegreSphere -
- -
- - Profil - -
-
-
+{% extends 'base.html.twig' %} -
+{% block title %}Accueil - Job Portal{% endblock %} +{% block content %} +
+
+

Trouvez votre stage de rêve !

+

Connectez les talents aux opportunités : votre clé vers le succès professionnel

+
+
+ + + + +
+
+
+
+ +

+850 Stages

+
+
+ +

1500 Candidats

+
+
+ +

+500 Entreprises

+
+
+
+
-
-

- Trouvez votre stage de rêve ! -

-

- Connectez les talents aux opportunités : votre clé vers le succès professionnel -

-
-
- - - - -
+
+
+

Propositions de stages

+ Voir tout
-
-
- - -

- +850 Stages -

-
-
- - -

- 1500 Candidats -

-
-
- - -

- +500 Entreprises -

-
-
-
-
-
-
-

- Propositions de stages récentes -

- - Voir tout - -
-
-
-
-
- 10 min ago -
-
-

- Forward Security Director -

-

- Bauch, Schuppe and Schulist Co -

-
- - - - Hotels & Tourism - - - - - Full time - - - - - $40000-$42000 - - - - - New York, USA - +
+ {# Loop over recent offers (replace with dynamic data) + {% for offer in recent_offers %} +
+
+
{{ offer.time_ago }}
+
+

{{ offer.title }}

+

{{ offer.company }}

+
+ + {{ offer.category }} + + + {{ offer.type }} + + + {{ offer.salary }} + + + {{ offer.location }} + +
+
+
-
- + {% endfor %}#}
-
-
-
- 12 min ago -
-
-

- Regional Creative Facilitator -

-

- Wisozk - Becker Co -

-
- - - - Media - - - - - Part time - - - - - $28000-$32000 - - - - - Los Angeles, USA - -
-
-
- -
-
-
-
- 15 min ago -
-
-

- Internal Integration Planner -

-

- Metz, Quigley and Feest Inc. -

-
- - - - Construction - - - - - Full time - - - - - $48000-$50000 - - - - - Texas, USA - -
-
-
- -
-
-
-
- 26 min ago -
-
-

- District Intranet Director -

-

- VonRueden - Weber Co -

-
- - - - Commerce - - - - - Full time - - - - - $42000-$46000 - - - - - Florida, USA - -
-
-
- -
-
-
-
- 26 min ago -
-
-

- Corporate Tactics Facilitator -

-

- Cormier, Turner and Bailey Inc -

-
- - - - Commerce - - - - - Full time - - - - - $38000-$40000 - - - - - Boston, USA - -
-
-
- -
-
-
- - \ No newline at end of file + +{% endblock %} diff --git a/templates/registration/register.html.twig b/templates/registration/register.html.twig index 38c6dc9..07ac084 100644 --- a/templates/registration/register.html.twig +++ b/templates/registration/register.html.twig @@ -3,20 +3,53 @@ {% block title %}Inscription{% endblock %} {% block body %} -

Inscription

+
+
+

Inscription

+

+ Déjà inscrit ? Connectez-vous ici +

- {{ 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) }}#} +
+ {{ 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) }} +
- - {{ form_end(registrationForm) }} +
+ {{ 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) }} +
+ +
+ {{ 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) }} +
+ +
+ {{ 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) }} +
+ +
+ {{ 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) }} +
+ +
+ +
+ + {{ form_end(registrationForm) }} +
+
{% endblock %} +