Skip to content

Commit

Permalink
🔧 change page to blog
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0q committed Jun 13, 2024
1 parent 357cbc5 commit 604db7c
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 5 deletions.
2 changes: 2 additions & 0 deletions fresh.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import * as $_slug_ from "./routes/[slug].tsx";
import * as $_404 from "./routes/_404.tsx";
import * as $_app from "./routes/_app.tsx";
import * as $blog from "./routes/blog.tsx";
import * as $index from "./routes/index.tsx";
import * as $InfiniteCanvas from "./islands/InfiniteCanvas.tsx";
import { type Manifest } from "$fresh/server.ts";
Expand All @@ -14,6 +15,7 @@ const manifest = {
"./routes/[slug].tsx": $_slug_,
"./routes/_404.tsx": $_404,
"./routes/_app.tsx": $_app,
"./routes/blog.tsx": $blog,
"./routes/index.tsx": $index,
},
islands: {
Expand Down
4 changes: 2 additions & 2 deletions islands/InfiniteCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ export default function InfiniteCanvas() {
return (
<div
style={{
height: "100vh",
width: "100vw",
height: "100%",
width: "100%",
position: "relative",
overflow: "hidden",
// TODO: grab https://github.com/ras0q/ras0q.com/blob/1e18f972a885cfc2b96882a1abae9c2ff78cd4bc/src/components/InfiniteCanvas.tsx
Expand Down
4 changes: 2 additions & 2 deletions libs/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export const subRoutes = [
top: 275,
},
{
path: "/contact",
description: "Contact",
path: "/blog",
description: "Blog",
left: 897,
top: 570,
},
Expand Down
31 changes: 31 additions & 0 deletions routes/blog.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { asset, Head } from "$fresh/runtime.ts";
import InfiniteCanvas from "../islands/InfiniteCanvas.tsx";

export default function Blog() {
return (
<>
<Head>
<meta
name="og:title"
content={`Blog | ras0q.com`}
key="title"
/>
<title>Blog | ras0q.com</title>
<link rel="stylesheet" href={asset("/markdown.css")} />
</Head>
<main>
<h1>Blog</h1>
<p>Coming soon...</p>
<div
style={{
width: "80vw",
height: "80vh",
border: "1px solid black",
}}
>
<InfiniteCanvas />
</div>
</main>
</>
);
}
10 changes: 9 additions & 1 deletion routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import InfiniteCanvas from "../islands/InfiniteCanvas.tsx";

export default function Home() {
return <InfiniteCanvas />;
return (
<main
style={{
height: "100vh",
}}
>
<InfiniteCanvas />;
</main>
);
}

0 comments on commit 604db7c

Please sign in to comment.