From 073acf62d68892bb3f83734617107fd0312fc604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=87=E8=B6=A3=E4=BF=9D=E7=BD=97?= Date: Sat, 11 Nov 2023 22:44:52 +0800 Subject: [PATCH] Feat: Gallery List Page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 相册页面,包括页尾组件 --- .env.default | 3 ++ app/components/layout/footer.tsx | 14 +++++ app/root.tsx | 2 + app/routes/gallery.$/route.tsx | 71 +++++++++++++++++++++++++ app/routes/gallery.$/styles.module.less | 3 ++ app/types/api.d.ts | 4 ++ app/types/api.gallery.d.ts | 12 +++++ app/types/api.media.d.ts | 37 +++++++++++++ 8 files changed, 146 insertions(+) create mode 100644 .env.default create mode 100644 app/components/layout/footer.tsx create mode 100644 app/routes/gallery.$/route.tsx create mode 100644 app/routes/gallery.$/styles.module.less create mode 100644 app/types/api.gallery.d.ts create mode 100644 app/types/api.media.d.ts diff --git a/.env.default b/.env.default new file mode 100644 index 0000000..de2ebe5 --- /dev/null +++ b/.env.default @@ -0,0 +1,3 @@ +APP_SITENAME=萝心花园 +APP_APIURL=https://paul.ren +APP_FOOTER_EXTRA= diff --git a/app/components/layout/footer.tsx b/app/components/layout/footer.tsx new file mode 100644 index 0000000..b506241 --- /dev/null +++ b/app/components/layout/footer.tsx @@ -0,0 +1,14 @@ +const { APP_SITENAME, APP_FOOTER_EXTRA } = import.meta.env; + +function Footer() { + return ( + + ); +} + +export default Footer; diff --git a/app/root.tsx b/app/root.tsx index 3f5f33c..3826963 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -12,6 +12,7 @@ import Header from "./components/layout/header"; import Spinner from "./components/common/spinner"; import "./index.css"; +import Footer from "./components/layout/footer"; export const links: LinksFunction = () => [ ...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []), @@ -31,6 +32,7 @@ export default function App() {
+