diff --git a/apps/v-next/components/SocialMediaShare.tsx b/apps/v-next/components/SocialMediaShare.tsx index f08066a..327ddc6 100644 --- a/apps/v-next/components/SocialMediaShare.tsx +++ b/apps/v-next/components/SocialMediaShare.tsx @@ -6,8 +6,6 @@ import { FacebookShareButton, LineIcon, LineShareButton, - PinterestIcon, - PinterestShareButton, TelegramIcon, TelegramShareButton, TwitterIcon, @@ -41,11 +39,7 @@ export default function SocialMediaShare() { - - - - - + diff --git a/apps/v-next/src/app/layout.tsx b/apps/v-next/src/app/layout.tsx index aafd65f..4561342 100644 --- a/apps/v-next/src/app/layout.tsx +++ b/apps/v-next/src/app/layout.tsx @@ -16,10 +16,18 @@ const roboto = Roboto({ }); export const metadata: Metadata = { - title: 'Delete or archive warehouses in batches', + title: `${PROJECT.name} - ${PROJECT.description}`, description: PROJECT.description, openGraph: { images: PROJECT.ogImage + }, + twitter: { + card: 'summary_large_image', + title: 'https://batch-manage-github-repos.i5lin.top', + description: PROJECT.description, + creator: PROJECT.author.name, + images: [PROJECT.ogImage], + site: '@AaronConlonDev' } }; @@ -50,7 +58,10 @@ export default function RootLayout({ height={32} className="inline-block md:hidden" /> -
Delete & Archive
+
+
{PROJECT.name}
+

{PROJECT.description}

+
diff --git a/apps/v-next/src/app/opengraph-image.tsx b/apps/v-next/src/app/opengraph-image.tsx deleted file mode 100644 index 122d1c1..0000000 --- a/apps/v-next/src/app/opengraph-image.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import { PROJECT } from '@shared/consts'; -import { ImageResponse } from 'next/og'; -export const alt = PROJECT.description; -export const size = { width: 1200, height: 630 }; -export const contentType = 'image/png'; - -export default function Image() { - return new ImageResponse( - ( -
-
- {PROJECT.name} -
-
- {PROJECT.description} -
-
- ), - { - ...size - } - ); -} diff --git a/apps/v-next/src/app/page.tsx b/apps/v-next/src/app/page.tsx index a84142e..6f25371 100644 --- a/apps/v-next/src/app/page.tsx +++ b/apps/v-next/src/app/page.tsx @@ -4,11 +4,6 @@ import { PROJECT } from '@shared/consts'; import Image from 'next/image'; import Link from 'next/link'; -export const metadata = { - title: PROJECT.name, - description: PROJECT.description -}; - export default function Home() { return (
@@ -17,7 +12,7 @@ export default function Home() {

- Delete & Archive Github Repo + {PROJECT.description}

The easy way to{' '} @@ -37,7 +32,11 @@ export default function Home() { > Get Started - Learn More + + + Learn More + +

{/* Share to social media */} diff --git a/packages/consts/src/project/index.ts b/packages/consts/src/project/index.ts index a9a54ed..19e0671 100644 --- a/packages/consts/src/project/index.ts +++ b/packages/consts/src/project/index.ts @@ -1,23 +1,23 @@ export const PROJECT = { - name: 'Delete & Archive', - description: 'The easy way to archive or delete multiple GitHub repos.', + name: 'GitBatch', + description: 'Easily manage your Git Hub repositories in bulk', version: '0.0.1', ogImage: - 'https://images.unsplash.com/photo-1618401471353-b98afee0b2eb?q=80&w=5088&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D', + 'https://de4965e.webp.li/blog-images/2024/07/8c71d1b5dc982bf1dbe091d162f2bf46.png', sourceCode: 'https://github.com/Developer27149/delete-github-repos-in-batches', author: { - name: '妙才Dev', + name: 'Aaron Conlon', email: 'rivenqinyy@gmail.com', avatar: 'https://avatars.githubusercontent.com/u/23721611?s=40&v=4', sites: [ { name: 'twitter', - url: 'https://twitter.com/miaocai0', + url: 'https://twitter.com/AaronConlonDev', }, { name: 'github', - url: 'https://github.com/Developer27149', + url: 'https://github.com/AaronConlon', }, { name: 'blog',