보라코딩

깔끔한 댓글창 (부트스트랩) 본문

코딩/Spring

깔끔한 댓글창 (부트스트랩)

new 보라 2023. 6. 9. 17:27

 

 

 

.card-header{
background-color: lavender;
}

 


<!--댓글 시작-->

<div class="container">
<div class="text-center mb-3 mt-1">
<h5 class="card-header mb-4">
<svg xmlns="http://www.w3.org/2000/svg" width="23" height="23" fill="currentColor" class="bi bi-egg-fried" viewBox="0 0 16 16">
<path d="M8 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
<path d="M13.997 5.17a5 5 0 0 0-8.101-4.09A5 5 0 0 0 1.28 9.342a5 5 0 0 0 8.336 5.109 3.5 3.5 0 0 0 5.201-4.065 3.001 3.001 0 0 0-.822-5.216zm-1-.034a1 1 0 0 0 .668.977 2.001 2.001 0 0 1 .547 3.478 1 1 0 0 0-.341 1.113 2.5 2.5 0 0 1-3.715 2.905 1 1 0 0 0-1.262.152 4 4 0 0 1-6.67-4.087 1 1 0 0 0-.2-1 4 4 0 0 1 3.693-6.61 1 1 0 0 0 .8-.2 4 4 0 0 1 6.48 3.273z"/>
</svg>
맛집 한줄 평가
<svg xmlns="http://www.w3.org/2000/svg" width="23" height="23" fill="currentColor" class="bi bi-egg-fried" viewBox="0 0 16 16">
<path d="M8 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
<path d="M13.997 5.17a5 5 0 0 0-8.101-4.09A5 5 0 0 0 1.28 9.342a5 5 0 0 0 8.336 5.109 3.5 3.5 0 0 0 5.201-4.065 3.001 3.001 0 0 0-.822-5.216zm-1-.034a1 1 0 0 0 .668.977 2.001 2.001 0 0 1 .547 3.478 1 1 0 0 0-.341 1.113 2.5 2.5 0 0 1-3.715 2.905 1 1 0 0 0-1.262.152 4 4 0 0 1-6.67-4.087 1 1 0 0 0-.2-1 4 4 0 0 1 3.693-6.61 1 1 0 0 0 .8-.2 4 4 0 0 1 6.48 3.273z"/>
</svg>
</h5>
</div>
<div class="row mb-5">
<div class="col-sm-12">
<div class="card mb-3"
th:each="comment : ${storeVO_comment.StarVO}"
th:if="${storeVO_comment.StarVO[0].storeComment != null}">

<div class="card-body">

<div class="row">
<div class="col-sm-3">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-person" viewBox="0 0 16 16">
<path d="M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z"/>
</svg>
Mate
<th:block th:with="starCount=${comment.storeStar}">
<span th:if="${starCount != 0.0}" th:each="i: ${#numbers.sequence(1, starCount)}" class="yellow"></span>
</th:block>

</div>

<div class="col-sm-9">

<span th:text="${comment.storeComment}"></span>
</div>
</div>
</div>
</div>


<span th:if="${storeVO_comment.StarVO[0].storeComment == null}">
<div class="card mb-3">
<div class="card-body">
<div class="row">
<div class="col-sm-12 text-center purple2">
맛집 결제 후, 첫 리뷰를 작성해보세요
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-emoji-smile" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
<path d="M4.285 9.567a.5.5 0 0 1 .683.183A3.498 3.498 0 0 0 8 11.5a3.498 3.498 0 0 0 3.032-1.75.5.5 0 1 1 .866.5A4.498 4.498 0 0 1 8 12.5a4.498 4.498 0 0 1-3.898-2.25.5.5 0 0 1 .183-.683zM7 6.5C7 7.328 6.552 8 6 8s-1-.672-1-1.5S5.448 5 6 5s1 .672 1 1.5zm4 0c0 .828-.448 1.5-1 1.5s-1-.672-1-1.5S9.448 5 10 5s1 .672 1 1.5z"/>
</svg>
</div>
</div>
</div>
</div>
</span>


</div>
</div>
</div>