mirror of
https://github.com/calli-eve/eve-pi.git
synced 2026-02-17 04:59:52 +01:00
color countdown timers and compact more
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import { SessionContext } from "@/app/context/Context";
|
||||
import { Box, Stack, Typography, styled } from "@mui/material";
|
||||
import { useContext } from "react";
|
||||
|
||||
const StackItem = styled(Stack)(({ theme }) => ({
|
||||
...theme.typography.body2,
|
||||
@@ -7,19 +9,23 @@ const StackItem = styled(Stack)(({ theme }) => ({
|
||||
textAlign: "left",
|
||||
justifyContent: "flex-start",
|
||||
alignItems: "center",
|
||||
minHeight: "170px",
|
||||
}));
|
||||
|
||||
export const NoPlanetCard = ({}: {}) => {
|
||||
const { compactMode } = useContext(SessionContext);
|
||||
return (
|
||||
<StackItem alignItems="flex-start" height="100%">
|
||||
<StackItem
|
||||
alignItems="flex-start"
|
||||
height="100%"
|
||||
minHeight={compactMode ? "100px" : "170px"}
|
||||
>
|
||||
<Box
|
||||
width={120}
|
||||
height={120}
|
||||
width={compactMode ? 80 : 120}
|
||||
height={compactMode ? 80 : 120}
|
||||
border="solid 1px black"
|
||||
style={{ borderRadius: 8, marginRight: 4 }}
|
||||
/>
|
||||
<Typography>No planet</Typography>
|
||||
<Typography fontSize="0.8rem">No planet</Typography>
|
||||
</StackItem>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user