diff --git a/scripts/app.js b/scripts/app.js index 9645393..63da937 100644 --- a/scripts/app.js +++ b/scripts/app.js @@ -53,6 +53,13 @@ app.controller("create", ["$scope", "$http", // Tell the user that the deed is done *diabolical laughter* // alert("Post has been submitted. Thank you!"); } + + $scope.onTagAdding = ($tag) => + { + if (!$tag.text.startsWith("#")) + $tag.text = "#" + $tag.text; + return true; + } } ]); diff --git a/styles/default.css b/styles/default.css index 1d026f9..881578b 100644 --- a/styles/default.css +++ b/styles/default.css @@ -204,3 +204,49 @@ a color: #fffa; } + +.createForm input, +.createForm textarea +{ + width: 100%; +} + +.createForm .title, +.createForm .author +{ + font-size: 18pt; + line-height: 25px; + + display: block; + + width: 100%; + + border: 0; + border-bottom: 5px solid #000; +} + +.createForm .author +{ + width: 100%; + + color: #000; +} + +.createForm .tags +{ + width: 100%; + + color: #000; +} + +.createForm .content +{ + resize: vertical; + + color: #000; +} + +.createForm .submit +{ + color: #000; +} diff --git a/views/create.html b/views/create.html index 0fc4920..24d604b 100644 --- a/views/create.html +++ b/views/create.html @@ -1,7 +1,22 @@ -
-
-
-
-
- +

Create a new post

+ + +
+ +
+ + + +
+ +
+