加入作者页抖音直链
This commit is contained in:
@@ -5,6 +5,7 @@ import BackButton from "@/app/components/BackButton";
|
|||||||
import { FeedItem } from "@/app/types/feed";
|
import { FeedItem } from "@/app/types/feed";
|
||||||
import { notFound } from "next/navigation";
|
import { notFound } from "next/navigation";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
|
import { ExternalLink } from "lucide-react";
|
||||||
|
|
||||||
export default async function AuthorPage({
|
export default async function AuthorPage({
|
||||||
params,
|
params,
|
||||||
@@ -106,6 +107,15 @@ export default async function AuthorPage({
|
|||||||
<p className="text-sm text-gray-500 dark:text-gray-400 mt-1">
|
<p className="text-sm text-gray-500 dark:text-gray-400 mt-1">
|
||||||
抖音号:{author.unique_id || author.short_id || "未知"}
|
抖音号:{author.unique_id || author.short_id || "未知"}
|
||||||
</p>
|
</p>
|
||||||
|
<a
|
||||||
|
href={`https://www.douyin.com/user/${encodeURIComponent(secUid)}`}
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="inline-flex items-center gap-1.5 mt-3 text-sm text-gray-600 hover:text-black dark:text-gray-400 dark:hover:text-white underline underline-offset-4"
|
||||||
|
>
|
||||||
|
打开抖音主页
|
||||||
|
<ExternalLink size={14} aria-hidden="true" />
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{author.signature && (
|
{author.signature && (
|
||||||
|
|||||||
Reference in New Issue
Block a user