Updated default font and some small styling changes
This commit is contained in:
1 parent
5be6d1653e
commit
30b7856c44
15 files changed
+64
-40
No files matched your search
@@ -31,7 +31,7 @@
|
||||
.account .MuiButtonGroup-root button {
|
||||
border-color: var(--env-var-color-16);
|
||||
}
|
||||
.account button{
|
||||
.account button:not(.MuiIconButton-root) {
|
||||
height: 34px;
|
||||
}
|
||||
.account [class$="-form"] {
|
||||
@@ -70,7 +70,6 @@
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
|
||||
/* for testing, will remove later */
|
||||
@media only screen and (max-width: 1600px) {
|
||||
.edit-profile-form__wrapper .MuiStack-root:not(.row-stack),
|
||||
@@ -106,4 +105,4 @@
|
||||
}
|
||||
.edit-team-form .MuiTableBody-root .MuiTableCell-root {
|
||||
padding: var(--env-var-spacing-1-plus) var(--env-var-spacing-2) !important;
|
||||
}
|
||||
}
|
||||
@@ -51,15 +51,12 @@ const Account = ({ open = "profile" }) => {
|
||||
minWidth: "fit-content",
|
||||
minHeight: 0,
|
||||
paddingLeft: "0",
|
||||
paddingY: "10px",
|
||||
marginRight: "20px",
|
||||
paddingY: theme.gap.small,
|
||||
fontWeight: 400,
|
||||
marginRight: theme.gap.ml,
|
||||
"&:focus": {
|
||||
outline: "none",
|
||||
},
|
||||
"& .MuiTouchRipple-root": {
|
||||
pointerEvents: "none",
|
||||
display: "none",
|
||||
},
|
||||
}}
|
||||
/>
|
||||
))}
|
||||
|
||||
@@ -158,9 +158,9 @@ const Login = () => {
|
||||
}
|
||||
label="Remember me"
|
||||
/>
|
||||
<span onClick={() => navigate("/forgot-password")}>
|
||||
<Typography component="span" onClick={() => navigate("/forgot-password")}>
|
||||
Forgot password
|
||||
</span>
|
||||
</Typography>
|
||||
</Stack>
|
||||
</Stack>
|
||||
<Stack gap={theme.gap.ml} mt={theme.gap.large}>
|
||||
@@ -179,13 +179,13 @@ const Login = () => {
|
||||
<Typography component="p" sx={{ alignSelf: "center" }}>
|
||||
Don't have an account?
|
||||
</Typography>
|
||||
<span
|
||||
<Typography component="span"
|
||||
onClick={() => {
|
||||
navigate("/register");
|
||||
}}
|
||||
>
|
||||
Sign up
|
||||
</span>
|
||||
</Typography>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</form>
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
/* ///// */
|
||||
.login-page
|
||||
.MuiStack-root:not(:has(> .MuiButtonBase-root))
|
||||
span:not(.MuiTypography-root):not(.field-required) {
|
||||
> span:not(.field-required):not(.input-error) {
|
||||
color: var(--env-var-color-3);
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
|
||||
@@ -22,7 +22,9 @@ import "./index.css";
|
||||
const StatBox = ({ title, value }) => {
|
||||
return (
|
||||
<Box className="stat-box">
|
||||
<Typography variant="h6">{title}</Typography>
|
||||
<Typography variant="h6" sx={{ fontWeight: 400 }}>
|
||||
{title}
|
||||
</Typography>
|
||||
<Typography variant="h4">{value}</Typography>
|
||||
</Box>
|
||||
);
|
||||
@@ -64,7 +66,13 @@ const DetailsPage = () => {
|
||||
data: [
|
||||
{
|
||||
id: idx,
|
||||
data: <StatusLabel status={status} text={status} />,
|
||||
data: (
|
||||
<StatusLabel
|
||||
status={status}
|
||||
text={status}
|
||||
customStyles={{ textTransform: "capitalize" }}
|
||||
/>
|
||||
),
|
||||
},
|
||||
{ id: idx + 1, data: new Date(check.createdAt).toLocaleString() },
|
||||
{ id: idx + 2, data: check.statusCode },
|
||||
|
||||
@@ -31,3 +31,7 @@
|
||||
font-size: var(--env-var-font-size-small);
|
||||
border-color: var(--env-var-color-29);
|
||||
}
|
||||
.page-speed button {
|
||||
height: 34px;
|
||||
align-self: flex-end;
|
||||
}
|
||||
@@ -8,6 +8,8 @@ import { getPageSpeedByUserId } from "../../Features/PageSpeedMonitor/pageSpeedM
|
||||
import PageSpeedIcon from "../../assets/icons/page-speed.svg?react";
|
||||
import Fallback from "../../Components/Fallback";
|
||||
import "./index.css";
|
||||
import Button from "../../Components/Button";
|
||||
import { useNavigate } from "react-router";
|
||||
|
||||
const Card = ({ data }) => {
|
||||
const theme = useTheme();
|
||||
@@ -63,6 +65,7 @@ const Card = ({ data }) => {
|
||||
const PageSpeed = () => {
|
||||
const theme = useTheme();
|
||||
const dispatch = useDispatch();
|
||||
const navigate = useNavigate();
|
||||
|
||||
const { authToken } = useSelector((state) => state.auth);
|
||||
const { monitors } = useSelector((state) => state.pageSpeedMonitors);
|
||||
@@ -74,10 +77,23 @@ const PageSpeed = () => {
|
||||
<Box className="page-speed">
|
||||
{monitors ? (
|
||||
<Stack gap={theme.gap.xs}>
|
||||
<Typography component="h1">All page speed monitors</Typography>
|
||||
<Typography mb={theme.gap.large}>
|
||||
Click on one of the monitors to get more site speed information.
|
||||
</Typography>
|
||||
<Stack
|
||||
direction="row"
|
||||
justifyContent="space-between"
|
||||
mb={theme.gap.large}
|
||||
>
|
||||
<Box>
|
||||
<Typography component="h1">All page speed monitors</Typography>
|
||||
<Typography mt={theme.gap.xs}>
|
||||
Click on one of the monitors to get more site speed information.
|
||||
</Typography>
|
||||
</Box>
|
||||
<Button
|
||||
level="primary"
|
||||
label="Create new"
|
||||
onClick={() => navigate("/page-speed/create")}
|
||||
/>
|
||||
</Stack>
|
||||
<Grid container spacing={theme.gap.large}>
|
||||
{monitors?.map((monitor) => (
|
||||
<Card data={monitor} key={`monitor-${monitor._id}`} />
|
||||
|
||||
Reference in new issue
Block a user