style: improved the sketch page
This commit is contained in:
@@ -1,20 +1,24 @@
|
||||
|
||||
{% macro LiveCodeEditorLarge(name, code) %}
|
||||
<div class="livecode-editor livecode-editor-large row no-gutters" id="editor-{{name}}">
|
||||
<div class="col-sm">
|
||||
<div class="heading">
|
||||
<button class="run">Run</button>
|
||||
<h2>Editor</h2>
|
||||
<div class="livecode-editor livecode-editor-large" id="editor-{{name}}">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-md-6">
|
||||
<div class="controls">
|
||||
<button class="run">Run</button>
|
||||
</div>
|
||||
</div>
|
||||
<textarea class="code">{{code}}</textarea>
|
||||
</div>
|
||||
<div class="col-sm">
|
||||
<div class="heading">
|
||||
<h2>Output</h2>
|
||||
</div>
|
||||
<div class="canvas-wrapper">
|
||||
<canvas class="canvas" width="300" height="300"></canvas>
|
||||
<pre class="output"></pre>
|
||||
<div class="code-editor">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-md-6">
|
||||
<div class="code-wrapper">
|
||||
<textarea class="code">{{code}}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-6 canvas-wrapper">
|
||||
<canvas width="300" height="300"></canvas>
|
||||
<pre class="output"></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -84,9 +84,6 @@
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
/* .dashboard__photo {
|
||||
display: none;
|
||||
} */
|
||||
.dashboard__parent {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
@@ -30,14 +30,18 @@
|
||||
|
||||
<div class="sketch-header">
|
||||
{% if editable %}
|
||||
<input type="button" class="pull-right" id="sketch-save" value="Save"/>
|
||||
<h1 class="sketch-title">
|
||||
<input type="text" name="title" id="sketch-title" value="{{ sketch.title }}" />
|
||||
</h1>
|
||||
<div class="form-row">
|
||||
<div class="col-lg-8 col-md-6">
|
||||
<input type="text" id="sketch-title" name="title" class="form-control" value="{{ sketch.title }}">
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-6">
|
||||
<button type="submit" id="sketch-save" class="btn-save btn btn-primary">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<h1 class="sketch-title">{{sketch.title}}</h1>
|
||||
<div class="sketch-owner-wrapper">By <span class="sketch-owner">{{sketch.get_owner_name()}}</span></div>
|
||||
{% endif %}
|
||||
<div class="sketch-owner-wrapper">By <span class="sketch-owner">{{sketch.get_owner_name()}}</span></div>
|
||||
</div>
|
||||
|
||||
{% if sketch.is_new() and not editable %}
|
||||
@@ -49,7 +53,6 @@
|
||||
<div class="sketch-editor">
|
||||
{{LiveCodeEditorLarge(sketch.name, sketch.code) }}
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
{%- block script %}
|
||||
|
||||
Reference in New Issue
Block a user