Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | 1x 1x 1x 1x 1x 1x 1x | import * as React from 'react';
import styled from 'styled-components';
import Link from './Link';
const Root = styled.div`
width: 80%;
margin: auto;
padding: 0 15px;
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 7px;
@media only screen and (max-width: 1000px) {
& {
width: 100%;
}
}
`;
const Links = styled.div`
& > span {
margin-right: 10px;
}
`;
const TopArticle = () => (
<Root>
<div>
<strong>Aktuálně</strong> Lorem Ipsum has been the industry's standard
dummy text ever since the 1500s
</div>
<Links>
<Link onClick={console.log}>zobrazit</Link>
<Link onClick={console.log}>zavřít</Link>
</Links>
</Root>
);
export default TopArticle;
|