From 5b384487331eaf08031dfe438bb2affa31aafcbb Mon Sep 17 00:00:00 2001
From: Ellie Huxtable <ellie@atuin.sh>
Date: Mon, 8 Jul 2024 11:17:47 +0100
Subject: feat(gui): runbooks that run (#2233)

* add initial runbooks frontend

* fix buttons, scroll, add shell support to editor

* work

* some tweaks

* wip - run crate

* functioning executable blocks

* handle resizing, killing ptys

* clear properly on stop

* move terminal to its own component, handle lifecycle better

* fix all build issues

* ffs codespelll

* update lockfile

* clippy is needy once more

* only build pty stuff on mac/linux

* vendor pty handling into desktop

* update lockfile
---
 ui/src/pages/Home.tsx | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

(limited to 'ui/src/pages/Home.tsx')

diff --git a/ui/src/pages/Home.tsx b/ui/src/pages/Home.tsx
index 04bd768e..9b1c0976 100644
--- a/ui/src/pages/Home.tsx
+++ b/ui/src/pages/Home.tsx
@@ -1,4 +1,4 @@
-import React, { useEffect, useState } from "react";
+import React, { useEffect } from "react";
 import { formatRelative } from "date-fns";
 import { Tooltip as ReactTooltip } from "react-tooltip";
 
@@ -41,16 +41,24 @@ function Header({ name }: any) {
           {greeting}
         </h2>
         <h3 className="text-xl leading-7 text-gray-900 pt-4">
-          Welcome to Atuin.
+          Welcome to{" "}
+          <a
+            href="https://atuin.sh"
+            target="_blank"
+            rel="noopener noreferrer nofollow"
+          >
+            Atuin
+          </a>
+          .
         </h3>
       </div>
     </div>
   );
 }
 
-const explicitTheme: ThemeInput = {
+const explicitTheme = {
   light: ["#f0f0f0", "#c4edde", "#7ac7c4", "#f73859", "#384259"],
-  dark: ["#383838", "#4D455D", "#7DB9B6", "#F5E9CF", "#E96479"],
+  dark: ["#f0f0f0", "#c4edde", "#7ac7c4", "#f73859", "#384259"],
 };
 
 export default function Home() {
@@ -147,7 +155,7 @@ export default function Home() {
           <ActivityCalendar
             theme={explicitTheme}
             data={calendar}
-            weekStart={weekStart}
+            weekStart={weekStart as any}
             renderBlock={(block, activity) =>
               React.cloneElement(block, {
                 "data-tooltip-id": "react-tooltip",
-- 
cgit v1.3.1

