We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d766f8 commit 12cb8fbCopy full SHA for 12cb8fb
src/cardSets/tiles/index.jsx
@@ -0,0 +1,35 @@
1
+import React from 'react';
2
+import styled from 'styled-components';
3
+
4
+const birdImages = [
5
+ 'tile-01',
6
+ 'tile-02',
7
+ 'tile-03',
8
+ 'tile-04',
9
+ 'tile-05',
10
+ 'tile-06',
11
+ 'tile-07',
12
+ 'tile-08',
13
+];
14
15
+const getImageUrl = fileName =>
16
+ `https://firebasestorage.googleapis.com/v0/b/tiles-ba0e8.appspot.com/o/${fileName}.svg?alt=media`;
17
18
+const Wrap = styled.div`
19
+ font-size: 120px;
20
+ width: 105%;
21
+ margin: -2.5%;
22
+`;
23
24
+const Image = styled.img`
25
+ width: 100%;
26
+ display: block;
27
28
29
+const cards = birdImages.map(imageName => (
30
+ <Wrap>
31
+ <Image src={getImageUrl(imageName)} alt={imageName} />
32
+ </Wrap>
33
+));
34
35
+export default cards;
0 commit comments