Spaces:
Paused
Paused
Update artifacts.py
Browse files- artifacts.py +5 -5
artifacts.py
CHANGED
|
@@ -27,17 +27,17 @@ class MiddlewareHTMLGenerator:
|
|
| 27 |
body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #1e1e1e; color: #ffffff; }
|
| 28 |
.header { height: 40px; background-color: #2d2d2d; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; position: sticky; top: 0; z-index: 1000; }
|
| 29 |
.content-wrapper { padding: 20px; }
|
| 30 |
-
.content-item { width: 100%; margin-bottom: 20px; border: 1px solid #444; background-color: #
|
| 31 |
.content-item.code-view { padding: 10px; }
|
| 32 |
.render-view .rendered-content { margin: 0; padding: 0; }
|
| 33 |
pre { white-space: pre-wrap; word-wrap: break-word; background-color: #1e1e1e; padding: 10px; border-radius: 5px; margin: 0; }
|
| 34 |
code { font-family: 'Courier New', Courier, monospace; }
|
| 35 |
.hidden { display: none; }
|
| 36 |
-
h2 { margin: 0; padding: 10px; background-color: #3d3d3d; }
|
| 37 |
-
.iframe-wrapper { width: 100%; height: 600px; overflow: hidden; position: relative; resize: both; background-color:
|
| 38 |
.content-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; background-color: transparent; }
|
| 39 |
.resize-handle { position: absolute; bottom: 0; right: 0; width: 20px; height: 20px; cursor: se-resize; }
|
| 40 |
-
.responsive-controls { display: flex; justify-content: center; margin-bottom: 10px;
|
| 41 |
.device-button { margin: 0 4px; padding: 5px 7px; background-color: transparent; color: #ffffff; border: 1px solid #ffffff; cursor: pointer; border-radius: 4px; transition: background-color 0.3s, color 0.3s; }
|
| 42 |
.device-button:hover { background-color: rgba(255, 255, 255, 0.1); }
|
| 43 |
.device-button.active { background-color: rgba(255, 255, 255, 0.2); font-weight: bold; }
|
|
@@ -408,7 +408,7 @@ class MiddlewareHTMLGenerator:
|
|
| 408 |
<div class='content-item render-view' data-artifact="{i+1}">
|
| 409 |
<h2>HTML Content {i+1}</h2>
|
| 410 |
<div class="responsive-controls">
|
| 411 |
-
<button class="device-button" data-width="
|
| 412 |
<button class="device-button" data-width="768px">Tablet</button>
|
| 413 |
<button class="device-button active" data-width="100%">Desktop</button>
|
| 414 |
<!-- CodePen Button -->
|
|
|
|
| 27 |
body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #1e1e1e; color: #ffffff; }
|
| 28 |
.header { height: 40px; background-color: #2d2d2d; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; position: sticky; top: 0; z-index: 1000; }
|
| 29 |
.content-wrapper { padding: 20px; }
|
| 30 |
+
.content-item { width: 100%; margin-bottom: 20px; border: 1px solid #444; background-color: #ffffff; }
|
| 31 |
.content-item.code-view { padding: 10px; }
|
| 32 |
.render-view .rendered-content { margin: 0; padding: 0; }
|
| 33 |
pre { white-space: pre-wrap; word-wrap: break-word; background-color: #1e1e1e; padding: 10px; border-radius: 5px; margin: 0; }
|
| 34 |
code { font-family: 'Courier New', Courier, monospace; }
|
| 35 |
.hidden { display: none; }
|
| 36 |
+
h2 { margin: 0; padding: 10px; background-color: #3d3d3d; border-bottom: 1px solid #cccccc; }
|
| 37 |
+
.iframe-wrapper { width: 100%; height: 600px; overflow: hidden; position: relative; resize: both; background-color: #ffffff; }
|
| 38 |
.content-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; background-color: transparent; }
|
| 39 |
.resize-handle { position: absolute; bottom: 0; right: 0; width: 20px; height: 20px; cursor: se-resize; }
|
| 40 |
+
.responsive-controls { background-color: #3d3d3d; display: flex; justify-content: center; margin-top: 0; border-bottom: 10px solid #3d3d3d; border-top: 10px solid #3d3d3d; }
|
| 41 |
.device-button { margin: 0 4px; padding: 5px 7px; background-color: transparent; color: #ffffff; border: 1px solid #ffffff; cursor: pointer; border-radius: 4px; transition: background-color 0.3s, color 0.3s; }
|
| 42 |
.device-button:hover { background-color: rgba(255, 255, 255, 0.1); }
|
| 43 |
.device-button.active { background-color: rgba(255, 255, 255, 0.2); font-weight: bold; }
|
|
|
|
| 408 |
<div class='content-item render-view' data-artifact="{i+1}">
|
| 409 |
<h2>HTML Content {i+1}</h2>
|
| 410 |
<div class="responsive-controls">
|
| 411 |
+
<button class="device-button" data-width="320px">Mobile</button>
|
| 412 |
<button class="device-button" data-width="768px">Tablet</button>
|
| 413 |
<button class="device-button active" data-width="100%">Desktop</button>
|
| 414 |
<!-- CodePen Button -->
|