dark mode and light mode support
This commit is contained in:
@@ -22,17 +22,19 @@ export const PostHeader = ({
|
||||
return (
|
||||
<div>
|
||||
<div className="lg:text-5xl text-3xl font-bold mt-2">{title}</div>
|
||||
<div className="mt-2 text-gray-400">{description}</div>
|
||||
<div className="mt-2 mb-10 flex lg:flex-row flex-col gap-2 xl:items-center">
|
||||
<div className="mt-2 text-gray-600dark:text-gray-400">{description}</div>
|
||||
<div className="mt-2 mb-10 flex lg:flex-row flex-col gap-2 items-center">
|
||||
{author && (
|
||||
<div className="font-medium ">
|
||||
By{" "}
|
||||
{authorLink && (
|
||||
<Link href={authorLink} className="text-action">
|
||||
<Link href={authorLink} className="dark:text-action text-primary">
|
||||
@{author}
|
||||
</Link>
|
||||
)}
|
||||
{!authorLink && <span className="text-action">@{author}</span>}
|
||||
{!authorLink && (
|
||||
<span className="dark:text-action text-primary">@{author}</span>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
<div className="text-sm font-medium text-gray-500 lg:before:content-['•'] lg:after:content-['•'] lg:before:pr-2 lg:after:pl-2">
|
||||
|
||||
Reference in New Issue
Block a user