diff --git a/app/components/common/icons.tsx b/app/components/common/icons.tsx index 2672858..9bf5d85 100644 --- a/app/components/common/icons.tsx +++ b/app/components/common/icons.tsx @@ -17,3 +17,27 @@ export const ShareFill = (props: IconProps) => ( export const CupFill = (props: IconProps) => ( ); + +export const QQ = (props: IconProps) => ( + +); + +export const GitHub = (props: IconProps) => ( + +); + +export const CloudMusic = (props: IconProps) => ( + +); + +export const TwitterX = (props: IconProps) => ( + +); + +export const BiliBili = (props: IconProps) => ( + +); + +export const Steam = (props: IconProps) => ( + +); diff --git a/app/components/layout/footer.tsx b/app/components/layout/footer.tsx index b506241..dc24a0d 100644 --- a/app/components/layout/footer.tsx +++ b/app/components/layout/footer.tsx @@ -1,11 +1,11 @@ -const { APP_SITENAME, APP_FOOTER_EXTRA } = import.meta.env; +const { APP_SITENAME, APP_FOOTER_EXTRA } = import.meta.env; function Footer() { return ( ); diff --git a/app/components/layout/header.tsx b/app/components/layout/header.tsx index cfeec0a..2e32a26 100644 --- a/app/components/layout/header.tsx +++ b/app/components/layout/header.tsx @@ -1,4 +1,4 @@ -import { Link, NavLink } from "@remix-run/react"; +import { NavLink } from "@remix-run/react"; const navItems = [ { name: "首页", to: "/" }, diff --git a/app/routes/_index.tsx b/app/routes/_index.tsx deleted file mode 100644 index 5347369..0000000 --- a/app/routes/_index.tsx +++ /dev/null @@ -1,41 +0,0 @@ -import type { MetaFunction } from "@remix-run/node"; - -export const meta: MetaFunction = () => { - return [ - { title: "New Remix App" }, - { name: "description", content: "Welcome to Remix!" }, - ]; -}; - -export default function Index() { - return ( -
-

Welcome to Remix

- -
- ); -} diff --git a/app/routes/_index/route.tsx b/app/routes/_index/route.tsx new file mode 100644 index 0000000..dfd3fa0 --- /dev/null +++ b/app/routes/_index/route.tsx @@ -0,0 +1,49 @@ +import type { MetaFunction } from "@remix-run/node"; +import { siteTitle } from "~/utils"; +import { BiliBili, CloudMusic, GitHub, QQ, Steam, TwitterX } from "~/components/common/icons"; + +import styles from "./styles.module.less"; + +export const meta: MetaFunction = () => { + return [ + { title: siteTitle() }, + { name: "description", content: "一只正在学习前后端技术的萌新" }, + ]; +}; + +export default function Index() { + return ( +
+
+
+
+
+ 奇趣保罗 +
+

奇趣保罗

+

一只正在学习前后端技术的萌新

+

+ + + + + + + + + + + + + + + + + + +

+
+
+
+ ); +} diff --git a/app/routes/_index/styles.module.less b/app/routes/_index/styles.module.less new file mode 100644 index 0000000..9c45d69 --- /dev/null +++ b/app/routes/_index/styles.module.less @@ -0,0 +1,7 @@ +.avatar { + width: 160px; + position: relative; + --path: path('M0 88V0h160v88h-8c0 39.738-32.262 72-72 72S8 127.738 8 88H0z'); + --webkit-clip-path: var(--path); + clip-path: var(--path); +} diff --git a/app/routes/gallery.$/route.tsx b/app/routes/gallery.$/route.tsx index fb34fb8..668601b 100644 --- a/app/routes/gallery.$/route.tsx +++ b/app/routes/gallery.$/route.tsx @@ -64,7 +64,7 @@ export default function Gallery() { ))} -
+
{media.data.map((item) => (
{item.title} diff --git a/app/routes/note._index.tsx b/app/routes/note._index.tsx index bdcb7b7..370d278 100644 --- a/app/routes/note._index.tsx +++ b/app/routes/note._index.tsx @@ -1,5 +1,5 @@ -import { ChangeEvent, useEffect, useState } from "react"; -import { Link, unstable_useViewTransitionState, useLoaderData, useNavigate, useSearchParams } from "@remix-run/react"; +import { ChangeEvent } from "react"; +import { Link, useLoaderData, useNavigate, useSearchParams } from "@remix-run/react"; import { json, LoaderFunctionArgs, type MetaFunction } from "@remix-run/node"; import Pagination from "~/components/common/pagination"; import { clsn, siteTitle } from "~/utils"; diff --git a/public/avatar.webp b/public/avatar.webp new file mode 100644 index 0000000..f3b3f8f Binary files /dev/null and b/public/avatar.webp differ diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..b6b4557 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,5 @@ +User-agent: * +Disallow: /api + +User-agent: CCBot +Disallow: /