Part on Useful names and conventions finished

This commit is contained in:
Patryk Hegenberg 2022-12-20 21:35:05 +01:00
parent 20aee0812f
commit d907e90218
7 changed files with 18 additions and 18 deletions

View file

@ -0,0 +1,20 @@
<?php require ('views/partials/head.php') ?>
<?php require ('views/partials/nav.php') ?>
<?php require ('views/partials/banner.php') ?>
<main>
<div class="mx-auto max-w-7xl py-6 sm:px-6 lg:px-8">
<ul>
<?php foreach ($notes as $note) : ?>
<li>
<a href="/note?id=<?= $note['id'] ?>" class="text-blue-500 hover:underline">
<?= htmlspecialchars($note['body']) ?>
</a>
</li>
<?php endforeach; ?>
</ul>
<p class="mt-6">
<a href="/notes/create" class="text-blue-500 hover:underline">Create Note</a>
</p>
</div>
</main>
<?php require ('views/partials/footer.php') ?>