diff --git a/src/main/ts/src/app/core/post-card/post-card.component.html b/src/main/ts/src/app/core/post-card/post-card.component.html
new file mode 100644
index 0000000..bbbb314
--- /dev/null
+++ b/src/main/ts/src/app/core/post-card/post-card.component.html
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+ {{post.title}}
+
+
+
+ {{post.description}}
+
+
+
+
+
+
diff --git a/src/main/ts/src/app/core/post-card/post-card.component.ts b/src/main/ts/src/app/core/post-card/post-card.component.ts
index 350d99f..fdf0cab 100755
--- a/src/main/ts/src/app/core/post-card/post-card.component.ts
+++ b/src/main/ts/src/app/core/post-card/post-card.component.ts
@@ -3,35 +3,11 @@ import { Post } from '../entities';
@Component({
selector: 'app-post-card',
- template: `
-
-
-
-
{{post.title}}
-
{{post.description}}
-
-
-
![]()
- Article écrit par {{post.author.name}}
-
({{post.creationDate | date:'yyyy-MM-dd HH:mm:ss'}})
-
-
`,
+ templateUrl: './post-card.component.html',
styles: [`
- div.card {
+ .post-card {
margin-bottom: 50px;
- }
- .card .card-data {
- padding: 15px;
- background-color: #f5f5f5;
+ cursor: pointer;
}
.creation-date-area {
color: #bdbdbd;