This repository has been archived on 2024-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
staxman-old/templates/stack/new-form.html

38 lines
774 B
HTML
Raw Normal View History

2023-11-23 00:38:39 +00:00
{% extends "base.html" %}
{% block title %}New stack{% endblock %}
{% block content %}
2023-11-23 13:18:00 +00:00
<main>
<header>
<h1>New stack</h1>
</header>
<section class="editor">
2023-11-23 23:17:03 +00:00
<form method="POST" id="editor-form">
2023-11-23 13:18:00 +00:00
<div class="row">
2023-11-23 23:17:03 +00:00
<input style="flex:1" name="name" type="text" placeholder="Stack name" required />
2023-11-23 13:18:00 +00:00
</div>
2023-11-23 23:17:03 +00:00
<textarea name="source" id="editor" required>{}</textarea>
2023-11-23 13:18:00 +00:00
<div class="row">
<button type="submit">Create & Deploy</button>
</div>
</form>
</section>
</main>
<link rel="stylesheet" href="/static/css/editor.css" />
<style scoped>
main {
display: flex;
flex-direction: column;
gap: 1rem;
}
</style>
<script type="module">
import Editor from "/static/js/ace.mjs";
2023-11-23 23:17:03 +00:00
const editor = new Editor("editor");
2023-11-23 13:18:00 +00:00
</script>
2023-11-23 00:38:39 +00:00
{% endblock %}