Skip to content

Commit

Permalink
🎨 Refact: refact create post logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Sye0w committed Oct 3, 2024
1 parent d0db1d0 commit 6eae0b4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/components/create-post/create-post.component.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<section class="create-post">
<div class="content">
<div class="profile" (click)="toggleSidebarEvent()">
<img id="profile-img" [src]="currentUser?.image || 'https://api.dicebear.com/9.x/thumbs/svg?seed=Jameson'" alt="" title="toggle sidebar">
<img id="profile-img" [src]="currentUser?.image || 'https://api.dicebear.com/9.x/thumbs/svg?seed=Jameson'" alt="" title="show profile">
<div>
<img src="../../../assets/images/icon-edit.svg" alt="">
</div>
</div>
</div>
<div class="content-grp">
<textarea name="content" id="post" placeholder="Share your thoughts or start writing your story here..." [(ngModel)]="content"></textarea>
<textarea name="content" id="post"
(keydown.enter)="createPost()"
placeholder="Share your thoughts or start writing your story here..."
[(ngModel)]="content"></textarea>
<button mat-raised-button color="primary" (click)="createPost()" title="create post">
create post
</button>
Expand Down

0 comments on commit 6eae0b4

Please sign in to comment.