Inline
This commit is contained in:
parent
0d52737c49
commit
334587474f
4 changed files with 28 additions and 29 deletions
|
@ -1,11 +0,0 @@
|
|||
export function BackgroundOverlay() {
|
||||
return (
|
||||
<img
|
||||
style={{ aspectRatio: "2/1" }}
|
||||
width="100%"
|
||||
src="/images/subscription-card-background/1x.png"
|
||||
srcSet="/images/subscription-card-background/2x.png 2x,
|
||||
/images/subscription-card-background/3x.png 3x"
|
||||
/>
|
||||
);
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
import { FlexWrapper, Overlay } from "@ente/shared/components/Container";
|
||||
import ChevronRightIcon from "@mui/icons-material/ChevronRight";
|
||||
export function ClickOverlay({ onClick }) {
|
||||
return (
|
||||
<Overlay display="flex">
|
||||
<FlexWrapper
|
||||
onClick={onClick}
|
||||
justifyContent={"flex-end"}
|
||||
sx={{ cursor: "pointer" }}
|
||||
>
|
||||
<ChevronRightIcon />
|
||||
</FlexWrapper>
|
||||
</Overlay>
|
||||
);
|
||||
}
|
|
@ -1,8 +1,7 @@
|
|||
import { FlexWrapper, Overlay } from "@ente/shared/components/Container";
|
||||
import ChevronRightIcon from "@mui/icons-material/ChevronRight";
|
||||
import { Box, Skeleton } from "@mui/material";
|
||||
import { UserDetails } from "types/user";
|
||||
import { BackgroundOverlay } from "./backgroundOverlay";
|
||||
import { ClickOverlay } from "./clickOverlay";
|
||||
|
||||
import { SubscriptionCardContentOverlay } from "./contentOverlay";
|
||||
|
||||
const SUBSCRIPTION_CARD_SIZE = 152;
|
||||
|
@ -32,3 +31,29 @@ export default function SubscriptionCard({ userDetails, onClick }: Iprops) {
|
|||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
function BackgroundOverlay() {
|
||||
return (
|
||||
<img
|
||||
style={{ aspectRatio: "2/1" }}
|
||||
width="100%"
|
||||
src="/images/subscription-card-background/1x.png"
|
||||
srcSet="/images/subscription-card-background/2x.png 2x,
|
||||
/images/subscription-card-background/3x.png 3x"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function ClickOverlay({ onClick }) {
|
||||
return (
|
||||
<Overlay display="flex">
|
||||
<FlexWrapper
|
||||
onClick={onClick}
|
||||
justifyContent={"flex-end"}
|
||||
sx={{ cursor: "pointer" }}
|
||||
>
|
||||
<ChevronRightIcon />
|
||||
</FlexWrapper>
|
||||
</Overlay>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue