Skip to content

Commit 8b38fdc

Browse files
committed
chore(blog): update layout
1 parent 7cb4a4b commit 8b38fdc

File tree

7 files changed

+24
-16
lines changed

7 files changed

+24
-16
lines changed

core/server/mod.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,13 @@ if (root) fetchProps(root);
653653
port: options && options.port ? options.port : 8000,
654654
handler: this.#handler,
655655
signal: this.#ac.signal,
656-
onListen: options && options.onListen ? options.onListen : undefined,
656+
onListen: options && options.onListen ? options.onListen : () => {
657+
console.log(
658+
`%cListening on: %chttp://localhost:${options?.port ?? 8000}`,
659+
"color: blue",
660+
"color: white",
661+
);
662+
},
657663
});
658664
};
659665

modules/blog/blog.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,22 @@
5050
"date": "11/15/2023"
5151
},
5252
{
53-
"title": "renderToReadableStream",
53+
"title": "Boosting Performance with renderToReadableStream",
5454
"url": "/blog/render_to_readable_stream",
5555
"date": "10/26/2023"
5656
},
5757
{
58-
"title": "React",
58+
"title": "Fixing React Version Consistency Issues",
5959
"url": "/blog/react",
6060
"date": "10/22/2023"
6161
},
6262
{
63-
"title": "Preact",
63+
"title": "Preact Integration and Secure Server Side Props",
6464
"url": "/blog/preact_and_encrypted_props",
6565
"date": "08/16/2023"
6666
},
6767
{
68-
"title": "Hello",
68+
"title": "Hello World",
6969
"url": "/blog/hello",
7070
"date": "11/15/2023"
7171
}

modules/blog/blog.layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export default function (
120120
`}
121121
</style>
122122
</head>
123-
<body class="bg-gray-200 dark:bg-gray-950 text-slate-900 dark:text-white">
123+
<body class="bg-white dark:bg-gray-950 text-slate-900 dark:text-white">
124124
<Header
125125
isLogin={data.isLogin}
126126
avatar_url={data.avatar_url}

modules/toc/toc.page.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ export default function Toc({ data }: PageProps<{ posts: Post[] }>) {
99
{data.posts.map((v) => {
1010
return (
1111
<li>
12-
<a href={v.url} class={`flex space-x-1`}>
12+
<a
13+
href={v.url}
14+
class={`flex items-center space-x-[1px] gap-y-1 gap-x-0`}
15+
>
1316
{v.date && (
1417
<div
15-
class={`min-w-24 text-sm text-gray-800 dark:text-gray-100 items-center`}
18+
class={`min-w-24 text-xs `}
1619
>
1720
<span
18-
class={`border border-gray-400 p-[2px] rounded-md`}
21+
class={`dark:border-gray-400 dark: border-[1px] bg-slate-600 text-gray-100 p-[5px] rounded-sm`}
1922
>
2023
{v.date}
2124
</span>

post/preact_and_encrypted_props.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: "Fastro v0.80.0: Preact and Server Side Props Encryption"
3-
description: "Preact integration and robust encryption of Server Side Props"
2+
title: "Fastro v0.80.0: Preact Integration and Secure Server Side Props"
3+
description: "Switching from React to Preact for faster performance and implementing robust encryption for server-side props"
44
image: https://fastro.deno.dev/fastro.png
55
author: Admin
66
date: 08/16/2023

post/react.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: "Fastro v0.82.0: Back to using React"
2+
title: "Fastro v0.82.0: Fixing React Version Consistency Issues"
33
image: https://fastro.deno.dev/fastro.png
4-
description: "The error in the previous version has been resolved"
4+
description: "Resolving version mismatch between server-side and client-side React components"
55
author: Admin
66
date: 10/22/2023
77
---

post/render_to_readable_stream.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
2-
title: "Fastro v0.83.0: renderToReadableStream"
2+
title: "Fastro v0.83.0: Boosting Performance with renderToReadableStream"
33
image: https://fastro.deno.dev/fastro.png
4-
description: "Use renderToReadableStream to improve the performance of
5-
the page load "
4+
description: "Enhancing page load times by replacing renderToString with streaming React server rendering"
65
author: Admin
76
date: 10/26/2023
87
---

0 commit comments

Comments
 (0)