Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tourism page #4196

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ An open-source, self-hosted note-taking solution designed for seamless deploymen
<a href="https://www.usememos.com">Home Page</a> •
<a href="https://www.usememos.com/blog">Blogs</a> •
<a href="https://www.usememos.com/docs">Docs</a> •
<a href="https://demo.usememos.com/">Live Demo</a>
<a href="https://demo.usememos.com/">Live Demo</a> •
<a href="/tourism">Tourism</a>

<p>
<a href="https://hub.docker.com/r/neosmemo/memos"><img alt="Docker pull" src="https://img.shields.io/docker/pulls/neosmemo/memos.svg"/></a>
Expand Down
18 changes: 18 additions & 0 deletions web/src/pages/Tourism.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from 'react';

Check failure on line 1 in web/src/pages/Tourism.tsx

View workflow job for this annotation

GitHub Actions / static-checks

Replace `'react'` with `"react"`
import MobileHeader from "@/components/MobileHeader";

const Tourism = () => {
return (
<section className="@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8">
<MobileHeader />
<div className="w-full px-4 sm:px-6">
<div className="w-full shadow flex flex-col justify-start items-start px-4 py-3 rounded-xl bg-white dark:bg-zinc-800 text-black dark:text-gray-300">
<h1 className="text-2xl font-bold">Tourism</h1>
<p className="text-base">Explore the beauty and attractions of various destinations.</p>
</div>
</div>
</section>
);
};

export default Tourism;
6 changes: 6 additions & 0 deletions web/src/router/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
import Setting from "@/pages/Setting";
import SignIn from "@/pages/SignIn";
import SignUp from "@/pages/SignUp";
import UserProfile from "@/pages/UserProfile";

Check failure on line 19 in web/src/router/index.tsx

View workflow job for this annotation

GitHub Actions / static-checks

Insert `Tourism·from·"@/pages/Tourism";⏎import·`
import Tourism from "@/pages/Tourism"; // P00ec

Check failure on line 20 in web/src/router/index.tsx

View workflow job for this annotation

GitHub Actions / static-checks

Replace `import·Tourism·from·"@/pages/Tourism";·` with `⏎`

export enum Routes {
ROOT = "/",
Expand All @@ -27,6 +28,7 @@
EXPLORE = "/explore",
ABOUT = "/about",
AUTH = "/auth",
TOURISM = "/tourism" // P2019

Check failure on line 31 in web/src/router/index.tsx

View workflow job for this annotation

GitHub Actions / static-checks

Insert `,`
}

const router = createBrowserRouter([
Expand Down Expand Up @@ -96,6 +98,10 @@
path: Routes.ABOUT,
element: <About />,
},
{
path: Routes.TOURISM, // P2019
element: <Tourism />, // P2019
},
{
path: "403",
element: <PermissionDenied />,
Expand Down
Loading