update: ScriptsPage.tsx

This commit is contained in:
tao.chen
2026-08-26 12:01:52 +08:00
parent e79787fa61
commit f99b543100
2 changed files with 8 additions and 7 deletions
@@ -1,29 +0,0 @@
import Icon from "./Icon";
import { primaryButtonClass } from "../../features/platform/modalUi";
type WelcomePanelProps = {
onCreateScript: () => void;
};
export function WelcomePanel({ onCreateScript }: WelcomePanelProps) {
return (
<div className="welcome-panel-shell flex min-h-full flex-col items-center justify-center p-[35px] text-center">
<div className="mb-[21px] grid size-[86px] place-items-center rounded-[25px] border border-[#cfe0f0] bg-gradient-to-br from-white to-[#eaf4fd] text-[#3d8cd9] shadow-[0_16px_35px_rgb(40_103_165/12%)]">
<Icon name="script" size={42} />
</div>
<span className="text-[10px] font-extrabold tracking-[0.12em] text-[#2e81ce]">
</span>
<h2 className="mb-[7px] mt-[9px] text-[23px] text-[#21354c]">
</h2>
<p className="mb-[22px] w-full max-w-[430px] text-xs leading-[1.8] text-[#76879a]">
Notebook 使 Python
</p>
<button className={primaryButtonClass} type="button" onClick={onCreateScript}>
<Icon name="plus" size={17} />
</button>
</div>
);
}