Skip to content

Commit

Permalink
feat: metadata-related improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldanielecki committed Aug 19, 2024
1 parent 8fff113 commit f031ce1
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 6 deletions.
84 changes: 81 additions & 3 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,89 @@ import Cookie from "@azure-fundamentals/components/Cookie";
import "styles/globals.css";

export const metadata: Metadata = {
metadataBase: new URL("http://localhost:3000"),
title: "🧪 Practice Exams Platform | Ditectrev",
appleWebApp: {
capable: true,
title: "🧪 Practice Exams Platform | Ditectrev",
statusBarStyle: "black",
},
applicationName: "🧪 Practice Exams Platform | Ditectrev",
authors: [
{ name: "Daniel Danielecki", url: "https://github.com/danieldanielecki" },
{
name: "Eduard-Constantin Ibinceanu",
url: "https://github.com/eduardconstantin",
},
],
creator: "Eduard-Constantin Ibinceanu",
description:
"🎓 Practice Exams (Web) Platform developed by Ditectrev's Community.",
formatDetection: { telephone: true },
icons: [
{
rel: "apple-touch-icon",
type: "image/x-icon",
url: "/favicon.ico",
},
{
rel: "icon",
type: "image/x-icon",
url: "/favicon.ico",
},
],
keywords: [
"AWS Exams",
"Azure Exams",
"Exams Simulator",
"GCP Exams",
"ITIL4 Exams",
"Practice Exams Platform",
"Practice Tests Platform",
"Scrum Exams",
],
manifest: "/manifest.json",
metadataBase: new URL("/"),
openGraph: {
description:
"🎓 Practice Exams (Web) Platform developed by Ditectrev's Community.",
images: [
{
alt: "Ditectrev Logo",
url: "/logo.svg",
},
],
siteName: "🧪 Practice Exams Platform | Ditectrev",
title: "🧪 Practice Exams Platform | Ditectrev",
type: "website",
url: "https://education.ditectrev.com",
},
publisher: "Ditectrev",
referrer: "strict-origin-when-cross-origin",
robots: {
follow: true,
index: true,
},
themeColor: "#3f51b5",
title: {
default: "Dashboard",
template: "🧪 Practice Exams Platform - %s | Ditectrev",
},
twitter: {
card: "summary_large_image",
creator: "@ditectrev",
description:
"🎓 Practice Exams (Web) Platform developed by Ditectrev's Community.",
images: [
{
alt: "Ditectrev Logo",
url: "/logo.svg",
},
],
site: "@ditectrev",
title: "🧪 Practice Exams Platform | Ditectrev",
},
viewport: {
initialScale: 1,
width: "device-width",
},
};

Expand All @@ -21,7 +100,6 @@ type RootLayoutProps = {
export default function RootLayout({ children }: RootLayoutProps) {
return (
<html lang="en">
<link rel="manifest" href="/manifest.json" />
<body className="bg-slate-900">
<ApolloProvider>
<TopNav />
Expand Down
2 changes: 1 addition & 1 deletion components/TopNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const TopNav = () => {
height={50}
width={200}
/>
<p className={`windowWidth < 640 ? "text-lg" : "text-md"`}>
<p className={`windowWidth < 640 ? "text-lg" : "text-sm"`}>
🧪 Practice Exams Platform
</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Practice-Exams-Platform",
"name": "Practice Exams Platform",
"version": "1.1.0",
"private": true,
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion public/sw.js.map

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

0 comments on commit f031ce1

Please sign in to comment.