File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed
dotcom-rendering/src/layouts Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change 1+ import { css } from '@emotion/react' ;
12import { RenderingTarget } from 'src/types/renderingTarget' ;
3+ import { grid } from '../grid' ;
24
35interface 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+
1521export 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} ;
You can’t perform that action at this time.
0 commit comments