ginipick commited on
Commit
0e85825
·
verified ·
1 Parent(s): 9c80bb4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -57,7 +57,7 @@ h2{margin:0;font-size:1.5rem;font-weight:600}
57
  .grid{display:grid;grid-template-columns:repeat(auto-fill,180px);gap:16px;margin-top:24px}
58
  .card{
59
  background:#fff url('/static/book2.jpg') no-repeat center center;
60
- background-size: 130%; /* 배경 이미지 30% 확대 */
61
  border:1px solid #ccc;
62
  border-radius:6px;
63
  cursor:pointer;
@@ -71,7 +71,7 @@ h2{margin:0;font-size:1.5rem;font-weight:600}
71
  justify-content: center;
72
  }
73
  .card img{
74
- width:65%; /* 썸네일 크기 조정 */
75
  height:auto;
76
  object-fit:contain;
77
  position:absolute; /* 절대 위치로 변경 */
 
57
  .grid{display:grid;grid-template-columns:repeat(auto-fill,180px);gap:16px;margin-top:24px}
58
  .card{
59
  background:#fff url('/static/book2.jpg') no-repeat center center;
60
+ background-size: 169%; /* 배경 이미지를 현재보다 30% 키움 (130% * 1.3 = 169%) */
61
  border:1px solid #ccc;
62
  border-radius:6px;
63
  cursor:pointer;
 
71
  justify-content: center;
72
  }
73
  .card img{
74
+ width:55%; /* 썸네일 크기 줄임 (배경이 커져서 비율 유지) */
75
  height:auto;
76
  object-fit:contain;
77
  position:absolute; /* 절대 위치로 변경 */