-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathcomment_delete
More file actions
37 lines (34 loc) · 1.61 KB
/
comment_delete
File metadata and controls
37 lines (34 loc) · 1.61 KB
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
<h1>Delete Comment</h1>
<comment class="card p-4 !mb-4">
<div class="flex justify-between items-center">
<a class="flex items-center gap-1 mb-2" href="">
<img class="w-8 h-8 object-cover rounded-full" src="https://pbs.twimg.com/profile_images/508601156767997952/fFTdKUf2_400x400.jpeg">
<span class="font-bold hover:underline">Bart</span><span class="text-sm font-normal text-gray-400">@bartsimpson</span>
</a>
</div>
<p class="text-xl px-2">
This is a comment from Bart
</p>
<div x-data="{ repliesOpen: false }" class="flex items-center justify-between flex-wrap text-sm px-2">
<a @click=" repliesOpen = !repliesOpen" class="font-bold hover:underline cursor-pointer">
<div class="inline-block" x-bind:class="repliesOpen && 'rotate-90 duration-300'">
<svg transform ="rotate(90)" width="9" height="9" viewBox="0 0 25 25">
<path d="M24 22h-24l12-20z"/>
</svg>
</div>
Replies
<span class="font-light text-gray-500 ml-1">1</span>
</a>
<div class="flex items-center gap-4 [&>a:hover]:underline">
<div class="flex items-center gap-1">
<img class="w-5 -mt-1" src="https://img.icons8.com/small/24/000000/fire-heart.png">1</div>
<a href="">Like</a>
<a href="">Delete</a>
</div>
</div>
</comment>
<p class="my-6">Are you sure you want to delete this comment?</p>
<form method='POST'>
<button type="submit">Confirm</button>
<a class="button secondaryAction ml-1" href="">Go Back</a>
</form>