frontend: improve "New issue" form

This commit is contained in:
0x1eef 2023-12-20 18:47:26 -03:00
parent eb17444397
commit df120bac9e
3 changed files with 37 additions and 30 deletions

View file

@ -7,12 +7,11 @@ html, html body, .form {
} }
body { body {
font-family: "Dhurjati Regular";
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
header, .body { header, #reactapp {
margin: 0 auto; margin: 0 auto;
color: $black; color: $black;
width: 75%; width: 75%;
@ -26,26 +25,22 @@ header {
line-height: 1; line-height: 1;
font-weight: normal; font-weight: normal;
} }
min-height: 64px;
} }
.body { form.new-issue {
height: 100%; .pure-u-1-1 {
font-size: larger;
ul.connections {
margin: 0;
padding: 0;
list-style-type: none;
}
.form {
.row {
display: flex; display: flex;
width: 100%; margin: 0 0 15px 0;
textarea, input {
width: 100%; .left {
width: 20%;
select { width: 100%; }
margin: 0 1% 0 0;
} }
} .right {
.row.content { width: 75%;
height: 55%; input, textarea { width: 100%; }
} }
} }
} }

View file

@ -1,2 +1,4 @@
<section class='body' id='reactapp'></section> <div class="pure-g">
<form class="new-issue pure-form" id="reactapp"></form>
<script src="/js/entry-point/new-issue.js"></script> <script src="/js/entry-point/new-issue.js"></script>
</div>

View file

@ -3,17 +3,27 @@ import { ConnectionSelect } from "/components/forms/ConnectionSelect";
export function NewIssueForm() { export function NewIssueForm() {
return ( return (
<form className="form"> <>
<div className="row"> <div className="pure-u-1-1">
<div className="left">
<ConnectionSelect/> <ConnectionSelect/>
<input name="title" type="text" placeholder="The title of the issue" />
</div> </div>
<div className="row content"> <div className="right">
<textarea name="content"/> <input name="title" type="text" placeholder="Title" />
</div> </div>
<div className="row">
<button type="submit">Save</button>
</div> </div>
</form> <div className="pure-u-1-1">
<div className="left"></div>
<div className="right">
<textarea name="content" placeholder="Add your description here"/>
</div>
</div>
<div className="pure-u-1-1">
<div className="left"></div>
<div className="right">
<button className="pure-button pure-button-primary" type="submit">Save</button>
</div>
</div>
</>
); );
} }