pages: home, login, signup, signin, add are almost done

This commit is contained in:
2023-11-16 00:46:49 +01:00
parent e8fe008117
commit ea34fa8eb4
8 changed files with 88 additions and 44 deletions

View File

@ -1,20 +1,3 @@
<section class="card-wrapper f-center" style="">
<?php
for ($i=0; $i < 8; $i++) {
?>
<div class="card card-beer f-col">
<img width="200px" id="<?= $i ?>" src="https://live.staticflickr.com/65535/49818361653_351771faae_h.jpg" alt="beer image">
<h2>Beer Name</h2>
<p>12 Degree</p>
</div>
<?php
} ?>
<script>
qSA(".card-beer").forEach(el => {
el.addEventListener("click", (e) => {
window.location.href = "/beer/" + el.querySelector("img").id
})
});
</script>
</section>
<h1>Welcome to DeguApp!</h1>
<br>
<p style="text-align: center">Please Log in</p>