메인페이지
<div class="collection_block feb">
<div class="slide">
<!--3월베스트유럽3주(0315-0404) 02-28업뎃-->
<div class="collection_card_list">
<button type="button" onclick="location.href='https://wannago.oopy.io/96123ea4-ad98-4966-ad86-456153b641b2' " class="collection_item_bottom"><img class="img_item" loading="lazy" style="width: 100%; height: 100%;"
src="https://oopy.lazyrockets.com/api/v2/notion/image?src=https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F4031a111-bcc6-43de-a06d-82c640ce405a%2Fa6c66cc6-0fb0-44e6-9848-3fe1cff15759%2F031.jpg&blockId=15463518-7ad4-4452-8383-dfd9922e135a"></button>
<div class="card_text"><a class="tag1">유럽3주</a> <a class="tag3">마감임박</a><br><b>[21일]베스트유럽21일</b><br>따뜻한 유럽의 봄</div>
</div>
<!--3월베스트유럽3주(0329-0418) 02-28 업뎃-->
<div class="collection_card_list">
<button type="button" onclick="location.href='https://wannago.oopy.io/f9c9dbb7-b58f-4f8a-8641-fccb714b686a' " class="collection_item_bottom"><img class="img_item" loading="lazy" style="width: 100%; height: 100%;"
src="https://oopy.lazyrockets.com/api/v2/notion/image?src=https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F4031a111-bcc6-43de-a06d-82c640ce405a%2F4028b52c-a766-4471-a1b8-12b6b8caa82f%2F032.jpg&blockId=9feb0f2c-051d-4cf9-8394-a7fb4bf2df82"></button>
<div class="card_text"><a class="tag1">유럽3주</a> <a class="tag3">마감임박</a><br><b>[21일]베스트유럽21일</b><br>따뜻한 유럽의 봄</div>
</div>
<!--3월스테이런파9일-->
<div class="collection_card_list">
<button type="button" onclick="location.href='https://wannago.oopy.io/868b89ee-4b84-445c-ae4b-fae1cd2c043a' " class="collection_item_bottom"><img class="img_item" loading="lazy" style="width: 100%; height: 100%;"
src="https://oopy.lazyrockets.com/api/v2/notion/image?src=https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F4031a111-bcc6-43de-a06d-82c640ce405a%2F9589439e-aa7b-454e-8270-8795073915de%2F3%25E1%2584%2589%25E1%2585%25B3_%25E1%2584%2585%25E1%2585%25A5%25E1%2586%25AB%25E1%2584%2591%25E1%2585%25A1%25E1%2584%2589%25E1%2585%25A6-min.jpg&blockId=c4f9a46f-228d-4dba-8611-a3da5adb5780"></button>
<div class="card_text"><a class="tag1">유럽1주</a> <a class="tag3">마감임박</a><br><b>[9일]런던파리</b><br>가볍게 유럽 일주일</div>
</div>
<!--몽골사전신청-->
<div class="collection_card_list">
<button type="button" onclick="location.href='https://wannago.oopy.io/mongolia' " class="collection_item_bottom"><img class="img_item" loading="lazy" style="width: 100%; height: 100%;"
src="https://oopy.lazyrockets.com/api/v2/notion/image?src=https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F4031a111-bcc6-43de-a06d-82c640ce405a%2Fe743ab07-fb0f-4eac-a835-1044ed82c092%2F%25EC%25A0%259C%25EB%25AA%25A9%25EC%259D%2584_%25EC%259E%2585%25EB%25A0%25A5%25ED%2595%25B4%25EC%25A3%25BC%25EC%2584%25B8%25EC%259A%2594_-037.jpg&blockId=0881ea9c-7b3c-482b-81ee-385d52d91caa"></button>
<div class="card_text"><a class="tag1">몽골</a> <a class="tag3">사전신청</a><br><b>[사전신청]몽골</b><br>새로운 여행지로 떠나봐요</div>
</div>
</div>
</div>
HTML
복사
<!-- 이미지 갤러리 -->
<style>
/*전체*/
.collection_block{
display: flex;
}
.tag1{
background-color:#ffffff;
border: solid #4096FF 1px;
color: #4096FF;
border-radius: 4px;
padding: 2px 8px;
}
.tag2{
background-color:#ECECEC;
color: #5841D7;
border-radius: 4px;
padding: 2px 8px;
}
/*마감임박*/
.tag3{
white-space:nowrap;
background-color:#FFDED9;
color: #FF4F4B;
border-radius: 4px;
padding: 2px 8px;
}
.tag4{
background-color:#856EFF;
color: #FFD058;
border-radius: 4px;
padding: 4px 8px;
}
.tag5{
background-color:#ECECEC;
color: #5841D7;
border-radius: 4px;
padding: 3px 8px;
}
/*1줄*/
.slide{
display: grid;
position: relative;
width: 100%;
height: 100%;
/*한 줄에 노출될 카드의 개수 repeat(노출될 카드 개수,비율(고정)) */
grid-template-columns: repeat(4, 1fr);
row-gap: 12px;
column-gap: 12px;
padding-top: 16px;
padding-bottom: 4px;
margin: 0 auto; /* 중앙 정렬 */
}
.img_item:hover{
filter: brightness(0.8);
}
/*카드 세로 안적으면 이미지 크기 고정됨*/
.collection_card_list{
width: 100%;
height: 100%;
display: flex;
flex-direction: column; /* 추가: 열 방향으로 정렬 */
align-items: center; /* 추가: 가운데 정렬 */
}
/*이미지*/
.collection_item_bottom{
display: block;
overflow: hidden;
transition: background 100ms ease-out;
position: static;
width: 100%;
background-color: white;
border: none;
}
/*텍스트박스*/
.card_text {
width: 100%;
padding: 6px;
white-space: pre-line;
overflow: hidden;
text-overflow: ellipsis;
font-size:12px;
line-height: 20px;
heihgt: 50px;
font-family: "Gmarket Sans";
}
@media screen and (max-width: 800px) {
.slide{
/*한 줄에 노출될 카드의 개수 repeat(노출될 카드 개수,비율(고정)) */
grid-template-columns: repeat(3, 1fr);
}
}
@media screen and (max-width: 600px) {
.slide{
/*한 줄에 노출될 카드의 개수 repeat(노출될 카드 개수,비율(고정)) */
grid-template-columns: repeat(2, 1fr);
}
}
</style>
HTML
복사