Skip to content

Commit

Permalink
Update history page
Browse files Browse the repository at this point in the history
  • Loading branch information
astijusar committed Nov 4, 2023
1 parent f222587 commit cf632fa
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
34 changes: 34 additions & 0 deletions src/Web UI/src/components/HistoryCard.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const HistoryCard = () => {
return (
<div className="card border border-gray-400">
<div className="card-body p-3">
<h2 className="card-title leading-none">Legs</h2>
<h5 className="text-sm text-gray-400">November 2</h5>
<div className="mt-2 flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" className="w-5 h-5"><path fillRule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm.75-13a.75.75 0 00-1.5 0v5c0 .414.336.75.75.75h4a.75.75 0 000-1.5h-3.25V5z" clipRule="evenodd" /></svg>
<p className="ms-2">52m</p>
</div>
<div className="mt-2 flex justify-between">
<h2 className="card-title text-base leading-none">Exercise</h2>
<h2 className="card-title text-base leading-none">Best set</h2>
</div>
<div className="leading-none">
<div className="flex justify-between">
<h5 className="text-sm text-gray-400">3 x Hack Squat</h5>
<h5 className="text-sm text-gray-400">30 kg x 12</h5>
</div>
<div className="flex justify-between">
<h5 className="text-sm text-gray-400">3 x Leg Extension (Machine)</h5>
<h5 className="text-sm text-gray-400">30 kg x 18</h5>
</div>
<div className="flex justify-between">
<h5 className="text-sm text-gray-400">3 x Romanian Deadlift (Barbell)</h5>
<h5 className="text-sm text-gray-400">10 kg x 13</h5>
</div>
</div>
</div>
</div>
);
}

export default HistoryCard;
15 changes: 14 additions & 1 deletion src/Web UI/src/routes/History.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
import HistoryCard from "../components/HistoryCard";

const History = () => {
return (
<div className="mx-5">
<h1 className="text-5xl font-semibold">Workout history</h1>
<h1 className="mt-5 text-5xl font-semibold">History</h1>
<div className="mt-7 flex justify-between">
<h5 className="text-sm text-gray-400 tracking-widest">NOVEMBER</h5>
<h5 className="text-sm text-gray-400">4 workouts</h5>
</div>
<div className="mt-3 flex flex-col gap-4">
<HistoryCard />
<HistoryCard />
<HistoryCard />
<HistoryCard />
<HistoryCard />
</div>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Web UI/src/routes/Root.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Outlet } from "react-router-dom";
const Root = () => {
return (
<>
<div className="w-full h-screen bg-neutral flow-root sm:rounded-t-2xl sm:mx-auto sm:w-2/3 md:w-3/5 lg:w-3/6 xl:w-1/3">
<div className="pb-[80px] w-full min-h-screen bg-neutral flow-root sm:rounded-t-2xl sm:mx-auto sm:w-2/3 md:w-3/5 lg:w-3/6 xl:w-1/3">
<Outlet />
</div>
<BottomNav />
Expand Down

0 comments on commit cf632fa

Please sign in to comment.