blob: 4d9fc64847050034613ad1680acf3d0764843dc9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
<app-loading *ngIf="!loaded"></app-loading>
<section class="card flex-row" *ngIf="loaded">
<aside class="left-pane">
<img class="author-picture round-image hover-half-opacity" [src]="user.profilePictureURL" (click)="goToAuthorProfile()">
</aside>
<main class="content flexible">
<summary class="font-size-dot8 text-vertical-middle hover-half-opacity" (click)="goToAuthorProfile()">
<span>
{{ user.firstName }} {{ user.lastName }}
</span>
<span class="fg-color-faded">
@{{ user.userName }}
</span>
</summary>
<article class="message">
{{ post.message }}
</article>
<section class="flex-row flexible-children">
<figure *ngFor="let fileURL of post.fileURLs">
<app-post-attachment [paramURL]="fileURL"></app-post-attachment>
</figure>
</section>
<section class="post-details flex-row flex-justify-end font-size-dot7 faded-slim-border border-bottom-only">
<time class="flex-row flex-center-align-items">
<img class="img-height-font-size" src="/assets/icons/tabler-icon-calendar-time.svg">
<span>
{{ timeCreated }}
</span>
</time>
<summary class="flex-row flex-center-align-items">
<img class="img-height-font-size" src="/assets/icons/tabler-icon-message-2.svg">
<span>
{{ post.comments.length }}
</span>
</summary>
</section>
<section class="flex-row flexible-children justify-children-center">
<button class="padding-small lighter-hover click-effect border-radius-smaller" (click)="goToPostPage()">
<img src="/assets/icons/tabler-icon-message-2.svg">
Comment
</button>
<button class="padding-small lighter-hover click-effect border-radius-smaller" (click)="goToPostPage()">
<img src="/assets/icons/tabler-icon-link.svg">
Share
</button>
</section>
</main>
<aside class="flex-col flex-center-align-items">
<button class="flex-col lighter-hover border-radius-small click-effect" (click)="votePost(true)">
<img src="/assets/icons/tabler-icon-chevron-up.svg">
</button>
<summary>
{{ votesNumber }}
</summary>
<button class="flex-col lighter-hover border-radius-small click-effect" (click)="votePost(false)">
<img src="/assets/icons/tabler-icon-chevron-down.svg">
</button>
</aside>
</section>
|