test 1-2 4

<!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; } body { background: #f2f2f2; font-family: sans-serif; margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 40px 10px; box-sizing: border-box; } .album-container { display: flex; flex-direction: column; align-items: center; gap: 60px; } .a5-page { width: var(--a5-width); height: var(--a5-height); background: white; position: relative; box-shadow: 0 0 8px rgba(0,0,0,0.2); overflow: hidden; page-break-after: always; border: 1px solid #ccc; } .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 사진 정사각형 왼쪽 세로 배치 */ .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; } /* 페이지 번호 표시 */ .page-number { position: absolute; bottom: 10px; right: 14px; font-size: 11px; color: #555; z-index: 2; } /* 모바일 대응 */ @media (max-width: 460px) { .a5-page { width: 90vw; height: auto; aspect-ratio: 420 / 595; } } /* 인쇄 대응 */ @media print { body { background: white; padding: 0; display: block; } .album-container { gap: 0; } .a5-page { width: 148mm; height: 210mm; box-shadow: none; border: none; page-break-after: always; } .frame-bg { print-color-adjust: exact; -webkit-print-color-adjust: exact; } .page-number { font-size: 10pt; color: #000; } } </style> </head> <body> <div class="album-container"> <!-- 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 class="page-number">1</div> </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 class="page-number">2</div> </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.

2

Articles