Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
moondda committed Nov 7, 2023
1 parent 2fa53aa commit 46178f2
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 45 deletions.
63 changes: 33 additions & 30 deletions 1μ£Όμ°¨/3.μ›¨λΉ„μ˜ 사진관/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,41 @@
</head>
<body>
<header class="main-title" id="head">λ‹€ν˜„μ΄μ˜ 유럽 뿌수기πŸ‡ͺπŸ‡ΊβœˆοΈ</header>
<div class="scroll-left"><</div>

<section class="img-preview">
<img
src="./pics/KakaoTalk_Photo_2023-10-09-15-33-07 004.jpeg"
alt="μˆ™μ†Œμ—μ„œ λ³Έ 포λ₯΄νˆ¬κ°ˆ"
/>
<img
src="./pics/KakaoTalk_Photo_2023-10-09-15-33-09 022.jpeg"
alt="관광객듀 사진 μ°μ–΄μ£ΌλŠ” λ‹€ν˜„μ΄"
/>
<img
src="./pics/KakaoTalk_Photo_2023-10-09-15-33-41 013.jpeg"
alt="λ‚­λœ¨ μ•„κ²½"
/>
<img
src="./pics/KakaoTalk_Photo_2023-10-09-15-33-40 003.jpeg"
alt="포λ₯΄νˆ¬κ°ˆ κ³΅μ›μ—μ„œ 에그타λ₯΄νŠΈ"
/>
<img
src="./pics/KakaoTalk_Photo_2023-10-09-15-33-09 023.jpeg"
alt="날씨가 λ„ˆλ¬΄ μ’‹μ•˜λ˜ 포λ₯΄νˆ¬"
/>
<img
src="./pics/KakaoTalk_Photo_2023-10-09-15-33-41 009.jpeg"
alt="λ‚­λœ¨ λ§ˆμ§€λ§‰ λ‚  λ°€"
/>
<img
src="./pics/KakaoTalk_Photo_2023-10-09-15-33-40 006.jpeg"
alt="ν™”μ°½ν•œ λ‚  리슀본 κ³΅μ›μ—μ„œ"
/>
<div class="scroll-left"><</div>
<ul>
<img
src="./pics/KakaoTalk_Photo_2023-10-09-15-33-07 004.jpeg"
alt="μˆ™μ†Œμ—μ„œ λ³Έ 포λ₯΄νˆ¬κ°ˆ"
/>
<img
src="./pics/KakaoTalk_Photo_2023-10-09-15-33-09 022.jpeg"
alt="관광객듀 사진 μ°μ–΄μ£ΌλŠ” λ‹€ν˜„μ΄"
/>
<img
src="./pics/KakaoTalk_Photo_2023-10-09-15-33-41 013.jpeg"
alt="λ‚­λœ¨ μ•„κ²½"
/>
<img
src="./pics/KakaoTalk_Photo_2023-10-09-15-33-40 003.jpeg"
alt="포λ₯΄νˆ¬κ°ˆ κ³΅μ›μ—μ„œ 에그타λ₯΄νŠΈ"
/>
<img
src="./pics/KakaoTalk_Photo_2023-10-09-15-33-09 023.jpeg"
alt="날씨가 λ„ˆλ¬΄ μ’‹μ•˜λ˜ 포λ₯΄νˆ¬"
/>
<img
src="./pics/KakaoTalk_Photo_2023-10-09-15-33-41 009.jpeg"
alt="λ‚­λœ¨ λ§ˆμ§€λ§‰ λ‚  λ°€"
/>
<img
src="./pics/KakaoTalk_Photo_2023-10-09-15-33-40 006.jpeg"
alt="ν™”μ°½ν•œ λ‚  리슀본 κ³΅μ›μ—μ„œ"
/>
</ul>
<div class="scroll-right">></div>
</section>
<div class="scroll-right">></div>
<nav class="nav">
<div>πŸ“ΈβœŒοΈ ν΄λ¦­ν•˜λ©΄ μ΄λ™ν•΄μš”! ✌️ πŸ“Έ</div>
<ul>
Expand Down
42 changes: 27 additions & 15 deletions 1μ£Όμ°¨/3.μ›¨λΉ„μ˜ 사진관/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ html {
body {
font-weight: bold;
background-color: #ecffdc;
margin: 0;
}

a {
Expand Down Expand Up @@ -43,26 +44,28 @@ li {
background-color: mediumaquamarine;
height: 3rem;
position: sticky;
width: 100%;
top: 0; /* ν™”λ©΄ 상단에 κ³ μ • */
}

.img-preview {
display: flex;
overflow-x: auto; /*κ°€λ‘œ μŠ€ν¬λ‘€λ°”*/
margin: 0 1rem;
/* width: 90%; */
margin: 0 2rem;
height: 28rem;
align-items: center;
position: relative;
}

::-webkit-scrollbar {
/* ::-webkit-scrollbar {
width: 1rem;
}
.img-preview::-webkit-scrollbar-thumb {
background-color: mediumaquamarine;
border-radius: 3rem;
}
} */

.img-preview img {
width: 20rem;
Expand All @@ -71,6 +74,10 @@ li {
margin-right: 0.5rem;
}

/* .img-preview ul {
width: 90%;
} */

.nav {
display: flex;
justify-content: center;
Expand Down Expand Up @@ -108,8 +115,10 @@ li {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
transform: translate(-50%, -50%); /* ν…μŠ€νŠΈλ₯Ό κ°€μš΄λ°λ‘œ 이동 */
border: 1px solid red;
text-align: center;
color: #ffffff;
}

Expand All @@ -118,7 +127,7 @@ li {
white-space: normal;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
word-break: keep-all;
}
Expand All @@ -134,10 +143,9 @@ li {
.img-portugal {
display: flex;
flex-wrap: wrap;
flex-grow: 1;
width: 70%;
text-align: center;
justify-content: center;
padding: 1rem 15rem;
gap: 0.5rem;
margin: 1rem auto;
}
Expand All @@ -151,8 +159,8 @@ li {
}

.img-portugal-main img {
width: 29rem; /* 이미지가 λΆ€λͺ¨μ˜ 100% κ°€λ‘œ λ„ˆλΉ„λ₯Ό μ‚¬μš©ν•˜λ„λ‘ μ„€μ • */
height: 41rem; /* μ΄λ―Έμ§€μ˜ μ„Έλ‘œ λΉ„μœ¨μ„ μœ μ§€ν•˜λ„λ‘ μ„€μ • */
width: 100%;
height: 100%;
flex-grow: 1;
object-fit: cover;
}
Expand All @@ -163,12 +171,12 @@ li {
flex-grow: 1;
gap: 0.5rem;
justify-content: center;
width: 25rem;
width: 29rem;
padding-bottom: 0;
}

.img-portugal-sub div {
width: 12rem; /* 이미지가 λΆ€λͺ¨μ˜ 100% κ°€λ‘œ λ„ˆλΉ„λ₯Ό μ‚¬μš©ν•˜λ„λ‘ μ„€μ • */
width: 12rem;
height: 20rem;
flex-grow: 1;
margin: 0 auto;
Expand Down Expand Up @@ -246,19 +254,23 @@ footer {
}

.scroll-left {
position: absolute;
top: 35%;
position: sticky;
display: flex;
align-items: center;
left: 0;
height: 28rem;
font-size: 3rem;
font-weight: bold;
color: mediumaquamarine;
cursor: pointer;
}

.scroll-right {
position: absolute;
top: 35%;
position: sticky;
display: flex;
align-items: center;
right: 0;
height: 28rem;
font-size: 3rem;
font-weight: bold;
color: mediumaquamarine;
Expand Down

0 comments on commit 46178f2

Please sign in to comment.