<!doctype html>
<html lang="ko"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{kr/iotdoor/comn/site/layout/cmmnSiteLayout.html}">

<th:block layout:fragment="content">
    <div class="container py-5">
        <div class="row justify-content-center">
            <div class="col-lg-10">
                <div class="mb-4">
                    <a class="btn btn-sm btn-outline-secondary rounded-pill" th:href="@{/portfolio.do}">목록으로</a>
                </div>

                <article class="bg-white rounded shadow-sm overflow-hidden">
                    <img class="img-fluid w-100" th:src="${portfolio.imageUrl}" th:alt="${portfolio.title}">
                    <div class="p-4 p-lg-5">
                        <div class="d-flex flex-wrap gap-3 text-secondary small mb-3">
                            <span th:text="${#temporals.format(portfolio.registeredAt, 'yyyy-MM-dd HH:mm')}">2026-04-16 09:00</span>
                            <span>등록자 <strong th:text="${portfolio.registeredByName}">관리자</strong></span>
                            <span>조회수 <strong th:text="${portfolio.viewCount}">0</strong></span>
                        </div>
                        <h1 class="mb-4" th:text="${portfolio.title}">포트폴리오 제목</h1>
                        <div class="portfolio-content" th:utext="${portfolio.content}">포트폴리오 본문</div>
                    </div>
                </article>
            </div>
        </div>
    </div>
</th:block>
</html>
