diff --git a/src/Controller/HomeController.php b/src/Controller/HomeController.php index 45d9790..97b4634 100644 --- a/src/Controller/HomeController.php +++ b/src/Controller/HomeController.php @@ -13,7 +13,19 @@ final class HomeController extends AbstractController #[Route(path: '/', name: 'home')] public function __invoke(): Response { - // TODO: show a list of all components. - return $this->render('home.html.twig'); + // TODO: make this list dynamic. + $components = [ + ['Logo', 'logo'], + ['Page header', 'page-header'], + ['Footer link', 'footer-link'], + ['Footer', 'footer'], + ]; + + return $this->render( + view: 'home.html.twig', + parameters: [ + 'components' => $components, + ] + ); } } diff --git a/templates/home.html.twig b/templates/home.html.twig index 2fd89ce..541f79b 100644 --- a/templates/home.html.twig +++ b/templates/home.html.twig @@ -1 +1,9 @@ -Home +