diff --git a/ui/app/src/App.tsx b/ui/app/src/App.tsx index ed95342..7d71aa4 100644 --- a/ui/app/src/App.tsx +++ b/ui/app/src/App.tsx @@ -15,7 +15,7 @@ function App() { <>
-
+
@@ -24,7 +24,9 @@ function App() { diff --git a/ui/app/src/CreatorPage.tsx b/ui/app/src/CreatorPage.tsx index d2d1b8e..b683d9c 100644 --- a/ui/app/src/CreatorPage.tsx +++ b/ui/app/src/CreatorPage.tsx @@ -77,17 +77,24 @@ const CreatorPage = () => {
-

+
{fromBlock != null ? ( <> - {`Created Streams from block ${String(fromBlock)}`} + {"Created Streams from block "} + + {String(fromBlock)} +
- {`by ${creator}`} + {"by "} + {creator} ) : ( - "Created Streams" + <> + {"Created Streams by "} + {creator} + )} -

+ {/* Stream list */}
{sm === null ? ( diff --git a/ui/app/src/Header.tsx b/ui/app/src/Header.tsx index ee581c0..0c7aef6 100644 --- a/ui/app/src/Header.tsx +++ b/ui/app/src/Header.tsx @@ -3,23 +3,32 @@ import { useNavigate } from "react-router-dom"; import { useTheme } from "./ThemeContext"; import { Button, SelectMenu, ArrowLeftIcon } from "evergreen-ui"; -const Header = () => { +interface HeaderProps { + showNavButtons?: boolean; +} + +const Header: React.FC = ({ showNavButtons = true }) => { const { theme, setTheme } = useTheme(); const navigate = useNavigate(); - const themes = ["sakura", "tokyoNight", "nord"]; + const themes = ["sakura", "tokyoNight", "nord"]; return (
- - + {showNavButtons && ( + <> + + + + )} + ({ label: t, value: t }))} diff --git a/ui/app/src/StreamManagerPage.tsx b/ui/app/src/StreamManagerPage.tsx index 122cafe..6589d90 100644 --- a/ui/app/src/StreamManagerPage.tsx +++ b/ui/app/src/StreamManagerPage.tsx @@ -86,15 +86,17 @@ const StreamManagerPage = () => { {fromBlock != null ? ( <> {"Created Streams from block "} - {String(fromBlock)} + + {String(fromBlock)} +
{"on "} - {sm} + {sm} ) : ( <> {"Created Streams on "} - {sm} + {sm} )}
@@ -129,7 +131,14 @@ const StreamManagerPage = () => { return (

- By {creator}: + By{" "} + + {creator} + + :

    diff --git a/ui/app/src/StreamPage.tsx b/ui/app/src/StreamPage.tsx index 8ab3c00..963aadf 100644 --- a/ui/app/src/StreamPage.tsx +++ b/ui/app/src/StreamPage.tsx @@ -121,7 +121,8 @@ const StreamPage = () => {

- Stream {streamId} by
{creator} + Stream {streamId} by +
{creator}

{stream ? ( <> @@ -129,7 +130,9 @@ const StreamPage = () => { {/* Stream Data */}

- Stream Manager: + + Stream Manager:{" "} + {sm}

@@ -141,13 +144,17 @@ const StreamPage = () => { {creator}

- Amount per second: + + Amount per second:{" "} + {streamInfo.amountPerSecond ? String(streamInfo.amountPerSecond) : "fetching..."}

- Funded amount: + + Funded amount:{" "} + {streamInfo.fundedAmount ? String(streamInfo.fundedAmount) : "fetching..."} diff --git a/ui/app/src/tokyoNight.css b/ui/app/src/tokyoNight.css index a4aa091..31679f0 100644 --- a/ui/app/src/tokyoNight.css +++ b/ui/app/src/tokyoNight.css @@ -33,6 +33,7 @@ body.tokyoNight { background-color: var(--aquamarine); color: var(--federal-blue); font-family: "Tomorrow", sans-serif; + animation: pulsate 1.5s infinite ease-in-out; } .app.tokyoNight .theme-stream-button:hover { background-color: var(--polynesian-blue); @@ -78,3 +79,15 @@ body.tokyoNight { .app.tokyoNight .stream-data-subtitle { color: var(--aquamarine); } + +@keyframes pulsate { + 0% { + box-shadow: 0 0 5px var(--aquamarine), 0 0 10px var(--aquamarine), 0 0 15px var(--aquamarine); + } + 50% { + box-shadow: 0 0 15px var(--aquamarine), 0 0 20px var(--aquamarine), 0 0 25px var(--aquamarine); + } + 100% { + box-shadow: 0 0 5px var(--aquamarine), 0 0 10px var(--aquamarine), 0 0 15px var(--aquamarine); + } +}