Skip to content

Commit

Permalink
feat: align theme switcher top right
Browse files Browse the repository at this point in the history
  • Loading branch information
mgierada committed Jul 1, 2024
1 parent 912d407 commit c0a22dc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ui/src/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ const Home = async () => {

return (
<main className="flex flex-col min-h-screen items-center justify-between p-4">
<div className="flex space-x-4 justify-center lg:grid-cols-2 md:grid-cols-2">
<div className="absolute top-0 right-0 m-4">
<ThemeToggle />
</div>
<div className="flex space-x-4 justify-center lg:grid-cols-2 md:grid-cols-2 mt-16">
<DisplayCard
title="Healthy"
value={dataHealthyCounter.maxValue}
Expand All @@ -114,7 +117,6 @@ const Home = async () => {
value={dataIllnessCounter.maxValue}
description="Maximum duration of the illness in days"
/>
<ThemeToggle />
</div>
<div className="flex flex-col items-center justify-center">
<HealthStatus
Expand Down Expand Up @@ -159,7 +161,7 @@ const Home = async () => {
}}
/>
</div>
</main>
</main >
);
};

Expand Down

0 comments on commit c0a22dc

Please sign in to comment.