From 2956e7ba7ea6384edf0ac32d77c13584e4787453 Mon Sep 17 00:00:00 2001 From: Johnson Mao <86179381+JohnsonMao@users.noreply.github.com> Date: Mon, 14 Oct 2024 21:59:08 +0800 Subject: [PATCH 1/4] refactor: common layout --- layout/DefaultLayout.jsx | 15 ++ pages/404.jsx | 230 +++++++++--------- pages/_app.jsx | 6 +- pages/about-us/index.jsx | 4 - pages/about/index.jsx | 4 - pages/activities/index.jsx | 4 - pages/activities/ncku-bike-festival/index.jsx | 4 - pages/contribute/resource/index.jsx | 4 - pages/group/create/index.jsx | 4 - pages/group/detail/index.jsx | 4 - pages/group/edit/index.jsx | 4 - pages/group/index.jsx | 4 - pages/index.jsx | 22 +- pages/join/index.jsx | 14 +- pages/locations/index.jsx | 4 - pages/login/index.jsx | 12 +- pages/login/popup/index.jsx | 6 +- pages/meet/index.jsx | 22 +- pages/myisland/index.jsx | 22 +- pages/partner/detail/index.jsx | 15 +- pages/partner/index.jsx | 14 +- pages/profile/index.jsx | 12 +- pages/profile/myprofile/index.jsx | 10 +- pages/resource/[title]/index.jsx | 4 - pages/search/index.jsx | 4 - pages/signin/index.jsx | 18 +- pages/signin/interest/index.jsx | 31 ++- pages/terms/ipr.jsx | 12 +- pages/terms/privacypolicy.jsx | 12 +- pages/terms/service.jsx | 12 +- 30 files changed, 272 insertions(+), 261 deletions(-) create mode 100644 layout/DefaultLayout.jsx diff --git a/layout/DefaultLayout.jsx b/layout/DefaultLayout.jsx new file mode 100644 index 00000000..37894a47 --- /dev/null +++ b/layout/DefaultLayout.jsx @@ -0,0 +1,15 @@ +import React from 'react'; +import Navigation from '@/shared/components/Navigation_v2'; +import Footer from '@/shared/components/Footer_v2'; + +const DefaultLayout = ({ children }) => { + return ( + <> + + {children} +