Skip to content

Commit

Permalink
minor ui changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgierada committed Jun 13, 2024
1 parent b6bee14 commit 6cb8c35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
8 changes: 1 addition & 7 deletions ui/src/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ import CounterDisplay from "@/components/CounterDisplay";
const Home = () => {
return (
<main className="flex min-h-screen flex-col items-center justify-between p-24">
<div className="z-10 max-w-5xl w-full items-center justify-between font-mono text-sm lg:flex">
<p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">
A dashboard for monitoring custom ohno! events
{/* &nbsp; */}
{/* <code className="font-mono font-bold">src/app/page.js</code> */}
</p>
</div>
<div className="z-10 max-w-5xl w-full items-center justify-between font-mono text-sm lg:flex"></div>

<div className="relative flex place-items-center before:absolute before:h-[300px] before:w-full sm:before:w-[480px] before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-full sm:after:w-[240px] after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700 before:dark:opacity-10 after:dark:from-sky-900 after:dark:via-[#0141ff] after:dark:opacity-40 before:lg:h-[360px] z-[-1]">
<CounterDisplay />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@ import axios from "axios";
const fetchCurrentValue = async () => {
try {
const rootUrl = process.env.NEXT_PUBLIC_ROOT_API_URL;
console.log("rootUrl:", rootUrl);
const endpoint = `${rootUrl}/counter`;
console.log("Endpoint:", endpoint);

const response = await axios.get(endpoint);
console.log("Response:", response.data); // Debug log

if (response.data && typeof response.data.CurrentValue === "number") {
return { currentValue: response.data.CurrentValue, error: null };
} else {
Expand All @@ -32,7 +28,7 @@ const CounterDisplay = async () => {
</h1>
) : (
<h1 className="scroll-m-20 text-4xl font-extrabold trackeng-tight lg:text-5xl">
Current streak: {currentValue} 🔥
Current streak: {currentValue} days 🔥
</h1>
)}
</div>
Expand Down

0 comments on commit 6cb8c35

Please sign in to comment.