|
| 1 | +import { ResponsiveVideo } from './video-loader'; |
| 2 | +import { ResponsiveImage, Breakpoint } from './image-loader'; |
| 3 | + |
| 4 | +export const image: ResponsiveImage = { |
| 5 | + placeholder: 'http://via.placeholder.com/40x40?text=placeholder', |
| 6 | + fallback: 'http://via.placeholder.com/400x400?text=fallback', |
| 7 | + images: [ |
| 8 | + { |
| 9 | + size: 'xs', |
| 10 | + x1: 'http://via.placeholder.com/400x400?text=xs+1x', |
| 11 | + x2: 'http://via.placeholder.com/800x800?text=xs+2x' |
| 12 | + }, |
| 13 | + { |
| 14 | + size: 'md', |
| 15 | + x1: 'http://via.placeholder.com/768x400?text=md+1x', |
| 16 | + x2: 'http://via.placeholder.com/1536x800?text=md+2x' |
| 17 | + }, |
| 18 | + { |
| 19 | + size: 'lg', |
| 20 | + x1: 'http://via.placeholder.com/1024x400?text=lg+1x', |
| 21 | + x2: 'http://via.placeholder.com/2048x800?text=lg+2x' |
| 22 | + } |
| 23 | + ] |
| 24 | +}; |
| 25 | + |
| 26 | +export const video: ResponsiveVideo = { |
| 27 | + // tslint:disable:max-line-length |
| 28 | + videos: [ |
| 29 | + { |
| 30 | + size: 'xs', |
| 31 | + url: 'http://res.cloudinary.com/thisissoon/video/upload/ac_none,c_fill,h_568,q_80,w_320/v1517616795/demos/jellyfish-25-mbps-hd-hevc.mp4' |
| 32 | + }, |
| 33 | + { |
| 34 | + size: 'md', |
| 35 | + url: 'http://res.cloudinary.com/thisissoon/video/upload/ac_none,c_fill,h_1024,q_80,w_768/v1517616795/demos/jellyfish-25-mbps-hd-hevc.mp4' |
| 36 | + }, |
| 37 | + { |
| 38 | + size: 'lg', |
| 39 | + url: 'http://res.cloudinary.com/thisissoon/video/upload/ac_none,c_fill,h_720,q_80,w_1280/v1517616795/demos/jellyfish-25-mbps-hd-hevc.mp4' |
| 40 | + } |
| 41 | + ], |
| 42 | + poster: { |
| 43 | + placeholder: 'http://res.cloudinary.com/thisissoon/image/upload/c_fill,h_56,q_1,w_32/v1517616811/demos/jellyfish-25-mbps-hd-hevc_lpnffm.jpg', |
| 44 | + fallback: 'http://res.cloudinary.com/thisissoon/image/upload/c_fill,h_568,q_80,w_320/v1517616811/demos/jellyfish-25-mbps-hd-hevc_lpnffm.jpg', |
| 45 | + images: [ |
| 46 | + { |
| 47 | + size: 'xs', |
| 48 | + x1: 'http://res.cloudinary.com/thisissoon/image/upload/c_fill,h_568,q_80,w_320/v1517616811/demos/jellyfish-25-mbps-hd-hevc_lpnffm.jpg', |
| 49 | + x2: 'http://res.cloudinary.com/thisissoon/image/upload/c_fill,h_1136,q_80,w_640/v1517616811/demos/jellyfish-25-mbps-hd-hevc_lpnffm.jpg' |
| 50 | + }, |
| 51 | + { |
| 52 | + size: 'md', |
| 53 | + x1: 'http://res.cloudinary.com/thisissoon/image/upload/c_fill,h_768,q_80,w_1024/v1517616811/demos/jellyfish-25-mbps-hd-hevc_lpnffm.jpg', |
| 54 | + x2: 'http://res.cloudinary.com/thisissoon/image/upload/c_fill,h_1536,q_80,w_2048/v1517616811/demos/jellyfish-25-mbps-hd-hevc_lpnffm.jpg' |
| 55 | + }, |
| 56 | + { |
| 57 | + size: 'lg', |
| 58 | + x1: 'http://res.cloudinary.com/thisissoon/image/upload/c_fill,h_768,q_80,w_1280/v1517616811/demos/jellyfish-25-mbps-hd-hevc_lpnffm.jpg', |
| 59 | + x2: 'http://res.cloudinary.com/thisissoon/image/upload/c_fill,h_1536,q_80,w_2560/v1517616811/demos/jellyfish-25-mbps-hd-hevc_lpnffm.jpg' |
| 60 | + } |
| 61 | + ] |
| 62 | + } |
| 63 | +}; |
| 64 | +// tslint:enable:max-line-length |
| 65 | + |
| 66 | + |
| 67 | +export const sizes: Breakpoint[] = [ |
| 68 | + { size: 'xs', width: 0 }, |
| 69 | + { size: 'md', width: 768 }, |
| 70 | + { size: 'lg', width: 992 }, |
| 71 | +]; |
0 commit comments