mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 21:41:57 +00:00
Migrated static assets to CDN
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
import Link from "$lib/components/Link.svelte";
|
import Link from "$lib/components/Link.svelte";
|
||||||
|
|
||||||
import { navigation } from "$lib/navigation";
|
import { navigation } from "$lib/navigation";
|
||||||
|
import { assets } from "$app/paths";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="navigation-footer">
|
<div class="navigation-footer">
|
||||||
@@ -18,28 +19,28 @@
|
|||||||
<div class="navigation-footer-buttons-icon">
|
<div class="navigation-footer-buttons-icon">
|
||||||
<img
|
<img
|
||||||
class="navigation-footer-social-icon"
|
class="navigation-footer-social-icon"
|
||||||
src="facebook.svg"
|
src="{assets}/facebook.svg"
|
||||||
alt="Grey Facebook icon"
|
alt="Grey Facebook icon"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="navigation-footer-buttons-icon">
|
<div class="navigation-footer-buttons-icon">
|
||||||
<img
|
<img
|
||||||
class="navigation-footer-social-icon"
|
class="navigation-footer-social-icon"
|
||||||
src="linkedin.svg"
|
src="{assets}/linkedin.svg"
|
||||||
alt="Grey LinkedIn icon"
|
alt="Grey LinkedIn icon"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="navigation-footer-buttons-icon">
|
<div class="navigation-footer-buttons-icon">
|
||||||
<img
|
<img
|
||||||
class="navigation-footer-social-icon"
|
class="navigation-footer-social-icon"
|
||||||
src="youtube.svg"
|
src="{assets}/youtube.svg"
|
||||||
alt="Grey YouTube icon"
|
alt="Grey YouTube icon"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="navigation-footer-buttons-icon">
|
<div class="navigation-footer-buttons-icon">
|
||||||
<img
|
<img
|
||||||
class="navigation-footer-social-icon"
|
class="navigation-footer-social-icon"
|
||||||
src="instagram.svg"
|
src="{assets}/instagram.svg"
|
||||||
alt="Grey Instagram icon"
|
alt="Grey Instagram icon"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
import "./LandingPage.scss";
|
import "./LandingPage.scss";
|
||||||
import "./NavigationHeader.scss";
|
import "./NavigationHeader.scss";
|
||||||
|
|
||||||
|
import { assets } from "$app/paths";
|
||||||
|
|
||||||
let use_video = true;
|
let use_video = true;
|
||||||
function handleVideoError() {
|
function handleVideoError() {
|
||||||
use_video = false;
|
use_video = false;
|
||||||
@@ -19,18 +21,18 @@
|
|||||||
<video
|
<video
|
||||||
class="background"
|
class="background"
|
||||||
preload="auto"
|
preload="auto"
|
||||||
poster="landing.webp"
|
poster="{assets}/landing.webp"
|
||||||
autoplay
|
autoplay
|
||||||
muted
|
muted
|
||||||
playsinline
|
playsinline
|
||||||
on:error={handleVideoError}
|
on:error={handleVideoError}
|
||||||
>
|
>
|
||||||
<source src="landing.webm" type="video/webm" />
|
<source src="{assets}/landing.webm" type="video/webm" />
|
||||||
</video>
|
</video>
|
||||||
{:else}
|
{:else}
|
||||||
<img
|
<img
|
||||||
class="background"
|
class="background"
|
||||||
src="landing.webp"
|
src="{assets}/landing.webp"
|
||||||
alt="Landing background of L-PBF print in progress"
|
alt="Landing background of L-PBF print in progress"
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import "./InfoScroll.scss";
|
import "./InfoScroll.scss";
|
||||||
|
|
||||||
|
import { assets } from "$app/paths";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="infscr">
|
<div class="infscr">
|
||||||
@@ -7,7 +9,7 @@
|
|||||||
<div class="infscr-image-div">
|
<div class="infscr-image-div">
|
||||||
<img
|
<img
|
||||||
class="infscr-image"
|
class="infscr-image"
|
||||||
src="buildplate.webp"
|
src="{assets}/buildplate.webp"
|
||||||
alt="An L-PBF buildplate after a successful print"
|
alt="An L-PBF buildplate after a successful print"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -43,7 +45,7 @@
|
|||||||
<div class="infscr-image-div">
|
<div class="infscr-image-div">
|
||||||
<img
|
<img
|
||||||
class="infscr-image"
|
class="infscr-image"
|
||||||
src="data.webp"
|
src="{assets}/data.webp"
|
||||||
alt="A dashboard featuring L-PBF thermographic analyses"
|
alt="A dashboard featuring L-PBF thermographic analyses"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -82,7 +84,7 @@
|
|||||||
<div class="infscr-image-div">
|
<div class="infscr-image-div">
|
||||||
<img
|
<img
|
||||||
class="infscr-image"
|
class="infscr-image"
|
||||||
src="openscience.webp"
|
src="{assets}/openscience.webp"
|
||||||
alt="A render of the open science logo with a modified color palette"
|
alt="A render of the open science logo with a modified color palette"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
import NavigationHeader from "$lib/components/NavigationHeader.svelte";
|
import NavigationHeader from "$lib/components/NavigationHeader.svelte";
|
||||||
import NavigationFooter from "$lib/components/NavigationFooter.svelte";
|
import NavigationFooter from "$lib/components/NavigationFooter.svelte";
|
||||||
import ContactForm from "$lib/components/ContactForm.svelte";
|
import ContactForm from "$lib/components/ContactForm.svelte";
|
||||||
|
|
||||||
|
import { assets } from "$app/paths";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="contact-page">
|
<div class="contact-page">
|
||||||
@@ -23,7 +25,7 @@
|
|||||||
<div class="contact-image-column">
|
<div class="contact-image-column">
|
||||||
<img
|
<img
|
||||||
class="contact-image"
|
class="contact-image"
|
||||||
src="contact.webp"
|
src="{assets}/contact.webp"
|
||||||
alt="A photograph of our lovely colleague who is eager to hear from you"
|
alt="A photograph of our lovely colleague who is eager to hear from you"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ const config = {
|
|||||||
postcss: true,
|
postcss: true,
|
||||||
}),
|
}),
|
||||||
kit: {
|
kit: {
|
||||||
|
paths: {
|
||||||
|
assets: 'https://dxx34o0ozp8j.cloudfront.net'
|
||||||
|
},
|
||||||
adapter: adapter({
|
adapter: adapter({
|
||||||
out: 'build',
|
out: 'build',
|
||||||
precompress: true, // Pre-compresses files
|
precompress: true, // Pre-compresses files
|
||||||
|
|||||||
Reference in New Issue
Block a user