Skip to content

armgit / ente

Public Imported from GitHub
0

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

Polish Space copy and avatar styling

Anand Baburajan7d6ad685fb0c
diff --git a/web/apps/space/src/components/InlinePostButton.tsx b/web/apps/space/src/components/InlinePostButton.tsx
deleted file mode 100644
index df51b7ab38..0000000000
--- a/web/apps/space/src/components/InlinePostButton.tsx
+++ /dev/null
@@ -1,57 +0,0 @@
-import { AddSquareIcon } from "@hugeicons/core-free-icons";
-import { HugeiconsIcon } from "@hugeicons/react";
-import { Box } from "@mui/material";
-import React from "react";
-import { spaceTouchTargetSize } from "styles/touch-targets";
-
-const green = "#08C225";
-
-interface SpaceInlinePostButtonProps {
- disabled?: boolean;
- onClick: () => void;
-}
-
-export const SpaceInlinePostButton: React.FC<SpaceInlinePostButtonProps> = ({
- disabled = false,
- onClick,
-}) => (
- <Box
- className="green-bg"
- component="button"
- type="button"
- disabled={disabled}
- onClick={onClick}
- sx={{
- alignItems: "center",
- appearance: "none",
- bgcolor: green,
- border: 0,
- borderRadius: "20px",
- boxSizing: "border-box",
- color: "#FFFFFF",
- cursor: disabled ? "default" : "pointer",
- display: "inline-flex",
- fontFamily: '"Inter Variable", Inter, sans-serif',
- fontSize: 14,
- fontWeight: 600,
- gap: "8px",
- height: spaceTouchTargetSize,
- justifyContent: "center",
- lineHeight: "20px",
- mt: "24px",
- px: "16px",
- py: 0,
- pointerEvents: "auto",
- whiteSpace: "nowrap",
- "& svg": { display: "block", flexShrink: 0 },
- "&:focus-visible": {
- outline: `2px solid ${green}`,
- outlineOffset: 2,
- },
- "&:hover": disabled ? undefined : { bgcolor: "#07AE22" },
- }}
- >
- <HugeiconsIcon icon={AddSquareIcon} size={20} strokeWidth={1.8} />
- Share a moment
- </Box>
-);
diff --git a/web/apps/space/src/components/PageMeta.tsx b/web/apps/space/src/components/PageMeta.tsx
index 125e700932..7c51d0f2e9 100644
--- a/web/apps/space/src/components/PageMeta.tsx
+++ b/web/apps/space/src/components/PageMeta.tsx
@@ -4,7 +4,7 @@ import { onboardingDescription } from "screens/OnboardingScreen";
const spacePreviewTitle = "Ente Space";
const spacePreviewDescription =
- "A private space for sharing everyday moments with friends and family.";
+ "A private photo-sharing app for keeping up with close friends and family. Share everyday moments, with no ads or algorithms.";
const spaceInvitePreviewTitle = "You're invited to my Space";
const spaceInvitePreviewDescription =
"See the everyday moments I share on Ente Space.";
diff --git a/web/apps/space/src/screens/FriendsScreen.tsx b/web/apps/space/src/screens/FriendsScreen.tsx
index 877ec93cc3..7dfa99e064 100644
--- a/web/apps/space/src/screens/FriendsScreen.tsx
+++ b/web/apps/space/src/screens/FriendsScreen.tsx
@@ -1243,7 +1243,7 @@ export const FriendsScreen: React.FC<FriendsScreenProps> = ({
textAlign: "center",
}}
>
- No friends yet
+ Add the people you want to keep up with.
<SpaceShareInviteButton
label="Invite friends"
profileLink={profileLink}
diff --git a/web/apps/space/src/screens/HomeScreen.tsx b/web/apps/space/src/screens/HomeScreen.tsx
index 7ac876e8bb..ff310c790f 100644
--- a/web/apps/space/src/screens/HomeScreen.tsx
+++ b/web/apps/space/src/screens/HomeScreen.tsx
@@ -33,7 +33,6 @@ import {
import {
spaceAppBackground,
spaceAppBackgroundColor,
- spaceSurface,
spaceText,
spaceTextMuted,
} from "styles/colors";
@@ -64,6 +63,8 @@ const headerAvatarSize = 36;
const headerAvatarImageSize = 26;
const headerChatCircleSize = 36;
const headerChromeColor = "#F0F0F0";
+const avatarFallbackColor = "#888888";
+const avatarFallbackTextColor = "#FFFFFF";
const mediaPlaceholderColor = "#E5E7EA";
const headerHeight = 64;
const headerIconSize = 22;
@@ -703,8 +704,8 @@ export const FriendPostCircle: React.FC<FriendPostCircleProps> = ({
aria-hidden
sx={{
alignItems: "center",
- bgcolor: spaceSurface,
- color: textSecondary,
+ bgcolor: avatarFallbackColor,
+ color: avatarFallbackTextColor,
display: "flex",
fontSize: 14,
fontWeight: 700,
@@ -1740,7 +1741,7 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({
whiteSpace: "nowrap",
}}
>
- Invite your friends and family
+ Invite your close friends and family
</Box>
<Box
component="span"
@@ -1753,7 +1754,7 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({
whiteSpace: "nowrap",
}}
>
- Each friend gets their own tile with
+ Each person gets their own tile with
their latest post
</Box>
<Box
diff --git a/web/apps/space/src/screens/OnboardingScreen.tsx b/web/apps/space/src/screens/OnboardingScreen.tsx
index f643a691ba..5a7a4c4248 100644
--- a/web/apps/space/src/screens/OnboardingScreen.tsx
+++ b/web/apps/space/src/screens/OnboardingScreen.tsx
@@ -5,7 +5,7 @@ import React from "react";
export const onboardingGreen = "#08C225";
export const onboardingTitle = "Share everyday moments";
export const onboardingDescription =
- "A private space for sharing everyday moments with friends and family. No ads. No algorithms.";
+ "Keep up with the people closest to you through everyday photos. No ads. No algorithms.";
const softGreen = "#E7F6E9";
const copyGreen = "#AAFFB8";