-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d3ee8b
commit 2348fca
Showing
4 changed files
with
349 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
import { createElement } from 'complate-stream' | ||
|
||
export default function PreviewLayout ({ context }, ...children) { | ||
return <html> | ||
<head> | ||
<meta charset='utf-8' /> | ||
<meta name='viewport' content='width=device-width, initial-scale=1' /> | ||
<link rel='stylesheet' type='text/css' href={context.app.uri('assets/normalize.css')} /> | ||
<link media='all' rel='stylesheet' href={context.app.uri('assets/bundle.css')} /> | ||
<link rel='preload' href='https://hello.myfonts.net/count/350ed6' as='style' /> | ||
<style>{'\ | ||
return ( | ||
<html> | ||
<head> | ||
<meta charset='utf-8' /> | ||
<meta name='viewport' content='width=device-width, initial-scale=1' /> | ||
<link rel='stylesheet' type='text/css' href={context.app.uri('assets/normalize.css')} /> | ||
<link media='all' rel='stylesheet' href={context.app.uri('assets/bundle.css')} /> | ||
<link rel='preload' href='https://hello.myfonts.net/count/350ed6' as='style' /> | ||
<style>{'\ | ||
body {\ | ||
padding: 1rem;\ | ||
}\ | ||
'}</style> | ||
<title>Preview Layout</title> | ||
</head> | ||
<body class='application'> | ||
{children} | ||
</body> | ||
<script src={context.app.uri('assets/document-register-element.js')} /> | ||
<script src={context.app.uri('assets/bundle.js')} /> | ||
</html> | ||
<title>Preview Layout</title> | ||
</head> | ||
<body class='application'> | ||
{children} | ||
</body> | ||
<script src={context.app.uri('assets/document-register-element.js')} /> | ||
<script src={context.app.uri('assets/bundle.js')} /> | ||
</html> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.