Skip to content

Commit

Permalink
refactor: ♻️ meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
gracefullight committed Mar 16, 2024
1 parent eda1a0a commit e9293ac
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 6 deletions.
Binary file modified apps/web/public/demo1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/demo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/demo3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/demo4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/web/public/sw.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions apps/web/src/app/(routes)/all/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ interface Section {
items: SectionItem[];
}

export const metadata = {
title: "전체",
};

export default function All() {
const items = [
{
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/app/(routes)/benefit/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use client";

import { useTitle } from "ahooks";
import clsx from "clsx";
import { useAnimate, useMotionValueEvent, useScroll } from "framer-motion";
import {
Expand Down Expand Up @@ -27,6 +28,7 @@ import { formatNumber } from "~/utils/number";
const scrollState = proxy({ scrollY: 0, direction: 0 });

export default function Benefit() {
useTitle("혜택 | Doss");
const { direction } = useSnapshot(scrollState);
const router = useRouter();
const { scrollY } = useScroll();
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/(routes)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from "~/components/main";

export const metadata = {
title: "Doss | 홈",
title: "홈",
};

export default function Home() {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/(routes)/pay/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "~/components/pay";

export const metadata = {
title: "Doss | 도스페이",
title: "도스페이",
};

export default function Pay() {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/(routes)/stock/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import StockHeader from "~/components/stock/StockHeader";

export const metadata = {
title: "Doss | 주식",
title: "주식",
};

export default function Stock() {
Expand Down
37 changes: 35 additions & 2 deletions apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,47 @@ import type { ReactNode } from "react";
import type { Metadata, Viewport } from "next";
import { TRPCReactProvider } from "~/trpc/react";

const APP_NAME = "Doss";
const APP_TITLE_TEMPLATE = "%s | Doss";
const APP_DESCRIPTION = "Duplicated version of Toss";

const notoSansKR = Noto_Sans_KR({
subsets: ["latin"],
variable: "--font-sans",
});

export const metadata: Metadata = {
title: "Doss",
description: "Duplicated version of Toss",
applicationName: APP_NAME,
title: {
default: APP_NAME,
template: APP_TITLE_TEMPLATE,
},
description: APP_DESCRIPTION,
appleWebApp: {
capable: true,
statusBarStyle: "default",
title: APP_NAME,
},
formatDetection: {
telephone: false,
},
openGraph: {
type: "website",
siteName: APP_NAME,
title: {
default: APP_NAME,
template: APP_TITLE_TEMPLATE,
},
description: APP_DESCRIPTION,
},
twitter: {
card: "summary",
title: {
default: APP_NAME,
template: APP_TITLE_TEMPLATE,
},
description: APP_DESCRIPTION,
},
icons: [
{ rel: "icon", url: "/favicon.ico" },
{ rel: "icon", url: "/favicon-16x16.png", sizes: "16x16" },
Expand Down
18 changes: 18 additions & 0 deletions apps/web/src/app/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,23 @@ export default function manifest(): MetadataRoute.Manifest {
start_url: "/?pwa=1",
display: "standalone",
orientation: "portrait",
screenshots: [
{
src: "demo1.png",
sizes: "390x844",
},
{
src: "demo2.png",
sizes: "390x844",
},
{
src: "demo3.png",
sizes: "390x844",
},
{
src: "demo4.png",
sizes: "390x844",
},
],
};
}

0 comments on commit e9293ac

Please sign in to comment.