feat: baselayout

This commit is contained in:
TrèsAbhi committed 2025-12-19 17:55:26 -06:00
1 parent 164b7fa454
commit c1a2edb489
5 files changed
+39 -23

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "blitzkit",
"version": "1.29.7",
"version": "2.0.0-beta.2",
"license": "BlitzKit License",
"private": true,
"scripts": {
@@ -1,6 +1,13 @@
<html>
<head>
<meta charset="utf-8" />
<style>
body {
background-color: black;
filter: invert(1) hue-rotate(180deg);
}
</style>
</head>
<body>
+12 -9
View File
@@ -5,6 +5,7 @@ import {
forEachChild,
isFunctionDeclaration,
} from "typescript";
import BaseLayout from "../../layouts/BaseLayout.astro";
const root = `/src/pages/api`;
const globbed = import.meta.glob("/src/pages/api/**/*.ts", {
@@ -42,13 +43,15 @@ for (const fullPath in globbed) {
paths.sort((a, b) => a.path.localeCompare(b.path));
---
<h1>api</h1>
<BaseLayout>
<h1>api</h1>
{
paths.map(({ path, documentation }) => (
<>
<h2>{path}</h2>
<p>{documentation}</p>
</>
))
}
{
paths.map(({ path, documentation }) => (
<>
<h2>{path}</h2>
<p>{documentation}</p>
</>
))
}
</BaseLayout>
+6 -3
View File
@@ -1,9 +1,12 @@
---
import packageJson from "../../../../package.json";
import BaseLayout from "../layouts/BaseLayout.astro";
---
<h1>blitzkit {packageJson.version}</h1>
<BaseLayout>
<h1>blitzkit {packageJson.version}</h1>
<p><a href="/tanks">/tanks</a></p>
<p><a href="/tanks">/tanks</a></p>
<p><a href="/api">/api</a></p>
<p><a href="/api">/api</a></p>
</BaseLayout>
+13 -10
View File
@@ -1,17 +1,20 @@
---
import { api } from "../../core/api/dynamic";
import BaseLayout from "../../layouts/BaseLayout.astro";
const tanksList = await api.tanks();
---
<h1>tanks</h1>
<BaseLayout>
<h1>tanks</h1>
{
tanksList.tanks.map(({ id, slug }) => (
<p>
<a href={`/tanks/${slug}`}>
{slug} ({id})
</a>
</p>
))
}
{
tanksList.tanks.map(({ id, slug }) => (
<p>
<a href={`/tanks/${slug}`}>
{slug} ({id})
</a>
</p>
))
}
</BaseLayout>