Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
183 changes: 94 additions & 89 deletions documentation/src/components/server-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ export function ServerCard({ server }: { server: MCPServer }) {
const [isCommandVisible, setIsCommandVisible] = useState(false);

return (
<div className="server-card">
<div className="card-glow"></div>
<div className="card">
<div className="card-header">
<div className="card-header-content">
<Link
to={`/extensions/detail?id=${server.id}`}
className="extension-title"
>
<Link
to={`/extensions/detail?id=${server.id}`}
className="extension-title h-full"
>
<div className="server-card interactive w-full h-full">
<div className="card-glow"></div>
<div className="card">
<div className="card-header">
<div className="card-header-content">
<svg
className="extension-icon"
width="13"
Expand All @@ -41,94 +41,99 @@ export function ServerCard({ server }: { server: MCPServer }) {
/>
</g>
</svg>
<div className="home-page-server-name">
{server.name}
</div>
</Link>
<div className="home-page-server-name">{server.name}</div>
</div>
</div>
</div>
<div className="card-content">
<div>
<div className="card-content">
<div>
<p className="card-description">{server.description}</p>
</div>
<div>
<p className="card-description">{server.description}</p>
</div>

<div className="py-4">
{server.is_builtin ? (
<div className="flex items-center gap-2">
<Info style={{ width: '12px', height: '12px' }} className="text-textSubtle shrink-0" />
<span style={{ fontSize: '12px' }} className="text-textSubtle leading-normal">Can be enabled in the goose settings page</span>
</div>
) : (
<>
<button
onClick={() => setIsCommandVisible(!isCommandVisible)}
className="command-toggle"
>
<Terminal className="h-4 w-4" />
<h4 className="mx-2">Command</h4>
<ChevronRight
className={`ml-auto transition-transform ${
isCommandVisible ? "rotate-90" : ""
}`}
<div className="py-4">
{server.is_builtin ? (
<div className="flex items-center gap-2">
<Info
style={{ width: "12px", height: "12px" }}
className="text-textSubtle shrink-0"
/>
</button>
<AnimatePresence>
{isCommandVisible && (
<motion.div
className="command-content"
initial={{ opacity: 0, translateY: -20 }}
animate={{ opacity: 1, translateY: 0 }}
exit={{
opacity: 0,
translateY: -20,
transition: { duration: 0.1 },
}}
>
<code>
{`goose session --with-extension "${server.command}"`}
</code>
</motion.div>
)}
</AnimatePresence>
</>
)}
<span
style={{ fontSize: "12px" }}
className="text-textSubtle leading-normal"
>
Can be enabled in the goose settings page
</span>
</div>
) : (
<>
<button
onClick={() => setIsCommandVisible(!isCommandVisible)}
className="command-toggle"
>
<Terminal className="h-4 w-4" />
<h4 className="mx-2">Command</h4>
<ChevronRight
className={`ml-auto transition-transform ${
isCommandVisible ? "rotate-90" : ""
}`}
/>
</button>
<AnimatePresence>
{isCommandVisible && (
<motion.div
className="command-content"
initial={{ opacity: 0, translateY: -20 }}
animate={{ opacity: 1, translateY: 0 }}
exit={{
opacity: 0,
translateY: -20,
transition: { duration: 0.1 },
}}
>
<code>
{`goose session --with-extension "${server.command}"`}
</code>
</motion.div>
)}
</AnimatePresence>
</>
)}
</div>
</div>
</div>

<div className="card-footer">
<a
href={server.link}
target="_blank"
rel="noopener noreferrer"
className="card-stats"
>
<Star className="h-4 w-4" />
<span>{server.githubStars} on Github</span>
</a>
<div className="card-action">
{server.is_builtin ? (
<div
className="built-in-badge"
title="This extension is built into goose and can be enabled in the settings page"
>
Built-in
</div>
) : (
<a
href={getGooseInstallLink(server)}
target="_blank"
rel="noopener noreferrer"
className="install-button"
>
<span>Install</span>
<Download className="h-4 w-4" />
</a>
)}
<div className="card-footer">
<Link
to={server.link}
className="card-stats"
onClick={(e) => e.stopPropagation()}
>
<Star className="h-4 w-4" />
<span>{server.githubStars} on Github</span>
</Link>
<div className="card-action">
{server.is_builtin ? (
<div
className="built-in-badge"
title="This extension is built into goose and can be enabled in the settings page"
>
Built-in
</div>
) : (
<a
href={getGooseInstallLink(server)}
target="_blank"
rel="noopener noreferrer"
className="install-button"
>
<span>Install</span>
<Download className="h-4 w-4" />
</a>
)}
</div>
</div>
</div>
</div>
</div>
</div>
</Link>
);
}
}
62 changes: 56 additions & 6 deletions documentation/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
--ifm-color-primary-lightest: #3cad6e;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);

/* Additional Arcade color system variables */
--background-app: var(--constant-white);
--background-prominent: var(--grey-80);
Expand Down Expand Up @@ -181,8 +181,7 @@
/* video adnomition */
--ifm-color-video-alert-contrast-background: #336e62;
--ifm-color-video-alert-contrast-foreground: rgb(216 251 216);
--ifm-color-video-alert-border: #99d5c5
;
--ifm-color-video-alert-border: #99d5c5;
}

/* overrides */
Expand Down Expand Up @@ -274,8 +273,59 @@ html[data-theme="light"] .hide-in-light {
}

.alert--video {
--ifm-alert-background-color: var(--ifm-color-video-alert-contrast-background);
--ifm-alert-background-color: var(
--ifm-color-video-alert-contrast-background
);
--ifm-alert-background-color-highlight: rgba(84, 199, 236, 0.15);
--ifm-alert-foreground-color: var(--ifm-color-video-alert-contrast-foreground);
--ifm-alert-foreground-color: var(
--ifm-color-video-alert-contrast-foreground
);
--ifm-alert-border-color: var(--ifm-color-video-alert-border);
}
}

.navbar {
border-bottom: 1px solid var(--border-divider);
}

.navbar__item {
display: flex;
align-items: center;
}

.iconExternalLink_nPIU {
margin-left: 8px !important;
}

.mx-auto {
margin-left: auto;
margin-right: auto;
}

@media (min-width: 1536px) {
.container {
max-width: 1536px;
}
}
@media (min-width: 1280px) {
.container {
max-width: 1280px;
}
}
@media (min-width: 1024px) {
.container {
max-width: 1024px;
}
}
@media (min-width: 768px) {
.container {
max-width: 768px;
}
}
@media (min-width: 640px) {
.container {
max-width: 640px;
}
}
.container {
width: 100%;
}
17 changes: 9 additions & 8 deletions documentation/src/css/extensions.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
transition: all 0.3s ease;
}

.server-card:hover {
.server-card.interactive:hover {
background-color: transparent;
transform: translateY(-2px);
}
Expand All @@ -63,7 +63,7 @@
top: -150px;
left: -50px;
transform-origin: center;
background: linear-gradient(45deg, #13BBAF, #FF4F00);
background: linear-gradient(45deg, #13bbaf, #ff4f00);
animation: rotate 6s linear infinite;
z-index: -1;
transition: opacity 0.2s;
Expand Down Expand Up @@ -178,7 +178,8 @@
}

.command-content code {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
"Liberation Mono", "Courier New", monospace;
font-size: 0.875rem;
}

Expand Down Expand Up @@ -240,7 +241,7 @@
}

.install-button:hover svg {
color: #FA5204;
color: #fa5204;
}

.built-in-badge {
Expand Down Expand Up @@ -274,16 +275,16 @@
}

/* Dark mode adjustments */
html[data-theme='dark'] .card {
html[data-theme="dark"] .card {
background-color: var(--background-app);
border-color: var(--border-subtle);
box-shadow: none;
}

html[data-theme='dark'] .command-content {
html[data-theme="dark"] .command-content {
background-color: rgba(255, 255, 255, 0.05);
}

html[data-theme='dark'] .built-in-badge {
html[data-theme="dark"] .built-in-badge {
background-color: rgba(255, 255, 255, 0.1);
}
}
Loading