diff --git a/apps/web/app/(auth)/signin/page.tsx b/apps/web/app/(auth)/signin/page.tsx index b84d3c7d..91cad757 100644 --- a/apps/web/app/(auth)/signin/page.tsx +++ b/apps/web/app/(auth)/signin/page.tsx @@ -9,12 +9,12 @@ export const runtime = "edge"; async function Signin() { return (
-
+
SuperMemory logo SuperMemory.ai
@@ -28,7 +28,7 @@ async function Signin() {

{ @@ -40,35 +40,30 @@ async function Signin() { >
-
- By continuing, you agree to the - - {" "} +
+ Terms of Service - {" "} - and - + | + {" "} Privacy Policy
-
+
Ready for your{" "} Second brain? diff --git a/apps/web/app/(dash)/dynamicisland.tsx b/apps/web/app/(dash)/dynamicisland.tsx index 4da3298e..cfe799af 100644 --- a/apps/web/app/(dash)/dynamicisland.tsx +++ b/apps/web/app/(dash)/dynamicisland.tsx @@ -4,7 +4,7 @@ import { AddIcon } from "@repo/ui/icons"; import Image from "next/image"; import { AnimatePresence, useMotionValueEvent, useScroll } from "framer-motion"; -import { useState } from "react"; +import { useEffect, useRef, useState } from "react"; import { motion } from "framer-motion"; import { Label } from "@repo/ui/shadcn/label"; import { Input } from "@repo/ui/shadcn/input"; @@ -54,19 +54,36 @@ export default DynamicIsland; function DynamicIslandContent() { const [show, setshow] = useState(true); - function cancelfn(){ + function cancelfn() { setshow(true); } + + const lastBtn = useRef(); + useEffect(() => { + console.log(show); + }, [show]); + + useEffect(() => { + document.addEventListener("keydown", (e) => { + if (e.key === "Escape") { + setshow(true); + } + if (e.key === "a" && lastBtn.current === "Alt") { + setshow(false); + } + lastBtn.current = e.key; + }); + }, []); return ( <> {show ? (
setshow(!show)} - className="bg-[#1F2428] px-3 w-[2.23rem] overflow-hidden hover:w-[8.7rem] whitespace-nowrap py-2 rounded-3xl transition-[width]" + className="bg-[#1F2428] px-3 w-[2.23rem] overflow-hidden hover:w-[9.2rem] whitespace-nowrap py-2 rounded-3xl transition-[width] cursor-pointer" >
- Add icon - Add Content + Add icon + Add Content
) : ( @@ -80,25 +97,44 @@ function DynamicIslandContent() { const fakeitems = ["spaces", "page", "note"]; -function ToolBar({cancelfn}: {cancelfn: ()=> void}) { - +function ToolBar({ cancelfn }: { cancelfn: () => void }) { const [index, setIndex] = useState(0); return ( -
-
- setIndex(i)} - /> -
- { index === 0 ? - : - index === 1 ? - : - - } -
+ + +
+ setIndex(i)} + /> +
+ {index === 0 ? ( + + ) : index === 1 ? ( + + ) : ( + + )} +
+
); } @@ -112,7 +148,7 @@ export const HoverEffect = ({ indexFn: (i: number) => void; }) => { return ( -
+
{items.map((item, idx) => (