remove unnecessary pages and files that came with the Vike init

This commit is contained in:
Avraham Sakal
2025-08-27 07:40:37 -04:00
parent 18411402f5
commit b11c34b660
14 changed files with 2 additions and 277 deletions
+1 -10
View File
@@ -1,20 +1,11 @@
import { Counter } from "./Counter.js";
export default function Page() {
return (
<>
<h1
css={{ fontWeight: "700", fontSize: "1.875rem", paddingBottom: "1rem" }}
>
My Vike app
Token-Efficient Context Engineering
</h1>
This page is:
<ul>
<li>Rendered to HTML.</li>
<li>
Interactive. <Counter />
</li>
</ul>
</>
);
}
-25
View File
@@ -1,25 +0,0 @@
import { useState } from "react";
export function Counter() {
const [count, setCount] = useState(0);
return (
<button
type="button"
css={{
display: "inline-block",
border: "1px solid black",
borderRadius: "0.25rem",
backgroundColor: "#e5e7eb",
padding: "4px 8px 4px 8px",
fontSize: "0.75rem",
fontWeight: "500",
textTransform: "uppercase",
lineHeight: "1.5",
}}
onClick={() => setCount((count) => count + 1)}
>
Counter {count}
</button>
);
}