Skip to content

Commit dc7eb19

Browse files
committed
fix: change template
1 parent ca9e3e8 commit dc7eb19

File tree

1 file changed

+20
-21
lines changed
  • apps/top-flex-box-example/src

1 file changed

+20
-21
lines changed

apps/top-flex-box-example/src/App.js

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,32 @@ function App() {
55
<div id="editor">
66
<Sandpack
77
files={{
8-
"/index.html": {
8+
"styles.css": {
9+
active: true,
10+
code: `
11+
.flex-container {
12+
/* display: flex; */
13+
gap: 12px;
14+
}
15+
16+
/* this selector selects all divs inside of .flex-container */
17+
.flex-container div {
18+
background: peachpuff;
19+
border: 4px solid brown;
20+
height: 100px;
21+
/* flex: 1; */
22+
}
23+
`
24+
},
25+
"index.html": {
926
code: `
1027
<!DOCTYPE html>
1128
<html lang="en">
1229
<head>
1330
<meta charset="UTF-8">
1431
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1532
<title>Document</title>
16-
<link rel="stylesheet" href="/styles.css">
33+
<link rel="stylesheet" href="styles.css">
1734
</head>
1835
<body>
1936
<div class="flex-container">
@@ -24,30 +41,12 @@ function App() {
2441
</body>
2542
</html>`
2643
},
27-
"styles.css": {
28-
active: true,
29-
code: `
30-
.flex-container {
31-
/* display: flex; */
32-
}
33-
34-
/* this selector selects all divs inside of .flex-container */
35-
.flex-container div {
36-
background: peachpuff;
37-
border: 4px solid brown;
38-
height: 100px;
39-
/* flex: 1; */
40-
}
41-
`
42-
},
43-
"index.js": {
44-
hidden: true,
45-
}
4644
}}
4745
options={{
4846
editorHeight: "100vh",
4947
}}
5048
theme={'dark'}
49+
template="static"
5150
/>
5251
</div>
5352
);

0 commit comments

Comments
 (0)