Skip to content

Commit

Permalink
update page
Browse files Browse the repository at this point in the history
  • Loading branch information
idoubi committed Dec 6, 2024
1 parent 7a12718 commit 3356f7d
Show file tree
Hide file tree
Showing 16 changed files with 103 additions and 15 deletions.
10 changes: 10 additions & 0 deletions app/(default)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
import LandingLayout from "@/templates/tailspark/landing/layout";
import { Metadata } from "next";
import pagejson from "@/pagejson/en.json";

export const metadata: Metadata = {
title: pagejson?.metadata?.title,
description: pagejson?.metadata?.description,
keywords: pagejson?.metadata?.keywords,
alternates: {
canonical: `${process.env.NEXT_PUBLIC_WEB_URL}/`,
},
};

export default function ({
children,
}: Readonly<{
Expand Down
2 changes: 1 addition & 1 deletion app/(default)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import pagejson from "@/pagejson/en.json";
export const runtime = "edge";

export default async function () {
const featuredProjects = await getFeaturedProjects(1, 30);
const featuredProjects = await getFeaturedProjects(1, 100);

return <LandingPage page={pagejson} projects={featuredProjects} />;
}
Binary file removed app/favicon.ico
Binary file not shown.
17 changes: 9 additions & 8 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Metadata } from "next";
import { ThemeProvider } from "@/providers/theme";
import localFont from "next/font/local";

const geistSans = localFont({
Expand All @@ -12,23 +12,24 @@ const geistMono = localFont({
weight: "100 900",
});

export const metadata: Metadata = {
title: "MCP Servers",
description:
"Third-party MCP Servers store. Collect awesome MCP Servers, Seach MCP Servers by chatting.",
};

export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<head>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no"
/>
<link rel="icon" href="/favicon.ico" />
</head>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
<ThemeProvider>{children}</ThemeProvider>
</body>
</html>
);
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@supabase/supabase-js": "^2.46.2",
"moment": "^2.30.1",
"next": "15.0.3",
"next-themes": "^0.4.4",
"react": "19.0.0-rc-66855b96-20241106",
"react-dom": "19.0.0-rc-66855b96-20241106",
"react-icons": "^5.4.0",
Expand Down
23 changes: 22 additions & 1 deletion pagejson/en.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"metadata": {
"title": "MCP Servers",
"description": "Third-party MCP Servers store. Collect awesome MCP Servers, Seach MCP Servers quickly.",
"keywords": "MCP Servers, Awesome MCP Servers, MCP Servers Store, MCP Servers Search"
},
"header": {
"brand": {
"title": "MCP Servers",
Expand All @@ -8,7 +13,23 @@
}
},
"nav": {
"items": []
"items": [
{
"title": "Submit",
"url": "https://github.com/mcpservers/awesome-mcp-servers/issues/1",
"target": "_blank"
},
{
"title": "Telegram",
"url": "https://t.me/+N0gv4O9SXio2YWU1",
"target": "_blank"
},
{
"title": "Discord",
"url": "https://discord.gg/RsYPRrnyqg",
"target": "_blank"
}
]
}
},
"hero": {
Expand Down
13 changes: 13 additions & 0 deletions pnpm-lock.yaml

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

31 changes: 31 additions & 0 deletions providers/theme.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import * as React from "react";

export function ThemeProvider({ children }: { children: React.ReactNode }) {
return (
<>
{children}

<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-9ZWF7FKDR8"
></script>
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-9ZWF7FKDR8');
`,
}}
></script>

<script
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2123767634383915"
crossOrigin="anonymous"
></script>
</>
);
}
Binary file added public/favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion public/file.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/globe.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/next.svg

This file was deleted.

2 changes: 2 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /*?*q=
14 changes: 14 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

<url>
<loc>https://mcp.so/</loc>
<lastmod>2024-12-05T08:29:07+00:00</lastmod>
<priority>1.00</priority>
</url>

</urlset>
1 change: 0 additions & 1 deletion public/vercel.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/window.svg

This file was deleted.

0 comments on commit 3356f7d

Please sign in to comment.