Skip to content

Commit 4d4f0b5

Browse files
committed
added styles
1 parent 62e2b03 commit 4d4f0b5

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

public/assets/css/styles.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ a, a label {
2727
background-image:url('images/bg1.jpg');
2828
background-size: 1300px 960px;
2929
background-repeat: no-repeat;
30+
overflow: scroll;
3031
}
3132

3233
/* Login form and signup form styles */
@@ -89,9 +90,21 @@ a, a label {
8990
#noteContent {
9091
color: #000;
9192
}
93+
#notes {
94+
overflow: hidden;
95+
}
9296

9397
.currentNote {
9498
height:170px;
95-
background: #80ff80;
99+
background: #000;
96100
margin: 10px;
101+
word-wrap: break-word;
102+
overflow: auto;
103+
border-radius: 17px;
104+
color: gray;
105+
}
106+
#editNote, #deleteNote {
107+
text-decoration: none;
108+
color: green;
109+
padding-top: 4px;
97110
}

public/controllers/dashboard-controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ notes.controller('dashboardCtrl', function dashboardCtrl($scope, $window, $http)
3434
var html = '';
3535
html += '<div class="col-md-3 currentNote" id= "'+data._id+'" ng-repeat="note in notes">';
3636
html += '<div class="row">';
37-
html += '<a class="col-md-2" id="editNotedeleteNote" ng-click="getNoteById('+data._id+')">Edit</a>';
38-
html += '<a class="col-md-2" id="deleteNote" ng-click="deleteNote('+data._id+')">Delete</a>';
37+
html += '<a class="col-md-2" id="editNotedeleteNote" ng-click="getNoteById('+data._id+')"><i class="fa fa-pencil"></i></a>';
38+
html += '<a class="col-md-2" id="deleteNote" ng-click="deleteNote('+data._id+')"><i class="fa fa-trash-o" aria-hidden="true"></i></a>';
3939
html += '</div>';
4040
html += '<h1>'+$scope.noteHeading+'</h1>';
4141
html += '<div class="col-md-12" id="noteBody">'+$scope.note+'</div>';

public/views/dashboard.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
1212
<link rel="stylesheet" type="text/css" href="../assets/css/styles.css">
13+
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
1314

1415
<!-- Angular from Google CDN -->
1516
<script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
@@ -21,7 +22,7 @@
2122
<script type="text/javascript" src="../controllers/dashboard-controller.js"></script>
2223
</head>
2324
<body ng-controller="dashboardCtrl">
24-
<div class="container">
25+
<div class="container dashboard-container">
2526
<h2 style="color: #fff">Welcome <span ng-bind="name.firstname"></span>!</h2>
2627
<div class="panel panel-default">
2728
<div class="panel-heading">
@@ -31,11 +32,11 @@ <h2 style="color: #fff">Welcome <span ng-bind="name.firstname"></span>!</h2>
3132
<div class="panel-body" id="notes">
3233
<div class="col-md-3 currentNote" id={{note._id}} ng-repeat="note in notes">
3334
<div class="row">
34-
<a class="col-md-2" id="editNote" ng-click="getNoteById(note._id)" data-target="#pModal">Edit</a>
35-
<a class="col-md-2" id="deleteNote" ng-click="deleteNote(note._id)">Delete</a>
35+
<a class="col-md-offset-8 col-md-2" id="editNote" ng-click="getNoteById(note._id)" data-target="#pModal"><i class="fa fa-pencil"></i></a>
36+
<a class="col-md-2" id="deleteNote" ng-click="deleteNote(note._id)"><i class="fa fa-trash-o" aria-hidden="true"></i></a>
3637
</div>
37-
<h1>{{note.noteTitle}}</h1>
38-
<div class="col-md-12" id="noteBody">{{note.noteBody}}</div>
38+
<h1 ng-bind="note.noteTitle"></h1>
39+
<div class="col-md-12" id="noteBody" ng-bind="note.noteBody"></div>
3940
</div>
4041
</div>
4142
</div>

0 commit comments

Comments
 (0)