Skip to content

Commit

Permalink
fix(seo): add og image, rename robots.ts and add app favicon (#27)
Browse files Browse the repository at this point in the history
* fix(seo): add og image, rename robots.ts and add app favicon

* fix(assets): update favicon
  • Loading branch information
dorian-grst authored Oct 20, 2024
1 parent adb8a0e commit 576bb0f
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 22 deletions.
Binary file added public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion public/next.svg

This file was deleted.

Binary file added public/og-card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion public/vercel.svg

This file was deleted.

Binary file removed src/app/favicon.ico
Binary file not shown.
34 changes: 19 additions & 15 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
import type { Metadata } from "next";
import { Inter as FontSans } from "next/font/google";
import "./globals.css";
import { cn, getBackendURL } from "@/lib/utils";
import BlurBackground from "@/components/ui/blur-background";
import ThemeWrapper from "@/components/theme/theme-wrapper";
import { Toaster } from "@/components/shadcn/toaster";
import { Providers } from "@/components/theme/theme-provider";
import QueryProvider from "@/components/api/api-provider";
import type { Metadata } from 'next'
import { Inter as FontSans } from 'next/font/google'
import './globals.css'
import { cn, getBackendURL } from '@/lib/utils'
import BlurBackground from '@/components/ui/blur-background'
import ThemeWrapper from '@/components/theme/theme-wrapper'
import { Toaster } from '@/components/shadcn/toaster'
import { Providers } from '@/components/theme/theme-provider'
import QueryProvider from '@/components/api/api-provider'

const fontSans = FontSans({ subsets: ["latin"] });
const fontSans = FontSans({ subsets: ['latin'] })

export const metadata: Metadata = {
title: "Gists",
description: "Create and share code snippets.",
};
title: 'Create and share secure code snippets - Gists',
description: 'Gists lets developers create, share, and collaborate on secure code snippets.',
}

export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
children: React.ReactNode
}>) {
return (
<html lang="en" suppressHydrationWarning={true}>
<link rel="icon" href="/favicon.png" sizes="300" />
<head>
<script defer src="https://cloud.umami.is/script.js" data-website-id="0e9bcd71-c239-4666-9b8e-a7c9e99ae235"></script>
</head>
<body className={cn(fontSans.className)}>
<QueryProvider>
<Providers>
Expand All @@ -34,5 +38,5 @@ export default function RootLayout({
</QueryProvider>
</body>
</html>
);
)
}
14 changes: 11 additions & 3 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,18 @@ export const metadata: Metadata = {
'version control',
'code storage',
],
title: 'Gists',
openGraph: {
description: 'Gists is a platform for sharing code snippets and collaborating on projects',
images: [''],
title: 'Create and share secure code snippets - Gists',
description: 'Gists lets developers create, share, and collaborate on secure code snippets.',
type: 'website',
url: 'https://gists.app',
siteName: 'Gists',
images: [{
url: 'https://gists.app/og-card.png',
width: 1200,
height: 630,
alt: 'Preview image for Gists.app',
}],
},
}

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/components/ui/gist-landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function GistLanding({ gist, onDownload, onLogin, onShare, onShar
<div className="flex flex-col flex-grow border-border rounded-lg border">
<div className="py-4 px-6 flex flex-row justify-between items-center">
<div className="flex flex-row gap-2 justify-center items-center">
<span>Welcome in Gists.app</span>
<h1 className="text-base font-normal">Gists</h1>
<ChevronRightIcon className="w-4 h-4 hidden sm:block" />
<span className="hidden sm:block">{gist.name}</span>
</div>
Expand All @@ -58,7 +58,7 @@ export default function GistLanding({ gist, onDownload, onLogin, onShare, onShar
<Tooltip>
<TooltipTrigger asChild>
<MenuButton onClick={onLogin} icon={<LogIn className="w-4 h-4" />} variant={'header'}>
<span>Login</span>
<h2 className="text-sm font-normal">Login</h2>
</MenuButton>
</TooltipTrigger>
<TooltipContent className="flex flex-row gap-2 justify-center items-center">
Expand Down

0 comments on commit 576bb0f

Please sign in to comment.