improv: ui
This commit is contained in:
parent
3be744b70e
commit
ad32ef378a
1 changed files with 7 additions and 11 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { CommandLineIcon, XMarkIcon } from "@heroicons/react/24/outline";
|
||||
import { useContext, useEffect, useState } from "react";
|
||||
import { SecondaryButton } from "../../../components";
|
||||
import { CloseButton, SecondaryButton } from "../../../components";
|
||||
import { Card } from "../../../components/ui";
|
||||
import { IdeMessengerContext } from "../../../context/IdeMessenger";
|
||||
import { getPlatform } from "../../../util";
|
||||
|
|
@ -41,16 +41,12 @@ export function CliInstallBanner() {
|
|||
return (
|
||||
<div className="border-t-vsc-input-border bg-vsc-background sticky bottom-0 border-t px-4 pb-4 pt-4">
|
||||
<Card className="relative">
|
||||
<button
|
||||
className="hover:bg-vsc-background hover:text-foreground absolute right-2 top-2 rounded p-1 text-gray-500"
|
||||
onClick={() => setDismissed(true)}
|
||||
aria-label="Dismiss"
|
||||
>
|
||||
<XMarkIcon className="h-4 w-4" />
|
||||
</button>
|
||||
<div className="flex items-start gap-4 pr-8">
|
||||
<CloseButton onClick={() => setDismissed(true)}>
|
||||
<XMarkIcon className="h-5 w-5 hover:brightness-125" />
|
||||
</CloseButton>
|
||||
<div className="flex items-start gap-4">
|
||||
<CommandLineIcon className="mt-1 h-6 w-6 flex-shrink-0 text-gray-400" />
|
||||
<div className="flex flex-1 flex-col gap-2">
|
||||
<div className="flex flex-1 flex-col gap-3">
|
||||
<div>
|
||||
<div className="text-foreground font-medium">
|
||||
Try the Continue CLI
|
||||
|
|
@ -64,7 +60,7 @@ export function CliInstallBanner() {
|
|||
interactive and headless modes.
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex items-center gap-3">
|
||||
<div className="flex flex-col items-start gap-2">
|
||||
<code className="bg-vsc-background text-foreground rounded px-2 py-1 text-xs">
|
||||
npm i -g @continuedev/cli
|
||||
</code>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue