diff --git a/src/templates/components/Fabric.svelte b/src/templates/components/Fabric.svelte index 817b9b3bd..5ba8741df 100644 --- a/src/templates/components/Fabric.svelte +++ b/src/templates/components/Fabric.svelte @@ -1,5 +1,11 @@ + + {#if showVideo} + + {/if} {#if isValidReplacedVariable(TrackingPixel)} @@ -99,6 +163,44 @@ background-color: var(--background-color); margin: 0; } + .isMobile { + width: 740px; + } + + .video, + .poster, + .alt, + .layer { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + } + + .video { + width: 1920px; + height: 250px; + } + + .video--left { + top: 50%; + left: 0%; + transform: translate(0%, -50%); + } + + .video--right { + top: 50%; + right: 0%; + left: unset; + transform: translate(0%, -50%); + } + + .video--center { + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + } .fabric-container { display: block; diff --git a/legacy/src/fabric-video/web/ad.json b/src/templates/csr/fabric-video/ad.json similarity index 100% rename from legacy/src/fabric-video/web/ad.json rename to src/templates/csr/fabric-video/ad.json diff --git a/src/templates/csr/fabric-video/index.svelte b/src/templates/csr/fabric-video/index.svelte new file mode 100644 index 000000000..4ab35b68a --- /dev/null +++ b/src/templates/csr/fabric-video/index.svelte @@ -0,0 +1,69 @@ + + + diff --git a/src/templates/csr/fabric-video/test.json b/src/templates/csr/fabric-video/test.json new file mode 100644 index 000000000..28cf8cff9 --- /dev/null +++ b/src/templates/csr/fabric-video/test.json @@ -0,0 +1,31 @@ +{ + "ClickthroughUrl": "http://www.armani.com/gb/giorgioarmani/women/new-normal_section", + "BackgroundColour": "transparent", + "BackgroundImage": "https://tpc.googlesyndication.com/pagead/imgad?id=CICAgKCLn4zhRRABGAEyCNF40kFrzoD3", + "BackgroundRepeat": "no-repeat", + "BackgroundPosition": "center center", + "Layer1BackgroundImage": "https://tpc.googlesyndication.com/pagead/imgad?id=CICAgKCLn4zxIRABGAEyCDODMrRrZ8kQ", + "Layer1BackgroundPosition": "right top", + "Layer2BackgroundImage": "https://tpc.googlesyndication.com/pagead/imgad?id=CICAgKCLn4zxIRABGAEyCDODMrRrZ8kQ", + "Layer2BackgroundPosition": "right top", + "Layer3BackgroundImage": "", + "Layer3BackgroundPosition": "left top", + "MobileBackgroundImage": "", + "MobileBackgroundRepeat": "no-repeat", + "MobileBackgroundPosition": "center top", + "MobileLayer1BackgroundImage": "https://tpc.googlesyndication.com/pagead/imgad?id=CICAgKCLn4zxIRABGAEyCDODMrRrZ8kQ", + "MobileLayer1BackgroundPosition": "center center", + "MobileLayer2BackgroundImage": "", + "MobileLayer2BackgroundPosition": "left top", + "MobileLayer3BackgroundImage": "", + "MobileLayer3BackgroundPosition": "left top", + "VideoURL": "https://player.vimeo.com/external/541626129.hd.mp4?s=e112d0d886a6eaa850b8be46a6369ec710439a1f&profile_id=175", + "VideoURLMobile": "https://player.vimeo.com/external/541626059.sd.mp4?s=cd36645eeddda5668ddcd6bf524cef0c3ea756eb&profile_id=165", + "VideoBackupImage": "https://tpc.googlesyndication.com/pagead/imgad?id=CICAgKCLn8ywtAEQARgBMgilQLMRCw4e5A", + "MobileVideoBackupImage": "", + "VideoAlignment": "center", + "Trackingpixel": "", + "Researchpixel": "", + "Viewabilitypixel": "", + "thirdPartyJSTracking": "" +} diff --git a/src/templates/csr/fabric-xl/index.svelte b/src/templates/csr/fabric-xl/index.svelte index c5ee3db9f..33a4d3df6 100644 --- a/src/templates/csr/fabric-xl/index.svelte +++ b/src/templates/csr/fabric-xl/index.svelte @@ -54,5 +54,5 @@ {MobileLayer2BackgroundPosition} {MobileLayer3BackgroundImage} {MobileLayer3BackgroundPosition} - isXL + isXL={true} />