Skip to content

armgit / ente

Public Imported from GitHub
0

💚 End-to-end encrypted cloud for everything.

Polish social profile and onboarding

Anand Baburajan32f44955b27e
diff --git a/web/apps/social/public/images/bg-curved-lines.svg b/web/apps/social/public/images/bg-curved-lines.svg
new file mode 100644
index 0000000000..99062b6006
--- /dev/null
+++ b/web/apps/social/public/images/bg-curved-lines.svg
@@ -0,0 +1,3 @@
+<svg width="1357" height="715" viewBox="0 0 1357 715" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M170.065 -10.9783C252.3 109.821 131.817 230.62 68.0684 324.18C4.32028 417.74 -36.4785 570.516 47.0315 558.673C130.542 546.83 263.138 -33.4801 602.278 -51.2447C941.418 -69.0093 367.685 49.4213 455.657 242.463C543.63 435.505 778.223 133.51 999.429 4.42031C1220.63 -124.669 833.684 276.811 539.805 546.832C245.926 816.854 404.021 1065.56 608.015 812.117C812.009 558.673 1136.49 390.504 1281.2 728.031C1425.9 1065.56 1567.42 1109.38 1434.83 861.858C1302.23 614.338 1081.66 -18.0815 1272.27 -41.7676C1462.88 -65.4537 1509.41 -103.351 1571.25 480.511C1633.09 1064.37 1484.55 908.045 1420.17 655.788C1355.78 403.531 1490.93 139.431 1523.44 728.031C1555.95 1316.63 10.0578 1117.67 200.027 896.202C389.997 674.737 261.225 273.258 73.8059 728.031" stroke="#54db83" style="stroke:#54db83;stroke-opacity:1;"/>
+</svg>
diff --git a/web/apps/social/public/images/noise.svg b/web/apps/social/public/images/noise.svg
new file mode 100644
index 0000000000..a6a17a15ee
--- /dev/null
+++ b/web/apps/social/public/images/noise.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev/svgjs" viewBox="0 0 700 700" width="700" height="700"><defs><filter id="nnnoise-filter" x="-20%" y="-20%" width="140%" height="140%" filterUnits="objectBoundingBox" primitiveUnits="userSpaceOnUse" color-interpolation-filters="linearRGB">
+ <feTurbulence type="fractalNoise" baseFrequency="0.079" numOctaves="4" seed="15" stitchTiles="stitch" x="0%" y="0%" width="100%" height="100%" result="turbulence"></feTurbulence>
+ <feSpecularLighting surfaceScale="14" specularConstant="0.6" specularExponent="20" lighting-color="#a9a9a9" x="0%" y="0%" width="100%" height="100%" in="turbulence" result="specularLighting">
+ <feDistantLight azimuth="3" elevation="111"></feDistantLight>
+ </feSpecularLighting>
+
+</filter></defs><rect width="700" height="700" fill="#08c22500"></rect><rect width="700" height="700" fill="#a9a9a9" filter="url(#nnnoise-filter)"></rect></svg>
\ No newline at end of file
diff --git a/web/apps/social/src/pages/_app.tsx b/web/apps/social/src/pages/_app.tsx
index 1c5a04f962..b951190b16 100644
--- a/web/apps/social/src/pages/_app.tsx
+++ b/web/apps/social/src/pages/_app.tsx
@@ -1,4 +1,5 @@
import "@fontsource-variable/inter";
+import "styles/globals.css";
import { CssBaseline } from "@mui/material";
import { ThemeProvider } from "@mui/material/styles";
import { CustomHead } from "ente-base/components/Head";
diff --git a/web/apps/social/src/screens/CreateAccountScreen.tsx b/web/apps/social/src/screens/CreateAccountScreen.tsx
index ede92d5a4c..77054ceb78 100644
--- a/web/apps/social/src/screens/CreateAccountScreen.tsx
+++ b/web/apps/social/src/screens/CreateAccountScreen.tsx
@@ -359,6 +359,11 @@ export const CreateAccountScreen: React.FC<CreateAccountScreenProps> = ({
}}
>
<Box
+ className={
+ acceptedTerms
+ ? "green-bg-with-noise-and-curves"
+ : undefined
+ }
sx={{
alignItems: "center",
bgcolor: acceptedTerms ? green : "transparent",
@@ -445,6 +450,11 @@ export const CreateAccountScreen: React.FC<CreateAccountScreenProps> = ({
}}
>
<Box
+ className={
+ canCreateAccount
+ ? "green-bg-with-noise-and-curves"
+ : undefined
+ }
component="button"
type="button"
disabled={!canCreateAccount}
diff --git a/web/apps/social/src/screens/HomeScreen.tsx b/web/apps/social/src/screens/HomeScreen.tsx
index 2b4c085f99..d0878c1386 100644
--- a/web/apps/social/src/screens/HomeScreen.tsx
+++ b/web/apps/social/src/screens/HomeScreen.tsx
@@ -229,7 +229,7 @@ const FeedItem: React.FC<FeedItemProps> = ({
>
<Box
component="img"
- alt={`${name} moment`}
+ alt={`${name} post`}
src={imageUrl}
sx={{
display: "block",
diff --git a/web/apps/social/src/screens/LoginScreen.tsx b/web/apps/social/src/screens/LoginScreen.tsx
index d92bc4bcd4..c27b383406 100644
--- a/web/apps/social/src/screens/LoginScreen.tsx
+++ b/web/apps/social/src/screens/LoginScreen.tsx
@@ -315,6 +315,11 @@ export const LoginScreen: React.FC<LoginScreenProps> = ({
}}
>
<Box
+ className={
+ canContinue
+ ? "green-bg-with-noise-and-curves"
+ : undefined
+ }
component="button"
type="button"
disabled={!canContinue}
diff --git a/web/apps/social/src/screens/OnboardingScreen.tsx b/web/apps/social/src/screens/OnboardingScreen.tsx
index e80e08aa23..708dd83450 100644
--- a/web/apps/social/src/screens/OnboardingScreen.tsx
+++ b/web/apps/social/src/screens/OnboardingScreen.tsx
@@ -4,7 +4,7 @@ import React from "react";
export const onboardingGreen = "#08C225";
export const onboardingDescription =
- "A truly private, beautiful way to share your life with the people who matter most";
+ "A truly private, beautiful way to share your life with the people you care about";
const softGreen = "#E7F6E9";
const copyGreen = "#AAFFB8";
@@ -64,6 +64,7 @@ export const OnboardingScreen: React.FC<OnboardingScreenProps> = ({
onLogin,
}) => (
<Box
+ className="green-bg-with-noise-and-curves"
component="main"
sx={{
bgcolor: onboardingGreen,
@@ -75,6 +76,7 @@ export const OnboardingScreen: React.FC<OnboardingScreenProps> = ({
}}
>
<Box
+ className="green-bg-with-noise-and-curves"
sx={{
alignItems: "center",
bgcolor: onboardingGreen,
@@ -157,7 +159,7 @@ export const OnboardingScreen: React.FC<OnboardingScreenProps> = ({
whiteSpace: "nowrap",
}}
>
- Share your moments
+ Share your life
</Box>
<Box
component="p"
diff --git a/web/apps/social/src/screens/ProfileScreen.tsx b/web/apps/social/src/screens/ProfileScreen.tsx
index 4cbe247087..b598d5752e 100644
--- a/web/apps/social/src/screens/ProfileScreen.tsx
+++ b/web/apps/social/src/screens/ProfileScreen.tsx
@@ -12,8 +12,14 @@ const paleGreen = "#E7F6E9";
const textBase = "#000";
const textStrong = "#303030";
const textSoft = "#777777";
-const photoGridColumnCount = 4;
-const photoGridRadius = "12px";
+const coverForeground = "#FFFFFF";
+const profileHeaderHeight = 56;
+const profileAvatarTopOffset = 54;
+const profileAvatarSize = 120;
+const profileCoverHeight =
+ profileHeaderHeight + profileAvatarTopOffset + profileAvatarSize / 2;
+const photoMasonryGap = "3px";
+const photoMasonryRadius = "12px";
const samplePhotoUrls = [
"/images/sample-feed-1.jpg",
@@ -24,7 +30,9 @@ const samplePhotoUrls = [
"/images/sample-feed-4.jpg",
] as const;
-const sampleMomentDateLabels = [
+const samplePhotoAspectRatios = [1.32, 0.82, 1.18, 0.92, 1.46, 1.04] as const;
+
+const samplePostDateLabels = [
"Today",
"Yesterday",
"Wed, Apr 29",
@@ -37,21 +45,90 @@ const sampleMomentDateLabels = [
"Wed, Apr 22",
];
-const sampleMomentPhotoCounts = [4, 2, 1, 6, 10, 3, 8, 5, 7, 9];
+const samplePostPhotoCounts = [4, 2, 1, 6, 10, 3, 8, 5, 7, 9];
const samplePhotoUrlAt = (index: number): string =>
samplePhotoUrls[index % samplePhotoUrls.length] ?? samplePhotoUrls[0];
-const sampleMomentGroups = sampleMomentDateLabels.map((label, groupIndex) => ({
+const samplePhotoAspectRatioAt = (index: number): number =>
+ samplePhotoAspectRatios[index % samplePhotoAspectRatios.length] ?? 1;
+
+const samplePostGroups = samplePostDateLabels.map((label, groupIndex) => ({
label,
items: Array.from(
- { length: sampleMomentPhotoCounts[groupIndex] ?? 1 },
+ { length: samplePostPhotoCounts[groupIndex] ?? 1 },
(_, itemIndex) => ({
imageUrl: samplePhotoUrlAt(groupIndex + itemIndex),
+ aspectRatio: samplePhotoAspectRatioAt(groupIndex + itemIndex),
}),
),
}));
+type SamplePostItem = (typeof samplePostGroups)[number]["items"][number];
+
+interface PostMasonryRow {
+ height: number;
+ compactHeight: number;
+ items: { item: SamplePostItem; index: number }[];
+}
+
+const postMasonryRowSizes = (count: number): number[] => {
+ if (count <= 0) return [];
+ if (count <= 3) return [count];
+
+ const rowSizes: number[] = [];
+ let remaining = count;
+
+ while (remaining > 0) {
+ if (remaining == 2 || remaining == 3) {
+ rowSizes.push(remaining);
+ break;
+ }
+ if (remaining == 4) {
+ rowSizes.push(2, 2);
+ break;
+ }
+ if (remaining == 5) {
+ rowSizes.push(3, 2);
+ break;
+ }
+
+ const nextRowSize = rowSizes.length % 2 == 0 ? 3 : 2;
+ rowSizes.push(nextRowSize);
+ remaining -= nextRowSize;
+ }
+
+ return rowSizes;
+};
+
+const postMasonryRowHeight = (rowSize: number, rowIndex: number) => {
+ if (rowSize <= 1) return 190;
+ if (rowSize == 2) return rowIndex % 2 == 0 ? 152 : 142;
+ return rowIndex % 2 == 0 ? 116 : 108;
+};
+
+const buildPostMasonryRows = (items: SamplePostItem[]): PostMasonryRow[] => {
+ const rowSizes = postMasonryRowSizes(items.length);
+ let nextItemIndex = 0;
+
+ return rowSizes.map((rowSize, rowIndex) => {
+ const rowItems = items
+ .slice(nextItemIndex, nextItemIndex + rowSize)
+ .map((item, rowItemIndex) => ({
+ item,
+ index: nextItemIndex + rowItemIndex,
+ }));
+ nextItemIndex += rowSize;
+
+ const height = postMasonryRowHeight(rowItems.length, rowIndex);
+ return {
+ height,
+ compactHeight: Math.round(height * 0.9),
+ items: rowItems,
+ };
+ });
+};
+
interface ProfileScreenProps {
headerVariant?: "owner" | "public";
onBack?: () => void;
@@ -71,7 +148,7 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
.slice(0, 2)
.map((part) => part[0]?.toUpperCase())
.join("");
- const momentsSharedCount = sampleMomentGroups.reduce(
+ const postsSharedCount = samplePostGroups.reduce(
(count, group) => count + group.items.length,
0,
);
@@ -95,29 +172,44 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
boxSizing: "border-box",
minHeight: "100svh",
mx: "auto",
+ overflow: "hidden",
+ position: "relative",
width: "100%",
"@media (min-width: 600px)": { maxWidth: 375 },
}}
>
+ <Box
+ className="green-bg-with-noise-and-curves"
+ sx={{
+ height: profileCoverHeight,
+ insetInline: 0,
+ position: "absolute",
+ top: 0,
+ width: "100%",
+ zIndex: 0,
+ }}
+ />
<Box
component="header"
sx={{
alignItems: "center",
+ color: coverForeground,
display: "grid",
gridTemplateColumns: isPublicProfile
- ? "1fr"
+ ? "1fr auto"
: "24px 1fr 24px",
- height: 56,
+ height: profileHeaderHeight,
+ position: "relative",
px: 2,
py: 0,
width: "100%",
+ zIndex: 1,
}}
>
{isPublicProfile ? (
<Box
sx={{
alignSelf: "center",
- color: textBase,
justifySelf: "flex-start",
lineHeight: 0,
overflow: "visible",
@@ -140,7 +232,7 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
alignItems: "center",
bgcolor: "transparent",
border: 0,
- color: textBase,
+ color: "inherit",
cursor: "pointer",
display: "flex",
height: 24,
@@ -157,11 +249,47 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
<ArrowBackRoundedIcon sx={{ fontSize: 24 }} />
</Box>
)}
+ {isPublicProfile && (
+ <Box
+ component="button"
+ type="button"
+ onClick={() => {
+ window.location.assign("/");
+ }}
+ sx={{
+ alignItems: "center",
+ backgroundColor: "#FFFFFF",
+ border: 0,
+ borderRadius: "999px",
+ color: green,
+ cursor: "pointer",
+ display: "inline-flex",
+ fontFamily:
+ '"Inter Variable", Inter, sans-serif',
+ fontSize: 13,
+ fontWeight: 700,
+ height: 36,
+ justifyContent: "center",
+ justifySelf: "flex-end",
+ lineHeight: "18px",
+ minWidth: 0,
+ paddingInline: "16px",
+ whiteSpace: "nowrap",
+ "&:focus-visible": {
+ outline: `2px solid ${green}`,
+ outlineOffset: 2,
+ },
+ "&:hover": { backgroundColor: "#F3FFF5" },
+ }}
+ >
+ Add friend
+ </Box>
+ )}
{!isPublicProfile && (
<Box
component="h1"
sx={{
- color: textBase,
+ color: "inherit",
fontFamily:
'"Inter Variable", Inter, sans-serif',
fontSize: 18,
@@ -187,7 +315,7 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
alignItems: "center",
bgcolor: "transparent",
border: 0,
- color: textBase,
+ color: "inherit",
cursor: "pointer",
display: "flex",
height: 24,
@@ -211,9 +339,11 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
display: "flex",
flexDirection: "column",
px: "16px",
- pt: "30px",
+ position: "relative",
+ pt: `${profileAvatarTopOffset}px`,
textAlign: "center",
width: "100%",
+ zIndex: 1,
}}
>
<Box
@@ -223,12 +353,14 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
bgcolor: profile.avatarUrl
? "transparent"
: paleGreen,
+ border: "4px solid #FFFFFF",
borderRadius: "50%",
+ boxSizing: "border-box",
color: green,
display: "flex",
justifyContent: "center",
overflow: "hidden",
- width: 120,
+ width: profileAvatarSize,
}}
>
{profile.avatarUrl ? (
@@ -299,57 +431,24 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
whiteSpace: "nowrap",
}}
>
- {momentsSharedCount} moments · {friendsCount}{" "}
+ {postsSharedCount} posts · {friendsCount}{" "}
friends
</Box>
</Box>
</Box>
- {isPublicProfile && (
- <Box sx={{ mt: "22px", px: "16px", width: "100%" }}>
- <Box
- component="button"
- type="button"
- onClick={() => {
- window.location.assign("/");
- }}
- sx={{
- backgroundColor: green,
- border: 0,
- borderRadius: "16px",
- color: "#FFFFFF",
- cursor: "pointer",
- fontFamily:
- '"Inter Variable", Inter, sans-serif',
- fontSize: 14,
- fontWeight: 700,
- lineHeight: "20px",
- paddingBlock: "11px",
- paddingInline: "20px",
- width: "100%",
- "&:focus-visible": {
- outline: `2px solid ${green}`,
- outlineOffset: 2,
- },
- "&:hover": { backgroundColor: "#07A820" },
- }}
- >
- Add friend
- </Box>
- </Box>
- )}
<Box
component="section"
sx={{
display: "flex",
flexDirection: "column",
gap: "24px",
- mt: isPublicProfile ? "60px" : "42px",
+ mt: "42px",
pb: "16px",
px: 0,
width: "100%",
}}
>
- {sampleMomentGroups.map((group) => (
+ {samplePostGroups.map((group) => (
<Box
component="section"
key={group.label}
@@ -374,75 +473,60 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
</Box>
<Box
sx={{
- display: "grid",
- gap: "3px",
- gridTemplateColumns: `repeat(${photoGridColumnCount}, minmax(0, 1fr))`,
- px: "16px",
- width: "100%",
+ borderRadius: photoMasonryRadius,
+ display: "flex",
+ flexDirection: "column",
+ gap: photoMasonryGap,
+ mx: "16px",
+ overflow: "hidden",
+ width: "calc(100% - 32px)",
}}
>
- {group.items.map((item, index) => {
- const columnIndex =
- index % photoGridColumnCount;
- const hasPhotoAbove =
- index - photoGridColumnCount >= 0;
- const hasPhotoBelow =
- index + photoGridColumnCount <
- group.items.length;
- const hasPhotoOnLeft = columnIndex > 0;
- const hasPhotoOnRight =
- columnIndex <
- photoGridColumnCount - 1 &&
- index + 1 < group.items.length;
-
- return (
+ {buildPostMasonryRows(group.items).map(
+ (row, rowIndex) => (
<Box
- key={`${group.label}-${item.imageUrl}-${index}`}
+ key={`${group.label}-row-${rowIndex}`}
sx={{
- aspectRatio: "4 / 5",
- bgcolor: paleGreen,
- borderBottomLeftRadius:
- !hasPhotoBelow &&
- !hasPhotoOnLeft
- ? photoGridRadius
- : 0,
- borderBottomRightRadius:
- !hasPhotoBelow &&
- !hasPhotoOnRight
- ? photoGridRadius
- : 0,
- borderTopLeftRadius:
- !hasPhotoAbove &&
- !hasPhotoOnLeft
- ? photoGridRadius
- : 0,
- borderTopRightRadius:
- !hasPhotoAbove &&
- !hasPhotoOnRight
- ? photoGridRadius
- : 0,
- display: "block",
- overflow: "hidden",
+ display: "flex",
+ gap: photoMasonryGap,
+ height: row.height,
width: "100%",
+ "@media (max-width: 340px)": {
+ height: row.compactHeight,
+ },
}}
>
- <Box
- component="img"
- alt={`${group.label} moment ${
- index + 1
- }`}
- src={item.imageUrl}
- sx={{
- display: "block",
- height: "100%",
- objectFit: "cover",
- objectPosition: "center",
- width: "100%",
- }}
- />
+ {row.items.map(({ item, index }) => (
+ <Box
+ key={`${group.label}-${item.imageUrl}-${index}`}
+ sx={{
+ bgcolor: paleGreen,
+ display: "block",
+ flex: `${item.aspectRatio} 1 0`,
+ minWidth: 0,
+ overflow: "hidden",
+ }}
+ >
+ <Box
+ component="img"
+ alt={`${group.label} post ${
+ index + 1
+ }`}
+ src={item.imageUrl}
+ sx={{
+ display: "block",
+ height: "100%",
+ objectFit: "cover",
+ objectPosition:
+ "center",
+ width: "100%",
+ }}
+ />
+ </Box>
+ ))}
</Box>
- );
- })}
+ ),
+ )}
</Box>
</Box>
))}
diff --git a/web/apps/social/src/screens/SetupProfileScreen.tsx b/web/apps/social/src/screens/SetupProfileScreen.tsx
index afd0b25d0c..35c4b53456 100644
--- a/web/apps/social/src/screens/SetupProfileScreen.tsx
+++ b/web/apps/social/src/screens/SetupProfileScreen.tsx
@@ -443,6 +443,11 @@ export const SetupProfileScreen: React.FC<SetupProfileScreenProps> = ({
}}
>
<Box
+ className={
+ canContinue
+ ? "green-bg-with-noise-and-curves"
+ : undefined
+ }
component="button"
type="button"
disabled={!canContinue}
diff --git a/web/apps/social/src/screens/ShareProfileLinkScreen.tsx b/web/apps/social/src/screens/ShareProfileLinkScreen.tsx
index ee441a79f9..349d7c1615 100644
--- a/web/apps/social/src/screens/ShareProfileLinkScreen.tsx
+++ b/web/apps/social/src/screens/ShareProfileLinkScreen.tsx
@@ -200,8 +200,6 @@ export const ShareProfileLinkScreen: React.FC<ShareProfileLinkScreenProps> = ({
const shareProfileLink = async () => {
const shareData = {
- title: `Join ${displayName}'s circle on Ente`,
- text: `Join ${displayName}'s circle on Ente to see their private moments.`,
url: profileLink,
};
@@ -292,7 +290,7 @@ export const ShareProfileLinkScreen: React.FC<ShareProfileLinkScreenProps> = ({
whiteSpace: "nowrap",
}}
>
- Share your profile
+ Invite people
</Box>
<Box />
</Box>
@@ -455,6 +453,7 @@ export const ShareProfileLinkScreen: React.FC<ShareProfileLinkScreenProps> = ({
}}
>
<Box
+ className="green-bg-with-noise-and-curves"
component="button"
type="button"
onClick={onDone}
diff --git a/web/apps/social/src/screens/VerifyEmailScreen.tsx b/web/apps/social/src/screens/VerifyEmailScreen.tsx
index dd829318c7..1fb47ee00e 100644
--- a/web/apps/social/src/screens/VerifyEmailScreen.tsx
+++ b/web/apps/social/src/screens/VerifyEmailScreen.tsx
@@ -433,6 +433,11 @@ export const VerifyEmailScreen: React.FC<VerifyEmailScreenProps> = ({
}}
>
<Box
+ className={
+ canVerify
+ ? "green-bg-with-noise-and-curves"
+ : undefined
+ }
component="button"
type="button"
disabled={!canVerify}
diff --git a/web/apps/social/src/styles/globals.css b/web/apps/social/src/styles/globals.css
new file mode 100644
index 0000000000..7cc1139bda
--- /dev/null
+++ b/web/apps/social/src/styles/globals.css
@@ -0,0 +1,13 @@
+.green-bg-with-noise-and-curves {
+ background-image:
+ url("/images/noise.svg"), url("/images/bg-curved-lines.svg"),
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACXBIWXMAAAsTAAALEwEAmpwYAAABaWlDQ1BEaXNwbGF5IFAzAAB4nHWQvUvDUBTFT6tS0DqIDh0cMolD1NIKdnFoKxRFMFQFq1OafgltfCQpUnETVyn4H1jBWXCwiFRwcXAQRAcR3Zw6KbhoeN6XVNoi3sfl/Ticc7lcwBtQGSv2AijplpFMxKS11Lrke4OHnlOqZrKooiwK/v276/PR9d5PiFlNu3YQ2U9cl84ul3aeAlN//V3Vn8maGv3f1EGNGRbgkYmVbYsJ3iUeMWgp4qrgvMvHgtMunzuelWSc+JZY0gpqhrhJLKc79HwHl4plrbWD2N6f1VeXxRzqUcxhEyYYilBRgQQF4X/8044/ji1yV2BQLo8CLMpESRETssTz0KFhEjJxCEHqkLhz634PrfvJbW3vFZhtcM4v2tpCAzidoZPV29p4BBgaAG7qTDVUR+qh9uZywPsJMJgChu8os2HmwiF3e38M6Hvh/GMM8B0CdpXzryPO7RqFn4Er/QcXKWq8MSlPPgAAABBJREFUeAEBBQD6/wAIwiX/A7QB7/maltEAAAAASUVORK5CYII=");
+ background-repeat: repeat, no-repeat, repeat;
+ background-size: auto, cover, auto;
+ background-blend-mode: normal;
+}
+
+.green-bg {
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACXBIWXMAAAsTAAALEwEAmpwYAAABaWlDQ1BEaXNwbGF5IFAzAAB4nHWQvUvDUBTFT6tS0DqIDh0cMolD1NIKdnFoKxRFMFQFq1OafgltfCQpUnETVyn4H1jBWXCwiFRwcXAQRAcR3Zw6KbhoeN6XVNoi3sfl/Ticc7lcwBtQGSv2AijplpFMxKS11Lrke4OHnlOqZrKooiwK/v276/PR9d5PiFlNu3YQ2U9cl84ul3aeAlN//V3Vn8maGv3f1EGNGRbgkYmVbYsJ3iUeMWgp4qrgvMvHgtMunzuelWSc+JZY0gpqhrhJLKc79HwHl4plrbWD2N6f1VeXxRzqUcxhEyYYilBRgQQF4X/8044/ji1yV2BQLo8CLMpESRETssTz0KFhEjJxCEHqkLhz634PrfvJbW3vFZhtcM4v2tpCAzidoZPV29p4BBgaAG7qTDVUR+qh9uZywPsJMJgChu8os2HmwiF3e38M6Hvh/GMM8B0CdpXzryPO7RqFn4Er/QcXKWq8MSlPPgAAABBJREFUeAEBBQD6/wAIwiX/A7QB7/maltEAAAAASUVORK5CYII=")
+ repeat;
+}