-
-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a006383
commit 507f762
Showing
22 changed files
with
417 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
import { getI18n } from "../../../locales/server" | ||
import InteractiveLink from "@modules/common/components/interactive-link" | ||
import { Metadata } from "next" | ||
|
||
export const metadata: Metadata = { | ||
title: "404", | ||
description: "Something went wrong", | ||
description: "generic.somethingwrong", | ||
} | ||
|
||
export default async function NotFound() { | ||
const t = await getI18n() | ||
|
||
metadata.description = t("generic.somethingwrong") | ||
|
||
return ( | ||
<div className="flex flex-col gap-4 items-center justify-center min-h-[calc(100vh-64px)]"> | ||
<h1 className="text-2xl-semi text-ui-fg-base">Page not found</h1> | ||
<h1 className="text-2xl-semi text-ui-fg-base"> | ||
{t("generic.notfound_title")} | ||
</h1> | ||
<p className="text-small-regular text-ui-fg-base"> | ||
The page you tried to access does not exist. | ||
{t("generic.notfound_desc")} | ||
</p> | ||
<InteractiveLink href="/">Go to frontpage</InteractiveLink> | ||
<InteractiveLink href="/">{t("generic.notfound_link")}</InteractiveLink> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
import { Metadata } from "next" | ||
|
||
import { getI18n } from "../../../../../locales/server" | ||
|
||
import LoginTemplate from "@modules/account/templates/login-template" | ||
|
||
export const metadata: Metadata = { | ||
title: "Sign in", | ||
description: "Sign in to your Medusa Store account.", | ||
title: "page.login.title", | ||
description: "page.login.desc", | ||
} | ||
|
||
export default function Login() { | ||
export default async function Login() { | ||
const t = await getI18n() | ||
metadata.title = t("page.login.title") | ||
metadata.description = t("page.login.desc") | ||
|
||
return <LoginTemplate /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
import { Metadata } from "next" | ||
|
||
import { getI18n } from "../../../../locales/server" | ||
|
||
import InteractiveLink from "@modules/common/components/interactive-link" | ||
|
||
export const metadata: Metadata = { | ||
title: "404", | ||
description: "Something went wrong", | ||
description: "generic.somethingwrong", | ||
} | ||
|
||
export default function NotFound() { | ||
export default async function NotFound() { | ||
const t = await getI18n() | ||
|
||
metadata.description = t("generic.somethingwrong") | ||
|
||
return ( | ||
<div className="flex flex-col items-center justify-center min-h-[calc(100vh-64px)]"> | ||
<h1 className="text-2xl-semi text-ui-fg-base">Page not found</h1> | ||
<h1 className="text-2xl-semi text-ui-fg-base"> | ||
{t("generic.notfound_title")} | ||
</h1> | ||
<p className="text-small-regular text-ui-fg-base"> | ||
The cart you tried to access does not exist. Clear your cookies and try | ||
again. | ||
{t("generic.notfound_desc_cart")} | ||
</p> | ||
<InteractiveLink href="/">Go to frontpage</InteractiveLink> | ||
<InteractiveLink href="/">{t("generic.notfound_link")}</InteractiveLink> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.