First page
This is the first page!
Today I added a blog with @nuxt/content!
It's just an experiment for now, but I hope it will get a cool use-case in the future, like writing blog articles.
Rendering
It can even render cool codeblocks!
typescript
file.tsconst name: string = "This is a name"
interface Props<T> {
id: T;
}
function Component({ id }: Props<number>): number{
return id
}
php
<?php
include "./inc/head.php";
?>
<body>
<div class="position-absolute top-0 end-0 p-1">
<a href="/admin/" data-mdb-ripple-init class="btn btn-secondary">
<i class="fas fa-cogs fa-lg"></i>
</a>
</div>
<div class="row w-100 vh-100">
<div class="col products px-4 py-2 d-flex flex-wrap gap-5"></div>
<div class="vr p-0"></div>
<div class="col d-flex flex-column">
<div class="h-50">
2
</div>
<div class="h-50 border-top d-flex p-2 flex-wrap gap-5">
<?php foreach ($pdo->query("SELECT * FROM category") as $row) : ?>
<button data-fetch-products="<?= $row['ID'] ?>" class="btn btn-<?= $row['color'] ?> btn-lg flex-fill" data-mdb-ripple-init>
<h1><?= $row['name'] ?></h1>
</button>
<?php endforeach ?>
</div>
</div>
</div>
<?php include './inc/foot.php' ?>
<script src="./app.js"></script>
</body>
</html>