diff --git a/app/(pages)/articles/page.tsx b/app/(pages)/articles/page.tsx deleted file mode 100644 index 6a0b4a06..00000000 --- a/app/(pages)/articles/page.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import type { Metadata } from "next"; - -import { RssIcon } from "../../_components"; -import { ArticleList, UniversalLink } from "../../_features"; - -export default function Page() { - return ( -
-

- Articles - - - -

- -
- ); -} - -export const metadata: Metadata = { - title: "Articles", -}; diff --git a/app/_features/articles/ArticleList.tsx b/app/_features/articles/ArticleList.tsx index e41fe97f..d73b56e1 100644 --- a/app/_features/articles/ArticleList.tsx +++ b/app/_features/articles/ArticleList.tsx @@ -1,3 +1,4 @@ +import { UniversalLink } from "../viewTransition"; import { ArticleListItem } from "./ArticleListItem"; import { getArticlesMeta } from "./getArticlesMeta"; import type { TagEnum } from "./type"; @@ -12,10 +13,16 @@ export const ArticleList = ({ tag }: Props): JSX.Element => { const articlesMeta = getArticlesMeta({ tag }); return ( -
- {articlesMeta.map((article) => ( - - ))} +
+ + ← Go back + + +
+ {articlesMeta.map((article) => ( + + ))} +
); }; diff --git a/app/_features/articles/ArticleListItem.tsx b/app/_features/articles/ArticleListItem.tsx index b0e646a1..dd68cee2 100644 --- a/app/_features/articles/ArticleListItem.tsx +++ b/app/_features/articles/ArticleListItem.tsx @@ -1,8 +1,8 @@ -import { ExternalLinkIcon, Time } from "../../_components"; +import { MoveUpRight } from "lucide-react"; +import { Time } from "../../_components"; import { format } from "../../_utils"; import { UniversalLink } from "../viewTransition"; -import { Tag } from "./Tag"; import type { ArticleMeta } from "./type"; type Props = ArticleMeta; @@ -12,26 +12,22 @@ export const ArticleListItem = ({ href, externalLink, publishedAt: _publishedAt, - tags, }: Props) => { const publishedAt = format(_publishedAt); return ( -
-

- +
+

+ {title} - {externalLink && } + {externalLink && ( + + )}

-
-
- {tags.map((tag) => ( - - ))} -
- -
+
); }; diff --git a/app/articles/page.tsx b/app/articles/page.tsx new file mode 100644 index 00000000..bdc8d89f --- /dev/null +++ b/app/articles/page.tsx @@ -0,0 +1,15 @@ +import type { Metadata } from "next"; + +import { ArticleList } from "../_features"; + +export default function Page() { + return ( +
+ +
+ ); +} + +export const metadata: Metadata = { + title: "Articles", +}; diff --git a/app/globals.css b/app/globals.css index 1e29ac24..b72a6a33 100644 --- a/app/globals.css +++ b/app/globals.css @@ -112,6 +112,10 @@ animation-delay: calc(var(--enter-initial) + var(--enter-stage) * var(--enter-step)); } + .blur-enter-content.enter-step-150 > * { + --enter-step: 150ms; + } + .blur-enter-content > *:nth-child(1) { --enter-stage: 1; }