Browse Source

Header

imwald
Nuša Pukšič 1 year ago
parent
commit
2e9502983a
  1. 16
      src/Twig/Components/Header.php
  2. 2
      templates/base.html.twig
  3. 3
      templates/components/Header.html.twig

16
src/Twig/Components/Header.php

@ -0,0 +1,16 @@ @@ -0,0 +1,16 @@
<?php
declare(strict_types=1);
namespace App\Twig\Components;
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
#[AsTwigComponent]
class Header
{
public function __construct()
{
}
}

2
templates/base.html.twig

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
</head>
<body>
<header>
{# header component #}
<twig:Header />
</header>
<div class="layout">

3
templates/components/Header.html.twig

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
<header class="header">
<div class="header__logo"><h1><a href="/">No News Journal</a></h1></div>
</header>
Loading…
Cancel
Save