-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
abad4a8
commit 3626e2b
Showing
6 changed files
with
101 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import styled from "@mui/material/styles/styled"; | ||
|
||
export type ElipsisProps = { | ||
width: number; | ||
height: number; | ||
marginTop: number; | ||
marginLeft: number; | ||
}; | ||
|
||
const Elipsis = styled("div")<ElipsisProps>( | ||
({ width, height, marginTop, marginLeft }) => ({ | ||
width, | ||
height, | ||
borderColor: "rgb(255, 255, 255, 0.5)", | ||
borderWidth: "0.5px", | ||
borderStyle: "solid", | ||
borderRadius: "50%", | ||
marginTop: marginTop, | ||
marginLeft: marginLeft, | ||
}) | ||
); | ||
|
||
export default Elipsis; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,30 @@ | ||
import Typography from "@mui/material/Typography"; | ||
import styled from "@mui/material/styles/styled"; | ||
|
||
const FooterContainer = styled("footer")(({ theme }) => ({ | ||
position: "relative", | ||
color: "#ffffff", | ||
maxWidth: 1100, | ||
margin: "0px auto", | ||
[theme.breakpoints.up("md")]: { | ||
paddingBottom: theme.spacing(12), | ||
}, | ||
})); | ||
type FooterProps = { | ||
left?: string; | ||
right?: string; | ||
}; | ||
|
||
const FooterFlex = styled("div")(({ theme }) => ({ | ||
display: "flex", | ||
flexDirection: "column", | ||
alignItems: "center", | ||
marginLeft: theme.spacing(3.5), | ||
marginRight: theme.spacing(3.5), | ||
borderTop: "1px solid #585587", | ||
paddingTop: theme.spacing(2), | ||
const Footer = styled(Typography)<FooterProps>(({ theme, left, right }) => ({ | ||
[theme.breakpoints.down("md")]: { | ||
display: "flex", | ||
flexGrow: 1, | ||
justifyContent: "center", | ||
paddingBottom: theme.spacing(2), | ||
}, | ||
[theme.breakpoints.up("md")]: { | ||
flexWrap: "wrap", | ||
flexDirection: "row", | ||
alignItems: "unset", | ||
position: "absolute", | ||
left, | ||
right, | ||
bottom: "28px", | ||
}, | ||
color: "#C9CAE8", | ||
fontFamily: "Poppins", | ||
fontSize: "14px", | ||
fontStyle: "normal", | ||
fontWeight: "600", | ||
lineHeight: "18.59px", | ||
})); | ||
|
||
export default function Footer() { | ||
return ( | ||
<FooterContainer> | ||
<FooterFlex> | ||
<Typography> | ||
v{import.meta.env.VITE_APP_VERSION} - {import.meta.env.VITE_APP_CLUSTER} | ||
</Typography> | ||
</FooterFlex> | ||
</FooterContainer> | ||
); | ||
} | ||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import styled from "@mui/material/styles/styled"; | ||
|
||
export type GlowProps = { | ||
position: { | ||
top?: string; | ||
left?: string; | ||
bottom?: string; | ||
right?: string; | ||
}; | ||
size: { | ||
width?: string; | ||
height?: string; | ||
}; | ||
background: string; | ||
}; | ||
|
||
const Glow = styled("div")<GlowProps>( | ||
({ | ||
position: { top, left, bottom, right } = {}, | ||
size: { width, height } = {}, | ||
background, | ||
}) => ({ | ||
position: "absolute", | ||
borderRadius: width, | ||
background, | ||
backdropFilter: "blur(12px)", | ||
width, | ||
height, | ||
flexShrink: 0, | ||
zIndex: -1, | ||
top, | ||
bottom, | ||
left, | ||
right, | ||
}) | ||
); | ||
|
||
export default Glow; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Footer from "./Footer" | ||
|
||
export default function PoweredBy() { | ||
return <Footer right="120px">Powered by xLabs</Footer> | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Footer from "./Footer"; | ||
|
||
export default function Version() { | ||
return ( | ||
<Footer left="120px">v{import.meta.env.VITE_APP_VERSION || "0.0.0"}</Footer> | ||
); | ||
} |