Skip to content

Commit 12cb8fb

Browse files
committed
Hiding overflow of the cards
1 parent 8d766f8 commit 12cb8fb

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

src/cardSets/tiles/index.jsx

+35
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)