diff --git a/src/components/Playground/Playground.tsx b/src/components/Playground/Playground.tsx index b49e5b6..347d945 100644 --- a/src/components/Playground/Playground.tsx +++ b/src/components/Playground/Playground.tsx @@ -1,18 +1,46 @@ "use client"; import Image from "next/image"; -import React, { useState, useEffect } from "react"; - -import { Dice1, Dice3, Dice5 } from "lucide-react"; - +import React, { useState,useRef, useEffect } from "react"; import Cli from "@/components/CLI/CLI"; import SearchBox from "@/components/Search/SearchBox"; +import { Dice1, Dice3, Dice5, Clock, Command } from "lucide-react"; + import { formatTime } from "@/shared/utils/commonUtils"; +import Link from "next/link"; + + + +const NavBar = () => ( + +); export default function Playground() { const [search, setSearch] = useState(""); const [timeLeft, setTimeLeft] = useState(15 * 60); const [commandsLeft, setCommandsLeft] = useState(1000); + const cliCodeRef = useRef(null); + useEffect(() => { const timer = setInterval(() => { @@ -26,53 +54,70 @@ export default function Playground() { setCommandsLeft((prev) => (prev > 0 ? prev - 1 : 0)); }; - return ( -
-
-
- DiceDB logo -

PlayGround

-
-
-
-
-
-
-
- - - + return ( +
+ +
+
+ +
+
+ +
+ +
+ + + +
+
+ +
+ +
-
-
- -
-
-
-
- Cleanup in : {formatTime(timeLeft)} mins -
-
- Command left: {commandsLeft} +
+
+
+ + Cleanup in: +
+
{formatTime(timeLeft)}
+
+
+
+
+
+
+ + Commands left: +
+
{commandsLeft}
+
+
+
+
+
-
-
-
+
+
-
-
-
+ + + + + + ); }