Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix sample project images #6025

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions editor/src/sample-projects/sample-project-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function createBeachesProjectContents(): ProjectContentTreeRoot {
lastParseSuccess: null,
lastSavedContents: null,
fileContents: {
code: "import * as React from 'react'\nimport { View } from 'utopia-api'\nimport '../public/globals.css'\n\nexport var Playground = ({ style }) => {\n return (\n <div\n style={{\n height: '100%',\n width: '100%',\n contain: 'layout',\n ...style,\n }}\n data-uid='a7b'\n >\n <div\n style={{\n height: 'max-content',\n position: 'absolute',\n left: 163,\n top: 305,\n display: 'flex',\n flexDirection: 'row',\n width: 'max-content',\n gap: 10,\n }}\n data-uid='b15'\n >\n <img\n src='https://github.com/concrete-utopia/utopia/blob/master/editor/resources/editor/[email protected]?raw=true'\n alt='Utopia logo'\n style={{ width: 118, height: 150 }}\n data-uid='b0e'\n />\n <img\n src='https://github.com/concrete-utopia/utopia/blob/master/editor/resources/editor/[email protected]?raw=true'\n alt='Utopia logo'\n style={{ width: 118, height: 150 }}\n data-uid='aaf'\n />\n <img\n src='https://github.com/concrete-utopia/utopia/blob/master/editor/resources/editor/[email protected]?raw=true'\n alt='Utopia logo'\n style={{ width: 118, height: 150 }}\n data-uid='aam'\n />\n </div>\n </div>\n )\n}\n",
code: "import * as React from 'react'\nimport { View } from 'utopia-api'\nimport '../public/globals.css'\n\nexport var Playground = ({ style }) => {\n return (\n <div\n style={{\n height: '100%',\n width: '100%',\n contain: 'layout',\n ...style,\n }}\n data-uid='a7b'\n >\n <div\n style={{\n height: 'max-content',\n position: 'absolute',\n left: 163,\n top: 305,\n display: 'flex',\n flexDirection: 'row',\n width: 'max-content',\n gap: 10,\n }}\n data-uid='b15'\n >\n <img\n src='https://github.com/concrete-utopia/utopia/blob/master/editor/resources/editor/[email protected]?raw=true'\n alt='Utopia logo'\n style={{ width: 118, height: 150 }}\n data-uid='b0e'\n />\n <img\n src='https://github.com/concrete-utopia/utopia/blob/master/editor/resources/editor/[email protected]?raw=true'\n alt='Utopia logo'\n style={{ width: 118, height: 150 }}\n data-uid='aaf'\n />\n <img\n src='https://github.com/concrete-utopia/utopia/blob/master/editor/resources/editor/[email protected]?raw=true'\n alt='Utopia logo'\n style={{ width: 118, height: 150 }}\n data-uid='aam'\n />\n </div>\n </div>\n )\n}\n",
parsed: {
type: 'UNPARSED',
},
Expand All @@ -231,7 +231,7 @@ function createBeachesProjectContents(): ProjectContentTreeRoot {
lastParseSuccess: null,
lastSavedContents: null,
fileContents: {
code: "import * as React from 'react'\nimport '../public/globals.css'\nimport { FlexCol } from './utils'\n\nexport var App = () => {\n return (\n <FlexCol\n style={{\n width: '100%',\n height: '100%',\n background: 'white',\n\n justifyContent: 'center',\n alignItems: 'center',\n }}\n >\n <img\n src='https://github.com/concrete-utopia/utopia/blob/master/editor/resources/editor/pyramid_fullsize@2x.jpg?raw=true'\n alt='Utopia logo'\n style={{\n width: 357,\n height: 453,\n }}\n ></img>\n </FlexCol>\n )\n}\n",
code: "import * as React from 'react'\nimport '../public/globals.css'\nimport { FlexCol } from './utils'\n\nexport var App = () => {\n return (\n <FlexCol\n style={{\n width: '100%',\n height: '100%',\n background: 'white',\n\n justifyContent: 'center',\n alignItems: 'center',\n }}\n >\n <img\n src='https://github.com/concrete-utopia/utopia/blob/master/editor/resources/editor/pyramid_fullsize@2x.png?raw=true'\n alt='Utopia logo'\n style={{\n width: 357,\n height: 453,\n }}\n ></img>\n </FlexCol>\n )\n}\n",
parsed: {
type: 'UNPARSED',
},
Expand Down
Loading