π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
refractor(memories):updating-lane-ui
Aswin Asokbee4f8ff0c12
diff --git a/web/apps/memories/src/components/LaneMemoryViewer.tsx b/web/apps/memories/src/components/LaneMemoryViewer.tsxindex 1abed8d54f..fe6590e8fe 100644--- a/web/apps/memories/src/components/LaneMemoryViewer.tsx+++ b/web/apps/memories/src/components/LaneMemoryViewer.tsx@@ -67,6 +67,7 @@ const LANE_GRID_CELL_SIZE_PX = 80;const LANE_GRID_LINE_COLOR = "#08c225";const LANE_GRID_LINE_OPACITY = 0.06;const LANE_GRID_DISPLACEMENT_SCALE = 9;+const LANE_VERTICAL_STACK_GAP_PX = 32;/*** Primary viewer for lane-style public memory shares.@@ -539,14 +540,8 @@ export function LaneMemoryViewer({</LaneMobileHeaderSection>) : (<LaneTopBar>- <LaneDesktopTitle variant="h6">- {laneTitle}- </LaneDesktopTitle><LaneTopBrandSection>- <LaneSharedUsingLabel>- Shared using- </LaneSharedUsingLabel>- <BrandLink+ <LaneHeaderBrandLinkhref="https://ente.io"target="_blank"rel="noreferrer"@@ -556,8 +551,20 @@ export function LaneMemoryViewer({src={ENTE_BRAND_TAG_IMAGE_PATH}alt="Ente Photos"/>- </BrandLink>+ </LaneHeaderBrandLink></LaneTopBrandSection>+ <LaneTopActionSection>+ <LaneHeaderJoinNowButton+ variant="contained"+ color="accent"+ disableElevation+ href="https://ente.io"+ target="_blank"+ rel="noreferrer"+ >+ Try Ente+ </LaneHeaderJoinNowButton>+ </LaneTopActionSection></LaneTopBar>)}@@ -788,6 +795,11 @@ export function LaneMemoryViewer({onScrub={handleScrub}onScrubEnd={handleScrubEnd}/>+ {!isCompactLaneLayout && (+ <LaneSliderTitle variant="h6">+ {laneTitle}+ </LaneSliderTitle>+ )}</LaneBottomSection></LaneCenterSection><LaneFooter>@@ -812,21 +824,10 @@ export function LaneMemoryViewer({target="_blank"rel="noreferrer">- Join now+ Try Ente</MobileJoinNowButton></ViewerFooterBar>- ) : (- <JoinNowButton- variant="contained"- color="accent"- disableElevation- href="https://ente.io"- target="_blank"- rel="noreferrer"- >- Join now- </JoinNowButton>- )}+ ) : null}</LaneFooter></LaneContentContainer></ViewerRoot>@@ -1085,25 +1086,8 @@ const LaneTopBar = styled("div")({display: "flex",alignItems: "center",justifyContent: "space-between",- minHeight: "48px",-});--const LaneDesktopTitle = styled(Typography)({- color: "white",- fontFamily: "'Inter', sans-serif",- fontWeight: 500,- fontSize: "27px",- lineHeight: "24px",- letterSpacing: "-1px",- textAlign: "left",- whiteSpace: "normal",- overflowWrap: "anywhere",- maxWidth: "70%",- "@media (max-width: 900px)": {- fontSize: "22px",- lineHeight: "22px",- letterSpacing: "0px",- },+ minHeight: "64px",+ gap: "20px",});const LaneTopBrandSection = styled("div")({@@ -1112,6 +1096,34 @@ const LaneTopBrandSection = styled("div")({gap: "12px",});+const LaneHeaderBrandLink = styled(BrandLink)({+ "& img": { width: "98px" },+ "@media (max-width: 900px)": { "& img": { width: "84px" } },+});++const LaneTopActionSection = styled("div")({+ display: "flex",+ alignItems: "center",+});++const LaneHeaderJoinNowButton = styled(JoinNowButton)({+ fontSize: "17px",+ paddingBlock: "14px",+ paddingInline: "30px",+});++const LaneSliderTitle = styled(Typography)({+ color: "rgba(255, 255, 255, 0.42)",+ fontWeight: 300,+ fontSize: "14px",+ lineHeight: 1.15,+ letterSpacing: "-0.01em",+ textAlign: "center",+ whiteSpace: "normal",+ overflowWrap: "anywhere",+ maxWidth: "min(42vw, 420px)",+});+const LaneCenterSection = styled("div")({width: "100%",flex: 1,@@ -1120,8 +1132,9 @@ const LaneCenterSection = styled("div")({flexDirection: "column",alignItems: "center",justifyContent: "center",- gap: "38px",- "@media (max-width: 900px)": { gap: "28px" },+ gap: `${LANE_VERTICAL_STACK_GAP_PX}px`,+ transform: "translateY(-28px)",+ "@media (max-width: 900px)": { transform: "translateY(0)" },});const LaneFooter = styled("div")({@@ -1137,17 +1150,6 @@ const LaneFooter = styled("div")({},});-const LaneSharedUsingLabel = styled("span")({- color: "rgba(255, 255, 255, 0.53)",- fontFamily: "var(--font-itim), cursive",- fontStyle: "normal",- fontWeight: 400,- fontSize: "24px",- lineHeight: "13px",- textAlign: "center",- whiteSpace: "nowrap",-});-const LaneCardStack = styled("div")({ position: "relative", flexShrink: 0 });const LaneStackSlice = styled("div")({@@ -1188,7 +1190,7 @@ const LaneBottomSection = styled("div")({flexDirection: "column",alignItems: "center",justifyContent: "flex-end",- gap: "20px",+ gap: `${LANE_VERTICAL_STACK_GAP_PX}px`,width: "100%",paddingBottom: 0,});@@ -1216,10 +1218,9 @@ const LanePlaybackButton = styled("button")({const LaneCaption = styled("div")({color: "rgba(255, 255, 255, 0.53)",- fontFamily: "var(--font-itim), cursive",- fontStyle: "normal",- fontWeight: 400,+ fontWeight: 600,fontSize: "24px",+ letterSpacing: "-0.01em",lineHeight: 1.15,textAlign: "center",whiteSpace: "normal",diff --git a/web/apps/memories/src/components/PublicMemoryControls.tsx b/web/apps/memories/src/components/PublicMemoryControls.tsxindex 040472f4ca..eeddb7fee7 100644--- a/web/apps/memories/src/components/PublicMemoryControls.tsx+++ b/web/apps/memories/src/components/PublicMemoryControls.tsx@@ -32,10 +32,9 @@ const LaneCaptionInline = styled("span")({const LaneCaptionNumber = styled("span")({color: "rgba(255, 255, 255, 0.9)",- fontFamily: "var(--font-itim), cursive",fontSize: "24px",- fontStyle: "normal",- fontWeight: 400,+ fontWeight: 600,+ letterSpacing: "-0.01em",lineHeight: 1.1,display: "inline-flex",minWidth: "2ch",