parent
4bd6544f05
commit
b479703742
@ -0,0 +1,25 @@
|
||||
.comment-wrapper {
|
||||
background-color: #f2f2f7;
|
||||
border: 1px solid black;
|
||||
border-radius: 1rem;
|
||||
padding: 20px;
|
||||
|
||||
.comment-info {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.comment-text {
|
||||
p {
|
||||
white-space: pre-wrap;
|
||||
font-size: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Form\Type;
|
||||
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
|
||||
class CommentType extends AbstractType
|
||||
{
|
||||
public function buildForm(FormBuilderInterface $builder, array $options): void
|
||||
{
|
||||
$builder
|
||||
->add('text', TextType::class, [
|
||||
'label' => false
|
||||
])
|
||||
->add('submit', SubmitType::class, [
|
||||
'label' => 'Comment'
|
||||
])
|
||||
;
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
<div class="comment-wrapper">
|
||||
<div class="comment-info">
|
||||
<img src="https://api.dicebear.com/8.x/big-smile/svg?seed={{ post.profil.name }}" width="50px">
|
||||
<span>{{ post.profil.name }}</span>
|
||||
{# <span>- {{ post.dateCreated }}</span> #}
|
||||
<span>- 12 hours ago</span>
|
||||
</div>
|
||||
|
||||
<div class="comment-text">
|
||||
<p>{{ comment.text }}</p>
|
||||
</div>
|
||||
</div>
|
Binary file not shown.
Loading…
Reference in new issue