Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

landing-page: Stop relying on image paths.

Alex Vandiver1f47d7793dd6
diff --git a/static/js/portico/landing-page.js b/static/js/portico/landing-page.js
index 64137407539..195e962025e 100644
--- a/static/js/portico/landing-page.js
+++ b/static/js/portico/landing-page.js
@@ -96,6 +96,7 @@ const apps_events = function () {
$download_from_apple_app_store.attr("href", version_info.app_store_link);
$download_android_apk.attr("href", version_info.download_link);
$download_mac_arm64.attr("href", version_info.mac_arm64_link);
+ $(".image img").addClass(`app-screenshot-${version_info.app_type}`);
$(".image img").attr("src", version_info.image);
$download_instructions.find("a").attr("href", version_info.install_guide);
diff --git a/static/styles/portico/landing_page.css b/static/styles/portico/landing_page.css
index d62c730d4ef..cfe2825bb57 100644
--- a/static/styles/portico/landing_page.css
+++ b/static/styles/portico/landing_page.css
@@ -2025,14 +2025,7 @@ nav {
max-width: 600px;
}
-.portico-landing.apps
- .hero
- .image
- img[src="/static/images/app-screenshots/zulip-android.png"],
-.portico-landing.apps
- .hero
- .image
- img[src="/static/images/app-screenshots/zulip-iphone-rough.png"] {
+.portico-landing.apps .hero .image img.app-screenshot-mobile {
height: 85%;
}