Skip to content

Commit 23b47ae

Browse files
committed
basic gallery structure
1 parent 0e86aaf commit 23b47ae

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

dotcom-rendering/src/layouts/HostedGalleryLayout.tsx

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import { css } from '@emotion/react';
12
import { RenderingTarget } from 'src/types/renderingTarget';
3+
import { grid } from '../grid';
24

35
interface Props {
46
renderingTarget: RenderingTarget;
@@ -12,6 +14,29 @@ interface AppProps extends Props {
1214
renderingTarget: 'Apps';
1315
}
1416

17+
const border = css`
18+
border: 1px solid black;
19+
`;
20+
1521
export const HostedGalleryLayout = (props: WebProps | AppProps) => {
16-
return <div>Hosted gallery</div>;
22+
return (
23+
<>
24+
{props.renderingTarget === 'Web' ? 'Masthead' : null}
25+
<main>
26+
<header css={[grid.container, border]}>
27+
<div
28+
css={[grid.between('centre-column-start', 'grid-end')]}
29+
>
30+
Headline
31+
</div>
32+
</header>
33+
<div css={[grid.container]}>
34+
<article css={[border, grid.column.all]}>Gallery</article>
35+
</div>
36+
<div css={[grid.container, border]}>
37+
<div css={[grid.column.all]}>Footer</div>
38+
</div>
39+
</main>
40+
</>
41+
);
1742
};

0 commit comments

Comments
 (0)