mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
fix(blog) fix style
This commit is contained in:
3 files changed
+7
-7
No files matched your search
+1
-1
@@ -6,7 +6,7 @@ function Layout({
|
|||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<div className={ 'flex flex-auto p-7 items-stretch justify-center' }>
|
<div className={ 'flex flex-auto p-7 pl-2 md:pl-7 items-stretch justify-center' }>
|
||||||
{ children }
|
{ children }
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -35,10 +35,10 @@ async function Generate(props: Props) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Card className={ `w-full` }>
|
<Card className={ `w-full max-w-full relative` }>
|
||||||
<CardBody>
|
<CardBody>
|
||||||
<Markdown
|
<Markdown
|
||||||
className={ `p-5 max-w-prose text-justify text-pretty会 prose prose-sm dark:prose-invert md:prose-md lg:prose-lg` }
|
className={ `p-5 max-w-full text-justify text-pretty会 prose prose-sm dark:prose-invert md:prose-md lg:prose-lg` }
|
||||||
remarkPlugins={ [ remarkGfm, remarkToc, remarkFrontmatter ] }
|
remarkPlugins={ [ remarkGfm, remarkToc, remarkFrontmatter ] }
|
||||||
rehypePlugins={ [ rehypeHighlight, rehypeRaw, rehypeSanitize ] }
|
rehypePlugins={ [ rehypeHighlight, rehypeRaw, rehypeSanitize ] }
|
||||||
>{ (post_data as any)['content'] }</Markdown>
|
>{ (post_data as any)['content'] }</Markdown>
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ function Navbar() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div
|
<div
|
||||||
className={ `flex flex-col w-auto md:w-full min-w-[50px] max-w-[256px] mr-2 ml-8 min-h-screen max-h-screen pt-8 sticky` }>
|
className={ `flex flex-col w-auto md:w-full min-w-[50px] max-w-[256px] mr-0 md:mr-2 ml-2 md:ml-8 min-h-dvh pt-8 sticky` }>
|
||||||
<div className={ `fixed min-h-screen h-full` }>
|
<div className={ `fixed min-h-screen h-full` }>
|
||||||
<div className={ `hidden md:block` }>
|
<div className={ `hidden md:block` }>
|
||||||
<div className={ `flex justify-center items-center my-7` }>
|
<div className={ `flex justify-center items-center my-7` }>
|
||||||
@@ -153,7 +153,7 @@ function Navbar() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className={ `mt-8 ml-0 md:-ml-3` }>
|
className={ `flex justify-center md:justify-start mt-8 ml-0 md:-ml-3` }>
|
||||||
<ul className={ `flex flex-col space-y-2` }>
|
<ul className={ `flex flex-col space-y-2` }>
|
||||||
{
|
{
|
||||||
entries.map((meta, key) => (
|
entries.map((meta, key) => (
|
||||||
@@ -176,8 +176,8 @@ function Navbar() {
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={ `mt-8 md:hidden` }>
|
<div className={ `mt-8 flex md:hidden justify-center w-full` }>
|
||||||
<p className={ `sideways-lr font-bold text-2xl text-zinc-500 dark:text-zinc-400` }>
|
<p className={ `text-center sideways-lr font-bold text-2xl text-zinc-500 dark:text-zinc-400` }>
|
||||||
{ shownPath }
|
{ shownPath }
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user