diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-02-24 18:56:32 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-02-24 18:56:32 +0200 |
| commit | 301e3932b64172b3f9cf055287fdfdb4a89620af (patch) | |
| tree | ff504329477476665be6d44a43c3171ba71d38ee /src/app/components/post/post.component.html | |
| parent | 2b5b2f2449317b8aebd2d8962a930bf454d100fb (diff) | |
| download | DevHive-Angular-301e3932b64172b3f9cf055287fdfdb4a89620af.tar DevHive-Angular-301e3932b64172b3f9cf055287fdfdb4a89620af.tar.gz DevHive-Angular-301e3932b64172b3f9cf055287fdfdb4a89620af.zip | |
Improved semantics and simplified some HTML of comments and posts
Diffstat (limited to 'src/app/components/post/post.component.html')
| -rw-r--r-- | src/app/components/post/post.component.html | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/src/app/components/post/post.component.html b/src/app/components/post/post.component.html index bc0d84a..4ba4d43 100644 --- a/src/app/components/post/post.component.html +++ b/src/app/components/post/post.component.html @@ -1,8 +1,8 @@ <app-loading *ngIf="!loaded"></app-loading> -<div class="post rounded-border" *ngIf="loaded"> - <div class="content"> - <div class="author" (click)="goToAuthorProfile()"> +<section class="post rounded-border" *ngIf="loaded"> + <section class="content"> + <summary class="author" (click)="goToAuthorProfile()"> <img class="round-image" [src]="user.profilePictureURL"> <div class="author-info"> <div class="name"> @@ -12,38 +12,37 @@ @{{ user.userName }} </div> </div> - </div> - <div class="message" (click)="goToPostPage()"> + </summary> + <article class="message" (click)="goToPostPage()"> {{ post.message }} - </div> + </article> <div class="bottom-post" (click)="goToPostPage()"> - <div class="timestamp"> + <time class="timestamp"> {{ timeCreated }} - </div> + </time> <div class="separator"> ║ </div> - <div class="comment-count"> + <summary class="comment-count"> {{ post.comments.length }} <img src="assets/images/comment.png"> - </div> + </summary> </div> - - </div> - <div class="rating"> + </section> + <section class="rating"> <button class="vote"> ᐃ </button> - <div class="score"> + <summary class="score"> {{ votesNumber }} - </div> + </summary> <button class="vote"> ᐁ </button> - </div> -</div> -<div class="attachments"> - <div *ngFor="let fileURL of post.fileURLs"> + </section> +</section> +<aside class="attachments"> + <figure *ngFor="let fileURL of post.fileURLs"> <app-post-attachment class="no-events" [paramURL]="fileURL"></app-post-attachment> - </div> -</div> + </figure> +</aside> |
