test 1-2 3

<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>Photo Album A5</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="https://cdn.jsdelivr.net/npm/lightbox2@2.11.4/dist/css/lightbox.min.css" rel="stylesheet" /> <style> :root { --a5-width: 420px; --a5-height: 595px; --square: 297.5px; /* Half of 595px */ } body { background: #f2f2f2; font-family: sans-serif; display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; padding: 40px; box-sizing: border-box; } .a5-page { width: var(--a5-width); height: var(--a5-height); background: white; position: relative; box-shadow: 0 0 5px rgba(0,0,0,0.2); overflow: hidden; flex-shrink: 0; page-break-after: always; } .frame-bg { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: 0; } .photo-slot { position: absolute; z-index: 1; overflow: hidden; border-radius: 4px; } .photo-slot img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block; } /* 1페이지: 왼쪽 세로 정렬 정사각형 2장 */ .page1 .slot1 { top: 0; left: 0; width: var(--square); height: var(--square); } .page1 .slot2 { top: var(--square); left: 0; width: var(--square); height: var(--square); } /* 2페이지 */ .page2 .slot1 { top: 6%; left: 5%; width: 90%; height: 55%; } .page2 .caption { position: absolute; bottom: 6%; left: 5%; width: 90%; font-size: 12px; z-index: 1; } .page2 .caption-title { font-weight: bold; font-size: 14px; margin-bottom: 6px; } /* 모바일 대응 */ @media (max-width: 460px) { .a5-page { width: 90vw; height: auto; aspect-ratio: 420 / 595; } } /* 인쇄 설정 */ @media print { body { background: white; padding: 0; display: block; } .a5-page { width: 148mm; height: 210mm; box-shadow: none; page-break-after: always; } .frame-bg { print-color-adjust: exact; -webkit-print-color-adjust: exact; } } </style> </head> <body> <!-- Page 1 --> <div class="a5-page page1"> <img class="frame-bg" src="/files/attach/images/2025/04/30/ea837362da02d633b8b0168375e79183.jpg" alt="Page 1 Frame"> <a href="/files/attach/images/2025/04/30/ea837362da02d633b8b0168375e79183.jpg" data-lightbox="album" data-title="Desert View 1"> <div class="photo-slot slot1"> <img src="/files/attach/images/2025/04/30/ea837362da02d633b8b0168375e79183.jpg" alt="Photo 1"> </div> </a> <a href="/files/attach/images/2025/04/30/0493a3f881d83c0263211d06af551990.jpg" data-lightbox="album" data-title="Desert View 2"> <div class="photo-slot slot2"> <img src="/files/attach/images/2025/04/30/0493a3f881d83c0263211d06af551990.jpg" alt="Photo 2"> </div> </a> </div> <!-- Page 2 --> <div class="a5-page page2"> <img class="frame-bg" src="/files/attach/images/2025/04/30/0493a3f881d83c0263211d06af551990.jpg" alt="Page 2 Frame"> <a href="/files/attach/images/2025/04/30/aed9d0c3fbcc3bd8a5a1e2070ce3fcaf.jpg" data-lightbox="album" data-title="Desert View 3"> <div class="photo-slot slot1"> <img src="/files/attach/images/2025/04/30/aed9d0c3fbcc3bd8a5a1e2070ce3fcaf.jpg" alt="Photo 3"> </div> </a> <div class="caption"> <div class="caption-title">PUT SOME TITLE HERE</div> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vitae velit eros. Vivamus semper, velit vel sagittis convallis, nisl nisl fermentum urna.</p> </div> </div> <script src="https://cdn.jsdelivr.net/npm/lightbox2@2.11.4/dist/js/lightbox.min.js"></script> </body> </html>
by eGrida posted May 10, 2025
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄
Extra Form
Photo Album A5
Page 2 Frame
Photo 3
PUT SOME TITLE HERE

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vitae velit eros. Vivamus semper, velit vel sagittis convallis, nisl nisl fermentum urna.


Articles