Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions src/app/[username]/(profile-page)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,7 @@ const layout: React.FC<ProfilePageLayoutProps> = async ({

return (
<BaseLayout>
{/* <pre>
{JSON.stringify(
{ currentPath: sanitizedUsername(currentPath!), username },
null,
2
)}
</pre> */}
{/* <pre>{JSON.stringify({ profile }, null, 2)}</pre> */}
<div className="wrapper">
<div className="grid grid-cols-1 gap-6 my-2 lg:my-6 md:grid-cols-12 lg:gap-10">
<aside className="md:col-span-3 col-span-full">
Expand Down
3 changes: 2 additions & 1 deletion src/app/[username]/(profile-page)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { getUserByUsername } from "@/backend/services/user.action";
import _t from "@/i18n/_t";
import { markdocParser } from "@/lib/markdown/markdoc-parser";
import Markdown from "@/lib/markdown/Markdown";
import Image from "next/image";
import React from "react";

Expand All @@ -19,7 +20,7 @@ const UserProfilePage: React.FC<UserProfilePageProps> = async ({ params }) => {
<main className="border rounded-bl-2xl rounded-br-2xl md:col-span-9 col-span-full">
{profile?.profile_readme ? (
<div className="p-3 content-typography">
{markdocParser(profile?.profile_readme ?? "")}
<Markdown content={profile?.profile_readme} />
</div>
) : (
<div className="py-10 flex flex-col items-center justify-center gap-4">
Expand Down
2 changes: 1 addition & 1 deletion src/styles/_content-typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@apply prose-h4:text-base;

iframe {
@apply w-full aspect-[16/9];
@apply w-full aspect-video;
}

.table-of-contents {
Expand Down
Loading