Skip to content

Commit 59d1444

Browse files
committed
Tweak styles
1 parent fb11559 commit 59d1444

2 files changed

Lines changed: 17 additions & 35 deletions

File tree

  • src
    • components/data-entry
    • pages/students/[student_id]/goals/[goal_id]/benchmarks/[benchmark_id]/dataEntry
Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import Box from "@mui/material/Box";
2-
import Grid2 from "@mui/material/Grid2";
1+
import { Card, CardContent, Grid2, Stack } from "@mui/material";
32

43
import Chip from "../design_system/chip/Chip";
54

@@ -18,26 +17,11 @@ export default function BenchmarksContainer({
1817
}) {
1918
const router = useRouter();
2019
return (
21-
<Box
22-
sx={{
23-
marginBottom: "2rem",
24-
width: "100%",
25-
}}
26-
>
27-
<Box
28-
sx={{
29-
display: "flex",
30-
flexDirection: "column",
31-
justifyContent: "space-between",
32-
backgroundColor: "var(--grey-100)",
33-
padding: "24px",
34-
gap: "24px",
35-
borderRadius: "8px",
36-
}}
37-
>
20+
<Card>
21+
<CardContent>
3822
<Chip
3923
variant="task"
40-
label={`Benchmark ${benchmarks ? benchmarks?.number.toString() : ""}`}
24+
label={`Benchmark #${benchmarks ? benchmarks?.number.toString() : ""}`}
4125
sx={{ marginTop: "10px", marginBottom: "10px" }}
4226
/>
4327
<p>{benchmarks?.description}</p>
@@ -46,7 +30,7 @@ export default function BenchmarksContainer({
4630
spacing={2}
4731
columnSpacing={{ xs: 1, sm: 2, md: 3 }}
4832
direction={{ xs: "column", sm: "row" }}
49-
sx={{ marginTop: "30px", width: "100%" }}
33+
sx={{ marginTop: "30px", width: "100%", marginBottom: "1.5rem" }}
5034
>
5135
<Grid2 size={6} className={styles.GridItems}>
5236
<h1>Frequency</h1>
@@ -65,18 +49,16 @@ export default function BenchmarksContainer({
6549
<p>{benchmarks?.setup}</p>
6650
</Grid2>
6751
</Grid2>
68-
<Box
69-
sx={{ display: "flex", justifyContent: "center", marginTop: "20px" }}
70-
>
52+
<Stack alignItems="center">
7153
<Button
7254
onClick={() =>
7355
router.push(`/benchmarks/${benchmarks?.benchmark_id}`)
7456
}
7557
>
7658
Start Trial
7759
</Button>
78-
</Box>
79-
</Box>
80-
</Box>
60+
</Stack>
61+
</CardContent>
62+
</Card>
8163
);
8264
}

src/pages/students/[student_id]/goals/[goal_id]/benchmarks/[benchmark_id]/dataEntry/index.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect } from "react";
22
import { useRouter } from "next/router";
3-
import { Stack, Box } from "@mui/material";
3+
import { Stack, Typography } from "@mui/material";
44

55
import { trpc } from "@/client/lib/trpc";
66
import GoalCard from "@/components/data-entry/GoalCard";
@@ -46,16 +46,16 @@ const GoalPage: NextPageWithBreadcrumbs = () => {
4646

4747
return (
4848
<>
49-
<Box sx={{ textAlign: "left" }}>
50-
<h1>Data Entry</h1>
51-
<h1 id={styles.mainh1}>
49+
<Stack spacing={1} sx={{ marginBottom: "2rem" }}>
50+
<Typography variant="h3">Data Entry</Typography>
51+
<Typography variant="h4" color="primary">
5252
{student?.first_name} {student?.last_name}
53-
</h1>
54-
</Box>
53+
</Typography>
54+
</Stack>
5555
<Stack spacing={2} id={styles.goalStack}>
5656
{goal && (
5757
<GoalHeader
58-
name={`Goal ${goal.number}`}
58+
name={`Goal #${goal.number}`}
5959
description={goal.description}
6060
createdAt={goal.created_at}
6161
goalId={goal.goal_id}
@@ -88,7 +88,7 @@ GoalPage.getBreadcrumbs = function getBreadcrumbs({
8888
});
8989
breadcrumbs.push({
9090
href: `/students/${student.student_id}/goals/${goal.goal_id}/benchmarks/${filteredBenchmark.benchmark_id}`,
91-
children: `Benchmark ${filteredBenchmark.number}`,
91+
children: `Benchmark #${filteredBenchmark.number}`,
9292
});
9393
breadcrumbs.push({
9494
children: "Data Entry",

0 commit comments

Comments
 (0)