Skip to content

Commit

Permalink
Move remaining static content to s3 (TraceMachina#1444)
Browse files Browse the repository at this point in the history
  • Loading branch information
SchahinRohani authored Oct 31, 2024
1 parent a0e5cf7 commit 8a3869c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 11 deletions.
4 changes: 2 additions & 2 deletions web/platform/src/components/qwik/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import { GitHub, GitHubIcon, Slack, SlackIcon } from "../../media/icons/icons";
import styles from "./header.css?inline";

const Logo =
"https://static.wixstatic.com/media/e16379_7fa715a71b41439d93a362b05bbb98a3~mv2.png/v1/fill/w_274,h_52,al_c,lg_1,q_85,enc_auto/e16379_7fa715a71b41439d93a362b05bbb98a3~mv2.png";
"https://nativelink-cdn.s3.us-east-1.amazonaws.com/nativelink_logo.webp";

const mobileLogo =
"https://static.wixstatic.com/media/e16379_ebaae466807343b0a880cc8811c53070~mv2.png/v1/fill/w_90,h_80,al_c,lg_1,q_85,enc_auto/Logo.png";
"https://nativelink-cdn.s3.us-east-1.amazonaws.com/nativelink_logo_mobile.webp";

const links = [
{ name: "Home", href: "/" },
Expand Down
2 changes: 1 addition & 1 deletion web/platform/src/components/qwik/components/video.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { component$, useSignal } from "@builder.io/qwik";

const videoLink =
"https://video.wixstatic.com/video/e16379_17fe40ef02fe478fb675cced13e69dde/720p/mp4/file.mp4";
"https://nativelink-cdn.s3.us-east-1.amazonaws.com/background_file.mp4";

interface BackgroundVideoProps {
class?: string;
Expand Down
2 changes: 1 addition & 1 deletion web/platform/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const scrolled = false;
<head>
<meta charset="UTF-8" />
<link rel="sitemap" href="/sitemap-index.xml" />
<link rel="icon" sizes="192x192" type="image/png" href="https://static.wixstatic.com/media/b37b63_04b2ef1a25334a4fa0b83f6609065563%7Emv2.png/v1/fill/w_192%2Ch_192%2Clg_1%2Cusm_0.66_1.00_0.01/b37b63_04b2ef1a25334a4fa0b83f6609065563%7Emv2.png" />
<link rel="icon" sizes="192x192" type="image/png" href="https://nativelink-cdn.s3.us-east-1.amazonaws.com/nativelink_favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0" />
<meta name="description" content="NativeLink" />
<meta name="generator" content={Astro.generator} />
Expand Down
26 changes: 19 additions & 7 deletions web/platform/src/pages/product.astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ const paddings = ["p-4"]

<picture>
<source
srcset="https://static.wixstatic.com/media/e16379_a162a7e6486d4192b484d9651704d8fa~mv2.png/v1/fill/w_2178,h_1218,fp_0.51_0.04,q_95,usm_0.66_1.00_0.01,enc_auto/Mockup.png"
srcset="https://nativelink-cdn.s3.us-east-1.amazonaws.com/nativelink_dashboard.webp"
media="(min-width: 768px)"
/>
<source
srcset="https://static.wixstatic.com/media/e16379_a162a7e6486d4192b484d9651704d8fa~mv2.png/v1/fill/w_958,h_858,fp_0.51_0.04,q_90,usm_0.66_1.00_0.01,enc_auto/Mockup.png"
srcset="https://nativelink-cdn.s3.us-east-1.amazonaws.com/nativelink_dashboard.webp"
media="(max-width: 767px)"
/>
<img
fetchpriority="high"
src="https://static.wixstatic.com/media/e16379_a162a7e6486d4192b484d9651704d8fa~mv2.png/v1/fill/w_2178,h_1218,fp_0.51_0.04,q_95,usm_0.66_1.00_0.01,enc_auto/Mockup.png"
src="https://nativelink-cdn.s3.us-east-1.amazonaws.com/nativelink_dashboard.webp"
alt="Mockup"
class="object-fit md:w-[1000px] py-8 md:py-2"
/>
Expand Down Expand Up @@ -87,16 +87,16 @@ const paddings = ["p-4"]
<picture>
<source
media="(min-width: 320px) and (max-width: 750px)"
srcset="https://static.wixstatic.com/media/2dfb32_676d0414e0c44434b8f652bab63ff5d4~mv2.png/v1/crop/x_0,y_5,w_2576,h_2605/fill/w_684,h_692,fp_0.50_0.50,q_90,usm_0.66_1.00_0.01,enc_auto/Demo_Page_Product_Shot%20(1).png"
srcset="https://nativelink-cdn.s3.us-east-1.amazonaws.com/nativelink_demo.webp"
/>
<source
media="(min-width: 751px)"
srcset="https://static.wixstatic.com/media/2dfb32_676d0414e0c44434b8f652bab63ff5d4~mv2.png/v1/crop/x_0,y_0,w_3088,h_2548/fill/w_1224,h_1048,fp_0.50_0.50,q_90,usm_0.66_1.00_0.01,enc_auto/Demo_Page_Product_Shot%20(1).png"
srcset="https://nativelink-cdn.s3.us-east-1.amazonaws.com/nativelink_demo.webp"
/>
<img
fetchpriority="high"
class="rounded-xl"
src="https://static.wixstatic.com/media/2dfb32_676d0414e0c44434b8f652bab63ff5d4~mv2.png/v1/crop/x_0,y_0,w_3088,h_2548/fill/w_684,h_692,fp_0.50_0.50,q_90,usm_0.66_1.00_0.01,enc_auto/Demo_Page_Product_Shot%20(1).png"
src="https://nativelink-cdn.s3.us-east-1.amazonaws.com/nativelink_demo.webp"
alt="Demo_Page_Product_Shot (1).png"
class="object-fit md:w-[1000px] py-8 md:py-2"
/>
Expand All @@ -119,7 +119,19 @@ const paddings = ["p-4"]
</div>

<div class="shadow-images border border-gray-600 rounded-xl w-full bg-gray-900 flex justify-center">
<picture><source media="(min-width: 320px) and (max-width: 750px)" srcset="https://static.wixstatic.com/media/2dfb32_cea7da34802d481997a115d857a5b798~mv2.png/v1/crop/x_11,y_0,w_3015,h_1042/fill/w_683,h_236,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/Cropped_Metrics_Product_Shot_1.png"><img class="rounded-xl" fetchpriority="high" src="https://static.wixstatic.com/media/2dfb32_cea7da34802d481997a115d857a5b798~mv2.png/v1/crop/x_11,y_0,w_3015,h_1042/fill/w_683,h_236,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/Cropped_Metrics_Product_Shot_1.png" alt="Cropped_Metrics_Product_Shot_1.png" style="object-fit: contain; object-position: center center; width: 100%;"></picture>
<picture>
<source
media="(min-width: 320px) and (max-width: 750px)"
srcset="https://nativelink-cdn.s3.us-east-1.amazonaws.com/nativelink_metrics.webp"
>
<img
class="rounded-xl"
fetchpriority="high"
src="https://nativelink-cdn.s3.us-east-1.amazonaws.com/nativelink_metrics.webp"
alt="Nativelink Metrics"
style="object-fit: contain; object-position: center center; width: 100%;"
>
</picture>
</div>

</div>
Expand Down

0 comments on commit 8a3869c

Please sign in to comment.