Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

landing page

Manav Rathia17fb4e2fbba
diff --git a/web/apps/photos/src/pages/index.tsx b/web/apps/photos/src/pages/index.tsx
index 36a105d0ac..258269576c 100644
--- a/web/apps/photos/src/pages/index.tsx
+++ b/web/apps/photos/src/pages/index.tsx
@@ -134,7 +134,15 @@ const Page: React.FC = () => {
</FocusVisibleButton>
<MobileBoxFooter {...{ host }} />
</MobileBox>
- <DesktopBox>
+ <DesktopBox
+ sx={[
+ { bgcolor: "background.default" },
+ (theme) =>
+ theme.applyStyles("dark", {
+ bgcolor: "fill.faint",
+ }),
+ ]}
+ >
<Stack sx={{ width: "320px", py: 4, gap: 4 }}>
{showLogin ? (
<LoginContents
@@ -204,12 +212,18 @@ const TappableContainer: React.FC<
return (
<CenteredFill
- sx={{
- bgcolor: "background.default",
- "@media (width <= 1024px)": {
- flexDirection: "column",
+ sx={[
+ {
+ bgcolor: "background.paper2",
+ "@media (width <= 1024px)": {
+ flexDirection: "column",
+ },
},
- }}
+ (theme) =>
+ theme.applyStyles("dark", {
+ bgcolor: "background.default",
+ }),
+ ]}
onClick={handleClick}
>
<DevSettings open={showDevSettings} onClose={handleClose} />
@@ -286,21 +300,18 @@ const MobileBoxFooter: React.FC<MobileBoxFooterProps> = ({ host }) => {
);
};
-const DesktopBox = styled(CenteredFlex)(
- ({ theme }) => `
+const DesktopBox = styled(CenteredFlex)`
flex-shrink: 0;
flex-grow: 2;
flex-basis: auto;
height: 100%;
padding-inline: 20px;
- background-color: ${theme.vars.palette.fill.faint};
@media (width <= 1024px) {
display: none;
}
-`,
-);
+`;
const Slideshow: React.FC = () => {
const [selectedIndex, setSelectedIndex] = useState(0);