-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(save): move dummy form to component
- Loading branch information
1 parent
f1d07e4
commit 993633f
Showing
5 changed files
with
55 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as React from 'react' | ||
|
||
export default class SaveForm extends React.Component<{}> { | ||
render () { | ||
return ( | ||
<form id='save-form'> | ||
<div className='title'> | ||
<input type='text' name='title' placeholder='Commit message' /> | ||
</div> | ||
<div className='message'> | ||
<textarea name='message' placeholder='Detailed description' /> | ||
</div> | ||
<div className='submit'> | ||
<input className='submit'type="submit" value="Submit" /> | ||
</div> | ||
</form> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// TODO import this | ||
$sidebar-item-padding: 6px 10px; | ||
|
||
#save-form { | ||
background-color: steelblue; | ||
height: 180px; | ||
display: flex; | ||
flex-direction: column; | ||
padding: 6px 0; | ||
|
||
input, textarea { | ||
width: 100%; | ||
} | ||
|
||
textarea { | ||
vertical-align: top; | ||
resize: none; | ||
height: 100% | ||
} | ||
|
||
.title { | ||
padding: $sidebar-item-padding; | ||
} | ||
|
||
.message { | ||
flex-grow: 1; | ||
padding: $sidebar-item-padding; | ||
} | ||
|
||
.submit { | ||
padding: $sidebar-item-padding; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters