This commit is contained in:
longdayi 2025-01-26 10:49:23 +08:00
parent 06cec01b74
commit ce128ae647
9 changed files with 15 additions and 25 deletions

View File

@ -4,7 +4,7 @@ import { useParams } from "react-router-dom";
export default function LetterDetailPage() {
const { id } = useParams();
return <div className="shadow-elegant border-2 border-white rounded-xl bg-gradient-to-b from-slate-100 to-slate-50">
return <div className="shadow-elegant border-2 border-white rounded-xl bg-slate-200">
<PostDetail id={id}></PostDetail>
</div>;

View File

@ -62,8 +62,7 @@ export function Header() {
{/* 服务宗旨说明 */}
<div className="text-sm text-blue-100 border-t border-blue-400/30 pt-4">
<p className="leading-relaxed">
广
</p>
</div>
</div>

View File

@ -105,7 +105,7 @@ export function LetterCard({ letter }: LetterCardProps) {
shape="round"
icon={<EyeOutlined />}
>
{letter.views}
<span className="mr-1"></span>{letter.views}
</Button>
<PostLikeButton post={letter as any}></PostLikeButton>
</div>

View File

@ -6,7 +6,7 @@ import { Avatar } from "antd";
import { useVisitor } from "@nice/client";
import { useContext, useEffect, useRef, useState } from "react";
import { PostDetailContext } from "./context/PostDetailContext";
import { CheckCircleOutlined, LikeFilled, LikeOutlined } from "@ant-design/icons";
import { CheckCircleOutlined, CheckOutlined, LikeFilled, LikeOutlined } from "@ant-design/icons";
import PostLikeButton from "./PostHeader/PostLikeButton";
import { CustomAvatar } from "@web/src/components/presentation/CustomAvatar";
import PostResources from "./PostResources";
@ -22,11 +22,7 @@ export default function PostCommentCard({
}) {
return (
<motion.div
className={` rounded-xl shadow-sm border p-4 ${
isReceiverComment
? "border-primary border-2 bg-primary-50"
: "border-slate-200 bg-white"
}`}
className={` rounded-xl border p-6 bg-slate-100 border-white ring-white hover:ring-1 transition-all duration-300 ease-in-out`}
layout>
<div className="flex items-start space-x-2 gap-2">
<div className="flex-shrink-0">
@ -49,7 +45,8 @@ export default function PostCommentCard({
)}
</span>
{isReceiverComment && (
<span className=" text-sm text-primary font-bold">
<span className=" text-sm text-primary flex gap-2 font-bold">
<CheckOutlined></CheckOutlined>
</span>
)}

View File

@ -56,7 +56,7 @@ export default function PostCommentEditor() {
<form onSubmit={handleSubmit} className="space-y-2">
<Tabs defaultActiveKey="1">
<TabPane tab="回复" key="1">
<div className="relative rounded-lg border bg-white">
<div className="relative rounded-xl border border-white hover:ring-1 ring-white transition-all duration-300 ease-in-out bg-slate-100">
<QuillEditor
value={content}
onChange={setContent}

View File

@ -20,7 +20,7 @@ export default function Content() {
return (
<div className="p-6 text-base " >
<div className="text-secondary-700 bg-white rounded-lg p-6 ">
<div className="text-secondary-700 bg-slate-100 border border-white hover:ring-1 ring-white transition-all duration-300 ease-in-out rounded-xl p-6 ">
{/* 包装整个内容区域的容器 */}
<div
ref={contentWrapperRef}

View File

@ -26,14 +26,7 @@ export default function Header() {
</h1>
</div>
<div className="space-y-1">
<Space className="mr-4">
<SendOutlined className="text-white" />
<span className="text-white">:</span>
<Text className="text-white" strong>
{post?.author?.showname || "匿名用户"}
</Text>
</Space>
{/* 收件人信息行 */}
<Space className="mr-4">
<span className="text-white"></span>
@ -57,7 +50,7 @@ export default function Header() {
{/* Date Info Badge */}
<Space className="mr-4">
<CalendarOutlined className="text-white" />
<span className="text-white"></span>
<Text className="text-white">

View File

@ -42,6 +42,7 @@ export default function PostLikeButton({ post }: { post: PostDto }) {
likeThisPost()
}}
>
<span className="mr-1"></span>
{post?.likes}
</Button>

View File

@ -21,10 +21,10 @@ export function StatsSection() {
<PostResources post={post} />
<div className=" flex gap-2">
<Button title="浏览量" type="default" shape="round" icon={<EyeOutlined />}>
{post?.views}
<span className="mr-1"></span>{post?.views}
</Button>
<Button type="default" title="评论数" shape="round" icon={<CommentOutlined />}>
{post?.commentsCount}
<Button type="default" title="回复数" shape="round" icon={<CommentOutlined />}>
<span className="mr-1"></span>{post?.commentsCount}
</Button>
<PostLikeButton post={post}></PostLikeButton>
</div>