Skip to content

Commit ea143ee

Browse files
committed
🏗️ Cleanup / refactoring
1 parent 247ac4a commit ea143ee

75 files changed

Lines changed: 370 additions & 618 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

www/src/components/common/PrimaryHeader.tsx

Lines changed: 0 additions & 21 deletions
This file was deleted.

www/src/components/experiment/HomeImage.tsx

Lines changed: 0 additions & 10 deletions
This file was deleted.

www/src/components/experiment/QuoteMeaning.tsx

Whitespace-only changes.

www/src/components/experiment/Welcome.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

www/src/components/home/About.tsx

Lines changed: 0 additions & 12 deletions
This file was deleted.

www/src/components/home/Gallery.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ReactElement } from "react";
2-
import ProjectGallery from "@site/src/components/projects/ProjectGallery";
3-
import CustomTag from "@site/src/components/ui/CustomTag";
2+
import ProjectGallery from "@site/src/components/projects/project-gallery";
3+
import CustomTag from "@site/src/components/ui/custom-tag";
44

55
export default function Gallery(): ReactElement {
66
return (

www/src/components/home/Hobbies.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ import skatingPreview from "@site/static/images/skating.webp";
77
import snowboardingPreview from "@site/static/images/snowboarding.webp";
88

99
import { FC, useEffect, useRef, useState } from "react";
10-
import PrimaryHeader from "../common/PrimaryHeader";
11-
import TypewriterText from "../common/TypewriterText";
12-
import CustomTag from "../ui/CustomTag";
10+
import TypewriterText from "@site/src/components/ui/typewriter-text";
11+
import CustomTag from "@site/src/components/ui/custom-tag";
1312

1413
type HobbyCardProps = {
1514
label: string;
@@ -41,7 +40,7 @@ const HobbyCard: FC<HobbyCardProps> = ({
4140

4241
return (
4342
<div
44-
className={`cursor-pointer relative ${size === "lg" && "h-44"} ${
43+
className={`cursor-pointer relative ${size === "lg" && "md:h-44 h-36"} ${
4544
size === "md" && "h-36"
4645
}`}
4746
onClick={() => setPlaying(true)}
@@ -84,9 +83,9 @@ const Hobbies: FC = () => {
8483
>
8584
HOBBIES
8685
</CustomTag>
87-
<div className="flex gap-5">
86+
<div className="flex gap-5 flex-col md:flex-row">
8887
<HobbyCard
89-
size="lg"
88+
size={"lg"}
9089
label="skating"
9190
mediaUrl={skatingVideo}
9291
preview={skatingPreview}

www/src/components/home/Welcome.tsx

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import MiniSection from "../common/MiniSection";
2-
import CustomTag from "../ui/CustomTag";
1+
import MiniSection from "@site/src/components/ui/mini-section";
2+
import CustomTag from "@site/src/components/ui/custom-tag";
33

44
export default function Work() {
55
return (
@@ -8,7 +8,7 @@ export default function Work() {
88
color="foam"
99
className="text-lg tracking-tighter! justify-self-center! mb-5"
1010
>
11-
WORK | EDUCATION
11+
EXPERIENCE
1212
</CustomTag>
1313
<MiniSection
1414
title="Software Engineer II @ OKX"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import { useWindowSize } from "@docusaurus/theme-common";
2+
import { useNavbarMobileSidebar } from "@docusaurus/theme-common/internal";
3+
import { HamburgerMenuIcon } from "@radix-ui/react-icons";
4+
5+
import { Link } from "@site/src/components/ui/link";
6+
import { NavigationMenuItem } from "@site/src/components/ui/navigation-menu";
7+
import { FC } from "react";
8+
9+
const ZETTELKASTEN = "zettelkasten";
10+
11+
const NavbarExtras: FC = () => {
12+
const windowSize = useWindowSize();
13+
const path = window.location.pathname;
14+
const isMobile = windowSize === "mobile";
15+
const isZett = path.endsWith(ZETTELKASTEN);
16+
const mobileSidebar = useNavbarMobileSidebar();
17+
18+
return (
19+
<>
20+
{isMobile && isZett && (
21+
<NavigationMenuItem className="flex gap-2 items-center cursor-alias pr-3">
22+
<HamburgerMenuIcon onClick={mobileSidebar.toggle} />
23+
</NavigationMenuItem>
24+
)}
25+
<NavigationMenuItem className="flex gap-2 items-center cursor-alias pr-3">
26+
<Link
27+
variant="menu"
28+
href="/"
29+
className={"text-lg tracking-tight hover:bg-transparent! text-nowrap"}
30+
>
31+
陈俊任
32+
</Link>
33+
</NavigationMenuItem>
34+
</>
35+
);
36+
};
37+
38+
export default NavbarExtras;

0 commit comments

Comments
 (0)