landing-page: Stop relying on image paths.

This commit is contained in:
Alex Vandiver 2023-02-02 23:15:57 +00:00 committed by Alex Vandiver
parent c24bd07b76
commit 1f47d7793d
2 changed files with 2 additions and 8 deletions

View File

@ -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);

View File

@ -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%;
}