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

SQL StatementのURLのパスを変える #270

Merged
merged 1 commit into from
Sep 16, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { Modal } from '../_components/modal';

export default function Page() {
return (
<Modal title="🖥️ SQL">
<Modal title="🧑‍💻 Engineerings">
<div className="flex w-full flex-col gap-4">
<AppCard
link="/sql-statement/creating"
link="/engineerings/creating"
emotion="📄"
title="テーブル作成"
description="テーブルを作成するSQL文を生成します"
Expand Down
6 changes: 3 additions & 3 deletions src/app/_components/showcase/showcase.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export const Primary: Story = {
<ShowCase.Item link="/colors" emotion="🎨" title="Colors" />
<ShowCase.Item link="/quizzes" emotion="💡" title="Quizzes" />
<ShowCase.Item
link="/sql-statement"
emotion="🖥️"
title="SQL"
link="/engineerings"
emotion="🧑‍💻"
title="Engineerings"
/>
<ShowCase.Item link="/blog" emotion="📕" title="Blog" />
</ShowCase.Container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Column } from '../../_types/column';
import { uuidV4 } from '@/utils/uuid-v4';

const meta: Meta<typeof CreateColumns> = {
title: 'app/sql-statement/columns-info',
title: 'app/engineerings/columns-info',
component: CreateColumns,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Column } from '../../_types/column';
import { uuidV4 } from '@/utils/uuid-v4';

const meta: Meta<typeof CreateRestriction> = {
title: 'app/sql-statement/create-restriction',
title: 'app/engineerings/create-restriction',
component: CreateRestriction,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Column } from '../../_types/column';
import { uuidV4 } from '@/utils/uuid-v4';

const meta: Meta<typeof CreateRestrictions> = {
title: 'app/sql-statement/create-restrictions',
title: 'app/engineerings/create-restrictions',
component: CreateRestrictions,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useState } from 'react';
import { Table } from '../../_types/table';

const meta: Meta<typeof CreateTable> = {
title: 'app/sql-statement/create-table',
title: 'app/engineerings/create-table',
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const metadata = {
openGraph: {
title: 'テーブル作成',
description: 'テーブルを作成するSQL文を生成します',
url: 'https://k8o.me/sql-statement/creating',
url: 'https://k8o.me/engineerings/creating',
},
twitter: {
title: 'テーブル作成',
Expand Down
38 changes: 38 additions & 0 deletions src/app/engineerings/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import Link from 'next/link';
import { Heading } from '../../components/heading';

export const metadata = {
title: 'Engineerings',
description:
'Webアプリケーション開発に役立つあれこれを用意しています',
openGraph: {
title: 'Engineerings',
description:
'Webアプリケーション開発に役立つあれこれを用意しています',
url: 'https://k8o.me/engineerings',
siteName: 'k8o',
locale: 'ja',
type: 'website',
},
twitter: {
title: 'Engineerings',
card: 'summary',
description:
'Webアプリケーション開発に役立つあれこれを用意しています',
},
};

export default function Layout({
children,
}: {
children: React.ReactNode;
}) {
return (
<div className="flex flex-col gap-6">
<Link href="/engineerings">
<Heading type="h2">Engineerings</Heading>
</Link>
{children}
</div>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ImageResponse } from 'next/og';

export const runtime = 'edge';

export const alt = 'converter';
export const alt = 'engineerings';
export const size = {
width: 1200,
height: 600,
Expand Down Expand Up @@ -36,7 +36,7 @@ export default async function OpenGraphImage() {
justifyContent: 'center',
}}
>
🖥️
🧑‍💻
</div>
</div>
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default function Page() {
return (
<div className="flex flex-col gap-4">
<AppCard
link="/sql-statement/creating"
link="/engineerings/creating"
emotion="📄"
title="テーブル作成"
description="テーブルを作成するSQL文を生成します"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ImageResponse } from 'next/og';

export const runtime = 'edge';

export const alt = 'converter';
export const alt = 'engineerings';
export const size = {
width: 512,
height: 512,
Expand Down Expand Up @@ -36,7 +36,7 @@ export default async function TwitterImage() {
width: 384,
}}
>
🖥️
🧑‍💻
</div>
</div>
),
Expand Down
10 changes: 5 additions & 5 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ export default function Home() {
emotion="🧑‍🎨"
title="Designs"
/>
<ShowCase.Item
link="/engineerings"
emotion="🧑‍💻"
title="Engineerings"
/>
<ShowCase.Item
link="/quizzes"
emotion="💡"
title="Quizzes"
/>
<ShowCase.Item
link="/sql-statement"
emotion="🖥️"
title="SQL"
/>
<ShowCase.Item link="/blog" emotion="📕" title="Blog" />
</ShowCase.Container>
</div>
Expand Down
35 changes: 0 additions & 35 deletions src/app/sql-statement/layout.tsx

This file was deleted.