added blog post page, reverted back to flex blog landing, added types

This commit is contained in:
2025-02-25 13:22:45 -05:00
parent addb2e55d9
commit c4e11c2e02
11 changed files with 75 additions and 34 deletions

View File

@ -1,6 +1,6 @@
import { FreshContext, Handlers, PageProps } from "$fresh/server.ts";
import AuthorCard from "../../components/AuthorCard.tsx";
import { Post } from "../../components/PostCard.tsx";
import { Post } from "../../types/index.ts";
import { PostCarousel } from "../../components/PostCarousel.tsx";
export const handler: Handlers<PageData> = {

View File

@ -6,7 +6,7 @@ export default function Home() {
<div class="min-w-screen flex flex-col items-center justify-between bg-[#313244] sm:min-h-screen">
<div class="sm:mt-14 sm:mb-14 mt-12 mb-4 flex flex-col items-center gap-y-5 gap-x-10 md:flex-row">
<PhotoCircle
src="https://websites.us-east-1.linodeobjects.com/IMG_1480-min.png"
src="https://wyattjmiller.us-ord-1.linodeobjects.com/IMG_1480-min.png"
alt="Wyatt's profile photo"
/>
<div class="space-y-2 text-center md:text-left">

View File

@ -1,4 +1,6 @@
import { FreshContext, Handlers, PageProps } from "$fresh/server.ts";
import { PostHeader } from "../../components/PostHeader.tsx";
import { PostBody } from "../../components/PostBody.tsx";
interface PageData {
post_id: number;
@ -24,5 +26,13 @@ export const handler: Handlers<PageData> = {
};
export default function PostIdentifier({ data }: PageProps<PageData>) {
return <div className=""></div>;
const { postData } = data;
console.log(postData);
return (
<div>
<PostHeader post={postData} />
<PostBody post={postData} />
</div>
);
}

View File

@ -1,7 +1,7 @@
import { PostCarousel } from "../../components/PostCarousel.tsx";
import { Handlers, PageProps } from "$fresh/server.ts";
import { Post } from "../../components/PostCard.tsx";
import { Post } from "../../types/index.ts";
import * as hi from "jsr:@preact-icons/hi2";
interface PageData {