diff --git a/public/assets/screenshot-center.png b/public/assets/screenshot-center.png new file mode 100644 index 000000000..75dcb96d1 Binary files /dev/null and b/public/assets/screenshot-center.png differ diff --git a/public/assets/screenshot-left.png b/public/assets/screenshot-left.png new file mode 100644 index 000000000..89cbce048 Binary files /dev/null and b/public/assets/screenshot-left.png differ diff --git a/public/assets/screenshot-right.png b/public/assets/screenshot-right.png new file mode 100644 index 000000000..81c546256 Binary files /dev/null and b/public/assets/screenshot-right.png differ diff --git a/public/assets/screenshots/center-1200w.jxl b/public/assets/screenshots/center-1200w.jxl new file mode 100644 index 000000000..7b08a548b Binary files /dev/null and b/public/assets/screenshots/center-1200w.jxl differ diff --git a/public/assets/screenshots/center-1200w.webp b/public/assets/screenshots/center-1200w.webp new file mode 100644 index 000000000..e3ae23716 Binary files /dev/null and b/public/assets/screenshots/center-1200w.webp differ diff --git a/public/assets/screenshots/center-2400w-base.png b/public/assets/screenshots/center-2400w-base.png new file mode 100644 index 000000000..262d04707 Binary files /dev/null and b/public/assets/screenshots/center-2400w-base.png differ diff --git a/public/assets/screenshots/center-2400w.jxl b/public/assets/screenshots/center-2400w.jxl new file mode 100644 index 000000000..27e1068a4 Binary files /dev/null and b/public/assets/screenshots/center-2400w.jxl differ diff --git a/public/assets/screenshots/center-2400w.webp b/public/assets/screenshots/center-2400w.webp new file mode 100644 index 000000000..080cc311c Binary files /dev/null and b/public/assets/screenshots/center-2400w.webp differ diff --git a/public/assets/screenshots/center-600w.jxl b/public/assets/screenshots/center-600w.jxl new file mode 100644 index 000000000..890851d90 Binary files /dev/null and b/public/assets/screenshots/center-600w.jxl differ diff --git a/public/assets/screenshots/center-600w.webp b/public/assets/screenshots/center-600w.webp new file mode 100644 index 000000000..a79db6fb7 Binary files /dev/null and b/public/assets/screenshots/center-600w.webp differ diff --git a/public/assets/screenshots/left-1720w-base.png b/public/assets/screenshots/left-1720w-base.png new file mode 100644 index 000000000..f8b62c4bb Binary files /dev/null and b/public/assets/screenshots/left-1720w-base.png differ diff --git a/public/assets/screenshots/left-1720w.jxl b/public/assets/screenshots/left-1720w.jxl new file mode 100644 index 000000000..96046295c Binary files /dev/null and b/public/assets/screenshots/left-1720w.jxl differ diff --git a/public/assets/screenshots/left-1720w.webp b/public/assets/screenshots/left-1720w.webp new file mode 100644 index 000000000..e64ffcfc6 Binary files /dev/null and b/public/assets/screenshots/left-1720w.webp differ diff --git a/public/assets/screenshots/left-430w.jxl b/public/assets/screenshots/left-430w.jxl new file mode 100644 index 000000000..09400b53e Binary files /dev/null and b/public/assets/screenshots/left-430w.jxl differ diff --git a/public/assets/screenshots/left-430w.webp b/public/assets/screenshots/left-430w.webp new file mode 100644 index 000000000..cb2d68a00 Binary files /dev/null and b/public/assets/screenshots/left-430w.webp differ diff --git a/public/assets/screenshots/left-860w-fallback.jpg b/public/assets/screenshots/left-860w-fallback.jpg new file mode 100644 index 000000000..12350143a Binary files /dev/null and b/public/assets/screenshots/left-860w-fallback.jpg differ diff --git a/public/assets/screenshots/left-860w.jxl b/public/assets/screenshots/left-860w.jxl new file mode 100644 index 000000000..372239943 Binary files /dev/null and b/public/assets/screenshots/left-860w.jxl differ diff --git a/public/assets/screenshots/left-860w.webp b/public/assets/screenshots/left-860w.webp new file mode 100644 index 000000000..4abb2d686 Binary files /dev/null and b/public/assets/screenshots/left-860w.webp differ diff --git a/public/assets/screenshots/right-1170w-base.png b/public/assets/screenshots/right-1170w-base.png new file mode 100644 index 000000000..fb73ebf0b Binary files /dev/null and b/public/assets/screenshots/right-1170w-base.png differ diff --git a/public/assets/screenshots/right-1170w.jxl b/public/assets/screenshots/right-1170w.jxl new file mode 100644 index 000000000..1d66fcbfe Binary files /dev/null and b/public/assets/screenshots/right-1170w.jxl differ diff --git a/public/assets/screenshots/right-1170w.webp b/public/assets/screenshots/right-1170w.webp new file mode 100644 index 000000000..26e5beb29 Binary files /dev/null and b/public/assets/screenshots/right-1170w.webp differ diff --git a/public/assets/screenshots/right-293w.jxl b/public/assets/screenshots/right-293w.jxl new file mode 100644 index 000000000..f82cc940d Binary files /dev/null and b/public/assets/screenshots/right-293w.jxl differ diff --git a/public/assets/screenshots/right-293w.webp b/public/assets/screenshots/right-293w.webp new file mode 100644 index 000000000..eabe1c6b2 Binary files /dev/null and b/public/assets/screenshots/right-293w.webp differ diff --git a/public/assets/screenshots/right-585w-fallback.jpg b/public/assets/screenshots/right-585w-fallback.jpg new file mode 100644 index 000000000..e9b6af47b Binary files /dev/null and b/public/assets/screenshots/right-585w-fallback.jpg differ diff --git a/public/assets/screenshots/right-585w.jxl b/public/assets/screenshots/right-585w.jxl new file mode 100644 index 000000000..68df64372 Binary files /dev/null and b/public/assets/screenshots/right-585w.jxl differ diff --git a/public/assets/screenshots/right-585w.webp b/public/assets/screenshots/right-585w.webp new file mode 100644 index 000000000..09be6bdec Binary files /dev/null and b/public/assets/screenshots/right-585w.webp differ diff --git a/src/locales/list/en-gb.json b/src/locales/list/en-gb.json index 7a3756779..a169d2b80 100644 --- a/src/locales/list/en-gb.json +++ b/src/locales/list/en-gb.json @@ -93,6 +93,11 @@ "feature7": "Runs from donations", "feature8": "Full source code on GitHub", "feature9": "Express yourself with borders" + }, + "screenshots": { + "leftAlt": "a view of the dashboard pane in Nerimity's web app, showing an announcement post", + "centerAlt": "the main view of Nerimity desktop, showing a conversation in a server's general channel", + "rightAlt": "a conversation displayed in Nerimity's mobile app" } }, "loginPage": { diff --git a/src/pages/HomePage.module.css b/src/pages/HomePage.module.css index 2d00cacfc..628fd0790 100644 --- a/src/pages/HomePage.module.css +++ b/src/pages/HomePage.module.css @@ -36,6 +36,7 @@ display: flex; flex: 1; flex-direction: column; + align-items: center; margin: 8px; margin-top: 0; margin-bottom: 0; @@ -49,7 +50,7 @@ flex-shrink: 0; justify-content: center; - margin-top: 100px; + margin-top: 60px; text-align: center; .slogan { background: #4c93ff; @@ -96,6 +97,77 @@ } } +.screenshotContainer { + --max-width: 1400px; + + display: flex; + position: relative; + height: calc(min(46vw, 0.46 * (var(--max-width) + 16px))); + width: 100%; + max-width: var(--max-width); + margin-block: 60px; +} + +.screenshotContainer img { + width: 100%; + height: auto; + object-fit: contain; + border-radius: 8px; + box-shadow: 0 0 8px 0px var(--background-color); + border: 1px solid hsl(216deg 9% 30%); +} +.screenshotLeft { + position: absolute; + bottom: 0; + left: 5%; + width: 40%; + z-index: 1; +} +.screenshotCenter { + position: absolute; + left: 20%; + width: 60%; + z-index: 2; +} +.screenshotRight { + position: absolute; + bottom: 0; + right: 5%; + width: 17%; + z-index: 3; +} + +@media (max-width: 500px) { + .screenshotContainer { + height: 137vw; + margin-top: 20px; + margin-bottom: 20px; + } + .screenshotRight { + position: absolute; + bottom: 0; + right: 3%; + width: 45%; + z-index: 3; + } + .screenshotCenter { + position: absolute; + bottom: unset; + top: 5%; + left: 3%; + width: 85%; + z-index: 1; + } + .screenshotLeft { + position: absolute; + bottom: 8%; + left: 7%; + width: 85%; + z-index: 2; + } +} + + .featureContainer { display: flex; align-items: center; @@ -118,7 +190,6 @@ max-width: 800px; padding: 10px; margin: 10px; - margin-top: 100px; grid-template-columns: 1fr 1fr 1fr; gap: 10px; column-gap: 20px; diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index e9da8b732..c24681380 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -63,6 +63,7 @@ export default function HomePage() { + @@ -264,6 +265,81 @@ const PlatformDownloadLinks = () => { ); }; +function ScreenshotView() { + const [t] = useTransContext(); + + return ( +
+
+ + + + {t("homePage.screenshots.centerAlt")} + +
+
+ + + + {t("homePage.screenshots.rightAlt")} + +
+
+ + + + {t("homePage.screenshots.leftAlt")} + +
+
+ ); +} + function FeatureList() { const [t] = useTransContext(); return (