Spaces:
Sleeping
Sleeping
Commit
·
f52651d
1
Parent(s):
73500bd
feat: enhance layout and ChatSidebar with OpenGraph image and GitHub link
Browse files- Added OpenGraph image metadata to improve social media sharing visuals.
- Integrated a GitHub link in the ChatSidebar for easy access to the project repository.
- app/layout.tsx +14 -1
- components/chat-sidebar.tsx +8 -1
app/layout.tsx
CHANGED
|
@@ -15,7 +15,20 @@ export const metadata: Metadata = {
|
|
| 15 |
openGraph: {
|
| 16 |
siteName: "Scira MCP Chat",
|
| 17 |
url: "https://mcp.scira.ai",
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
};
|
| 20 |
|
| 21 |
export default function RootLayout({
|
|
|
|
| 15 |
openGraph: {
|
| 16 |
siteName: "Scira MCP Chat",
|
| 17 |
url: "https://mcp.scira.ai",
|
| 18 |
+
images: [
|
| 19 |
+
{
|
| 20 |
+
url: "https://mcp.scira.ai/opengraph-image.png",
|
| 21 |
+
width: 1200,
|
| 22 |
+
height: 630,
|
| 23 |
+
},
|
| 24 |
+
],
|
| 25 |
+
},
|
| 26 |
+
twitter: {
|
| 27 |
+
card: "summary_large_image",
|
| 28 |
+
title: "Scira MCP Chat",
|
| 29 |
+
description: "Scira MCP Chat is a minimalistic MCP client with a good feature set.",
|
| 30 |
+
images: ["https://mcp.scira.ai/twitter-image.png"],
|
| 31 |
+
},
|
| 32 |
};
|
| 33 |
|
| 34 |
export default function RootLayout({
|
components/chat-sidebar.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
import { useState, useEffect, useRef } from "react";
|
| 4 |
import { useRouter, usePathname } from "next/navigation";
|
| 5 |
-
import { MessageSquare, PlusCircle, Trash2, ServerIcon, Settings, Loader2, Sparkles, ChevronsUpDown, UserIcon, Copy, Pencil } from "lucide-react";
|
| 6 |
import {
|
| 7 |
Sidebar,
|
| 8 |
SidebarContent,
|
|
@@ -354,6 +354,13 @@ export function ChatSidebar() {
|
|
| 354 |
<Settings className="mr-2 h-4 w-4 hover:text-sidebar-accent" />
|
| 355 |
MCP Settings
|
| 356 |
</DropdownMenuItem>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 357 |
<DropdownMenuItem onSelect={(e) => e.preventDefault()}>
|
| 358 |
<div className="flex items-center justify-between w-full">
|
| 359 |
<div className="flex items-center">
|
|
|
|
| 2 |
|
| 3 |
import { useState, useEffect, useRef } from "react";
|
| 4 |
import { useRouter, usePathname } from "next/navigation";
|
| 5 |
+
import { MessageSquare, PlusCircle, Trash2, ServerIcon, Settings, Loader2, Sparkles, ChevronsUpDown, UserIcon, Copy, Pencil, Github } from "lucide-react";
|
| 6 |
import {
|
| 7 |
Sidebar,
|
| 8 |
SidebarContent,
|
|
|
|
| 354 |
<Settings className="mr-2 h-4 w-4 hover:text-sidebar-accent" />
|
| 355 |
MCP Settings
|
| 356 |
</DropdownMenuItem>
|
| 357 |
+
<DropdownMenuItem onSelect={(e) => {
|
| 358 |
+
e.preventDefault();
|
| 359 |
+
window.open("https://git.new/s-mcp", "_blank");
|
| 360 |
+
}}>
|
| 361 |
+
<Github className="mr-2 h-4 w-4 hover:text-sidebar-accent" />
|
| 362 |
+
GitHub
|
| 363 |
+
</DropdownMenuItem>
|
| 364 |
<DropdownMenuItem onSelect={(e) => e.preventDefault()}>
|
| 365 |
<div className="flex items-center justify-between w-full">
|
| 366 |
<div className="flex items-center">
|