|
1 | 1 | import React from 'react' |
| 2 | +import ContentLoader from 'react-content-loader' |
2 | 3 | import { Wrapper } from './styles' |
3 | 4 |
|
| 5 | +// @TODO: Make this a little more responsive by passing in 400 for the height |
| 6 | +// on smaller screens |
4 | 7 | export default function (props) { |
5 | 8 | return ( |
6 | 9 | <Wrapper> |
7 | | - <div /> |
8 | | - <div /> |
9 | | - <div /> |
10 | | - <div /> |
11 | | - <div /> |
| 10 | + <ContentLoader |
| 11 | + height={160} |
| 12 | + width={800} |
| 13 | + speed={1} |
| 14 | + primaryColor="#F4F5F6" |
| 15 | + secondaryColor="#ececf1" |
| 16 | + {...props} |
| 17 | + > |
| 18 | + <rect x="0" y="0" rx="3" ry="3" width="10%" height="13" /> |
| 19 | + <rect x="12%" y="0" rx="3" ry="3" width="25%" height="13" /> |
| 20 | + <rect x="0" y="30" rx="3" ry="3" width="30%" height="10" /> |
| 21 | + <rect x="32%" y="30" rx="3" ry="3" width="55%" height="10" /> |
| 22 | + <rect x="89%" y="30" rx="3" ry="3" width="10%" height="10" /> |
| 23 | + <rect x="0" y="60" rx="3" ry="3" width="30%" height="10" /> |
| 24 | + <rect x="32%" y="60" rx="3" ry="3" width="55%" height="10" /> |
| 25 | + <rect x="89%" y="60" rx="3" ry="3" width="10%" height="10" /> |
| 26 | + <rect x="0" y="90" rx="3" ry="3" width="30%" height="10" /> |
| 27 | + <rect x="32%" y="90" rx="3" ry="3" width="55%" height="10" /> |
| 28 | + <rect x="89%" y="90" rx="3" ry="3" width="10%" height="10" /> |
| 29 | + <rect x="0" y="130" rx="3" ry="3" width="100%" height="1" /> |
| 30 | + </ContentLoader> |
| 31 | + <ContentLoader |
| 32 | + height={160} |
| 33 | + width={800} |
| 34 | + speed={1} |
| 35 | + primaryColor="#F4F5F6" |
| 36 | + secondaryColor="#ececf1" |
| 37 | + {...props} |
| 38 | + > |
| 39 | + <rect x="0" y="0" rx="3" ry="3" width="10%" height="13" /> |
| 40 | + <rect x="12%" y="0" rx="3" ry="3" width="25%" height="13" /> |
| 41 | + <rect x="0" y="30" rx="3" ry="3" width="30%" height="10" /> |
| 42 | + <rect x="32%" y="30" rx="3" ry="3" width="55%" height="10" /> |
| 43 | + <rect x="89%" y="30" rx="3" ry="3" width="10%" height="10" /> |
| 44 | + <rect x="0" y="60" rx="3" ry="3" width="30%" height="10" /> |
| 45 | + <rect x="32%" y="60" rx="3" ry="3" width="55%" height="10" /> |
| 46 | + <rect x="89%" y="60" rx="3" ry="3" width="10%" height="10" /> |
| 47 | + <rect x="0" y="90" rx="3" ry="3" width="30%" height="10" /> |
| 48 | + <rect x="32%" y="90" rx="3" ry="3" width="55%" height="10" /> |
| 49 | + <rect x="89%" y="90" rx="3" ry="3" width="10%" height="10" /> |
| 50 | + <rect x="0" y="130" rx="3" ry="3" width="100%" height="1" /> |
| 51 | + </ContentLoader> |
| 52 | + <ContentLoader |
| 53 | + height={140} |
| 54 | + width={800} |
| 55 | + speed={1} |
| 56 | + primaryColor="#F4F5F6" |
| 57 | + secondaryColor="#ececf1" |
| 58 | + {...props} |
| 59 | + > |
| 60 | + <rect x="0" y="0" rx="3" ry="3" width="70" height="13" /> |
| 61 | + <rect x="80" y="0" rx="3" ry="3" width="100" height="13" /> |
| 62 | + <rect x="190" y="0" rx="3" ry="3" width="10" height="13" /> |
| 63 | + <rect x="15" y="30" rx="3" ry="3" width="130" height="13" /> |
| 64 | + <rect x="155" y="30" rx="3" ry="3" width="130" height="13" /> |
| 65 | + <rect x="15" y="60" rx="3" ry="3" width="90" height="13" /> |
| 66 | + <rect x="115" y="60" rx="3" ry="3" width="60" height="13" /> |
| 67 | + <rect x="185" y="60" rx="3" ry="3" width="60" height="13" /> |
| 68 | + <rect x="0" y="90" rx="3" ry="3" width="30" height="13" /> |
| 69 | + <rect x="0" y="130" rx="3" ry="3" width="100%" height="1" /> |
| 70 | + </ContentLoader> |
| 71 | + <ContentLoader |
| 72 | + height={160} |
| 73 | + width={800} |
| 74 | + speed={1} |
| 75 | + primaryColor="#F4F5F6" |
| 76 | + secondaryColor="#ececf1" |
| 77 | + {...props} |
| 78 | + > |
| 79 | + <rect x="0" y="0" rx="3" ry="3" width="10%" height="13" /> |
| 80 | + <rect x="12%" y="0" rx="3" ry="3" width="25%" height="13" /> |
| 81 | + <rect x="0" y="30" rx="3" ry="3" width="30%" height="10" /> |
| 82 | + <rect x="32%" y="30" rx="3" ry="3" width="55%" height="10" /> |
| 83 | + <rect x="89%" y="30" rx="3" ry="3" width="10%" height="10" /> |
| 84 | + <rect x="0" y="60" rx="3" ry="3" width="30%" height="10" /> |
| 85 | + <rect x="32%" y="60" rx="3" ry="3" width="55%" height="10" /> |
| 86 | + <rect x="89%" y="60" rx="3" ry="3" width="10%" height="10" /> |
| 87 | + <rect x="0" y="90" rx="3" ry="3" width="30%" height="10" /> |
| 88 | + <rect x="32%" y="90" rx="3" ry="3" width="55%" height="10" /> |
| 89 | + <rect x="89%" y="90" rx="3" ry="3" width="10%" height="10" /> |
| 90 | + <rect x="0" y="130" rx="3" ry="3" width="100%" height="1" /> |
| 91 | + </ContentLoader> |
| 92 | + <ContentLoader |
| 93 | + height={140} |
| 94 | + width={800} |
| 95 | + speed={1} |
| 96 | + primaryColor="#F4F5F6" |
| 97 | + secondaryColor="#ececf1" |
| 98 | + {...props} |
| 99 | + > |
| 100 | + <rect x="0" y="0" rx="3" ry="3" width="70" height="13" /> |
| 101 | + <rect x="80" y="0" rx="3" ry="3" width="100" height="13" /> |
| 102 | + <rect x="190" y="0" rx="3" ry="3" width="10" height="13" /> |
| 103 | + <rect x="15" y="30" rx="3" ry="3" width="130" height="13" /> |
| 104 | + <rect x="155" y="30" rx="3" ry="3" width="130" height="13" /> |
| 105 | + <rect x="15" y="60" rx="3" ry="3" width="90" height="13" /> |
| 106 | + <rect x="115" y="60" rx="3" ry="3" width="60" height="13" /> |
| 107 | + <rect x="185" y="60" rx="3" ry="3" width="60" height="13" /> |
| 108 | + <rect x="0" y="90" rx="3" ry="3" width="30" height="13" /> |
| 109 | + <rect x="0" y="130" rx="3" ry="3" width="100%" height="1" /> |
| 110 | + </ContentLoader> |
| 111 | + <ContentLoader |
| 112 | + height={160} |
| 113 | + width={800} |
| 114 | + speed={1} |
| 115 | + primaryColor="#F4F5F6" |
| 116 | + secondaryColor="#ececf1" |
| 117 | + {...props} |
| 118 | + > |
| 119 | + <rect x="0" y="0" rx="3" ry="3" width="10%" height="13" /> |
| 120 | + <rect x="12%" y="0" rx="3" ry="3" width="25%" height="13" /> |
| 121 | + <rect x="0" y="30" rx="3" ry="3" width="30%" height="10" /> |
| 122 | + <rect x="32%" y="30" rx="3" ry="3" width="55%" height="10" /> |
| 123 | + <rect x="89%" y="30" rx="3" ry="3" width="10%" height="10" /> |
| 124 | + <rect x="0" y="60" rx="3" ry="3" width="30%" height="10" /> |
| 125 | + <rect x="32%" y="60" rx="3" ry="3" width="55%" height="10" /> |
| 126 | + <rect x="89%" y="60" rx="3" ry="3" width="10%" height="10" /> |
| 127 | + <rect x="0" y="90" rx="3" ry="3" width="30%" height="10" /> |
| 128 | + <rect x="32%" y="90" rx="3" ry="3" width="55%" height="10" /> |
| 129 | + <rect x="89%" y="90" rx="3" ry="3" width="10%" height="10" /> |
| 130 | + <rect x="0" y="130" rx="3" ry="3" width="100%" height="1" /> |
| 131 | + </ContentLoader> |
12 | 132 | </Wrapper> |
13 | 133 | ) |
14 | 134 | } |
0 commit comments