Give the public homepage a themed breach-alert hero and add a /briefing page with the full mission narrative, both linking into the existing game dashboard flow.
26 lines
638 B
PHP
26 lines
638 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Website\Controller;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use Symfony\Component\Routing\Annotation\Route;
|
|
|
|
final class HomeController extends AbstractController
|
|
{
|
|
#[Route(path: '', name: 'website_home')]
|
|
public function index(): Response
|
|
{
|
|
return $this->render(
|
|
'website/home/index.html.twig');
|
|
}
|
|
|
|
#[Route(path: '/briefing', name: 'website_intro')]
|
|
public function intro(): Response
|
|
{
|
|
return $this->render(
|
|
'website/home/intro.html.twig');
|
|
}
|
|
}
|