Améloration de la structure du code

This commit is contained in:
Yasder5 2026-01-14 20:52:19 +01:00
parent 5218b016f4
commit fc234e4438
8 changed files with 320 additions and 31 deletions

17
app/views/home.php Normal file
View file

@ -0,0 +1,17 @@
<section class="container mt-5 p-5 d-flex flex-column align-items-center text-center">
<h1 class="logo">Folliow</h1>
<h2> les talents rencontrent leur avenir</h2>
<p class="col-6">Une plateforme de portfolio adapté à vos besoins et aux besoins des entreprises.
Créer un portfolio réellement pertinent aux exigences du marché et rentrez
directement en contact avec les entreprises.</p>
</section>
<section aria-label="Articles récents">
<h2 class="visually-hidden">Les 4 derniers articles</h2>
<div class="row mb-2">
<?php
foreach($arrProjectToDiplay as $objProject){
include("../app/views/partials/project.php");
}
?>
</section>

View file

@ -1,5 +1,6 @@
<?php
session_start();
?>
<!DOCTYPE html>

View file

@ -0,0 +1,19 @@
<article class="col-md-6 mb-4">
<div class="row g-0 border rounded overflow-hidden flex-md-row shadow-sm h-md-250 position-relative">
<div class="col p-4 d-flex flex-column position-static">
<h3 class="mb-2"><?php echo $objProject->getTitle(); ?></h3>
<div class="mb-2 text-body-secondary">
<time datetime="2017-05-11"><?php echo $objProject->getCreation_date(); ?></time>
<span> - <?php echo $objProject->getCreatorname(); ?></span>
</div>
<p class="mb-auto"><?php echo $objProject->getDescription(); ?></p>
<a href="article-javascript.html" class="icon-link gap-1 icon-link-hover stretched-link" aria-label="Lire l'article complet sur le devenir du JavaScript">
Lire la suite
<i class="fas fa-arrow-right" aria-hidden="true"></i>
</a>
</div>
<div class="col-auto d-none d-lg-block">
<img class="bd-placeholder-img" width="200" height="250" src="<?php echo $objProject->getThumbnail(); ?>" alt="" loading="lazy">
</div>
</div>
</article>