Skip to content

Commit 0378d4a

Browse files
add css
1 parent 4ede837 commit 0378d4a

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/components/add-note/AddNote.component.jsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import React from 'react'
22
import { Link } from 'react-router-dom'
3+
import './add-note.styles.css'
34

45
export const AddNote = () => {
56
return (
67
<>
7-
<h1>Add Note</h1>
8-
<input id="title" type='text' placeholder='Enter a Title'></input>
9-
<textarea id="body" placeholder='Enter the note'></textarea>
10-
<button>ADDING NOTES COMING SOON!</button>
8+
<h1>Add Note (To Do)</h1>
9+
<form id="add-note" action='/'>
10+
<input id="title" type='text' placeholder='Enter a Title'></input>
11+
<textarea id="body" placeholder='Enter the note'></textarea>
12+
<button onClick={e => e.preventDefault()} type="submit">ADDING NOTES COMING SOON!</button>
13+
</form>
1114
<Link to='/'>Go Back</Link>
1215
</>
1316
)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#add-note * {
2+
display: block;
3+
margin-bottom: 15px;
4+
}

0 commit comments

Comments
 (0)