From 7e2fb03efd047a93649c2dd9c992e123871a00a4 Mon Sep 17 00:00:00 2001 From: xfy Date: Mon, 19 May 2025 16:08:26 +0800 Subject: [PATCH] fix: markdown styles threejs animations --- app/g/[id]/page.tsx | 2 +- app/g/loading.tsx | 8 ++--- app/p/[slug]/page.tsx | 1 - app/page.tsx | 35 +++++++++---------- components/models/cloud-model.tsx | 12 +++---- components/pages/blog/post-card-loading.tsx | 2 +- components/pages/blog/post-card.tsx | 4 +-- components/pages/dark-mode-btn.tsx | 2 +- components/pages/friends/friend-card.tsx | 2 +- .../pages/gists/gists-code-skeleton.tsx | 6 ++-- components/pages/gists/gists-code.tsx | 6 ++-- components/pages/gists/gists-skeleton.tsx | 2 +- components/pages/gists/user-info-skeleton.tsx | 2 +- components/pages/gists/user-info.tsx | 2 +- components/pages/nav-bar.tsx | 6 ++-- components/post/copy-button.tsx | 2 +- components/rua/rua-sandpack.tsx | 4 +-- components/rua/tab/index.tsx | 2 +- 18 files changed, 47 insertions(+), 53 deletions(-) diff --git a/app/g/[id]/page.tsx b/app/g/[id]/page.tsx index f5682bf..3765a08 100644 --- a/app/g/[id]/page.tsx +++ b/app/g/[id]/page.tsx @@ -33,7 +33,7 @@ export default async function Page({ priority width={32} height={32} - className="rounded-lg-full " + className="rounded-full " />

diff --git a/app/g/loading.tsx b/app/g/loading.tsx index 024c1bf..2abf397 100644 --- a/app/g/loading.tsx +++ b/app/g/loading.tsx @@ -7,7 +7,7 @@ const loading = () => {
@@ -21,7 +21,7 @@ const loading = () => {
@@ -29,7 +29,7 @@ const loading = () => {
@@ -40,7 +40,7 @@ const loading = () => {
diff --git a/app/p/[slug]/page.tsx b/app/p/[slug]/page.tsx index 154f928..dbf2d2d 100644 --- a/app/p/[slug]/page.tsx +++ b/app/p/[slug]/page.tsx @@ -11,7 +11,6 @@ import rehypeHighlight from 'rehype-highlight'; import rehypeSlug from 'rehype-slug'; import remarkGfm from 'remark-gfm'; import { Post } from 'types'; -import 'styles/rua.css'; const PostToc = dynamic(() => import('components/post/post-toc')); const PostCommnetLine = dynamic( diff --git a/app/page.tsx b/app/page.tsx index 569ea58..9ee2056 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -12,24 +12,23 @@ export const metadata = { export default function Page() { return (
-
-

- - Hi there - - - hands - -

- -
- -
+
+ + Hello World! + + + hands +
); diff --git a/components/models/cloud-model.tsx b/components/models/cloud-model.tsx index d6974f5..4f27009 100644 --- a/components/models/cloud-model.tsx +++ b/components/models/cloud-model.tsx @@ -27,17 +27,11 @@ const CloudModel = () => { }; const [_, api] = useSpring( { - from: { - z: camera.position.z, - }, + z: camera.position.z, config: { duration: 1200, easing: easings.easeOutCirc, }, - to: { - z: camera.position.z - 5.2, - }, - pause: true, onChange: (e) => { camera.position.z = Number(e.value.z); }, @@ -78,7 +72,9 @@ const CloudModel = () => { window.addEventListener('touchmove', moveHandler); setTimeout(() => { - api.resume(); + api.start({ + z: camera.position.z - 5.2, + }); setDarkMode(); }, 1000); diff --git a/components/pages/blog/post-card-loading.tsx b/components/pages/blog/post-card-loading.tsx index 4bebe59..862dc4e 100644 --- a/components/pages/blog/post-card-loading.tsx +++ b/components/pages/blog/post-card-loading.tsx @@ -5,7 +5,7 @@ const PostCardLoading = () => { return (
{
diff --git a/components/pages/dark-mode-btn.tsx b/components/pages/dark-mode-btn.tsx index 3bc2ab5..f9d23ad 100644 --- a/components/pages/dark-mode-btn.tsx +++ b/components/pages/dark-mode-btn.tsx @@ -42,7 +42,7 @@ const DarkModeBtn = () => {
diff --git a/components/pages/gists/gists-code.tsx b/components/pages/gists/gists-code.tsx index bec0929..dcf056f 100644 --- a/components/pages/gists/gists-code.tsx +++ b/components/pages/gists/gists-code.tsx @@ -47,21 +47,21 @@ const GistsCode = ({ file, showFileName = false }: Props) => { className={clsx( 'box-border inline-block', 'w-[13px] h-[13px] mr-2', - 'rounded-lg-full bg-[#ce5347]', + 'rounded-full bg-[#ce5347]', )} >
diff --git a/components/pages/gists/gists-skeleton.tsx b/components/pages/gists/gists-skeleton.tsx index 9399b53..cd94028 100644 --- a/components/pages/gists/gists-skeleton.tsx +++ b/components/pages/gists/gists-skeleton.tsx @@ -8,7 +8,7 @@ const GistSkeleton = () => {
{
diff --git a/components/pages/gists/user-info.tsx b/components/pages/gists/user-info.tsx index e49aff6..394d92a 100644 --- a/components/pages/gists/user-info.tsx +++ b/components/pages/gists/user-info.tsx @@ -27,7 +27,7 @@ const UserInfo = async () => { src={avatar} alt="Avatar" priority - className="rounded-lg-full" + className="rounded-full" />
diff --git a/components/pages/nav-bar.tsx b/components/pages/nav-bar.tsx index edbcd3b..a669b92 100644 --- a/components/pages/nav-bar.tsx +++ b/components/pages/nav-bar.tsx @@ -90,7 +90,7 @@ const HeadBar = () => { className={clsx( 'font-semibold', 'text-3xl tracking-widest', - 'select-none', + 'select-none font-Lobster', )} > RUA! @@ -106,7 +106,7 @@ const HeadBar = () => {