-
Notifications
You must be signed in to change notification settings - Fork 3
KDT0_KimMinSeob 인터파크 홈페이지 클론코딩 #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
9857f16
bdacb96
d52cb2e
8f5fabe
42de03b
ae870af
5b6c632
3ab097d
617e08f
ecb18a0
5efd897
15e6aed
50d8f29
5010ced
68ef625
86954b2
0a013aa
7c6b5ba
19589cc
06e4ab1
3c42ea2
95f944c
4e905ba
0f6d227
662ba1d
e350f9f
6896fbe
0101229
cfa15d4
7196516
0ba56a2
4becc4d
6f54d7a
9458d91
f48751f
6093214
1374d8f
f03a500
4bdd5f4
8fc7595
5621db2
e62441b
f526127
f97a6ca
7e86fc1
c3162b0
d3a4585
34d16de
b30dbef
b4d4e5c
d84370c
7a9ea96
b4b2241
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,82 +4,24 @@ | |
| --------------------------------------- | ||
| */ | ||
|
|
||
| .adBanner { | ||
| width: 130.4rem; | ||
| margin: 0rem auto 6rem; | ||
| } | ||
|
|
||
| .mySwiper7 { | ||
| position: relative; | ||
| overflow: hidden; | ||
| width: 130.4rem; | ||
| box-sizing: border-box; | ||
| margin-left: auto; | ||
| margin-right: auto; | ||
| } | ||
|
||
|
|
||
| .mySwiper7 .swiper-wrapper { | ||
| width: 100%; | ||
| height: 100%; | ||
| .ad__banner { | ||
| display: flex; | ||
| box-sizing: content-box; | ||
| position: relative; | ||
| } | ||
| flex-direction: column; | ||
|
||
|
|
||
| .mySwiper7 .swiper-wrapper .swiper-slide .element__image { | ||
| width: 100%; | ||
| height: 100%; | ||
| } | ||
|
|
||
| .mySwiper7 .swiper-wrapper .swiper-slide .element__image img { | ||
| object-fit: cover; | ||
|
||
| border: 1px solid #eee; | ||
| box-sizing: border-box; | ||
| background-color: #999; | ||
| } | ||
|
|
||
| .adBanner .shopping__content { | ||
| width: auto; | ||
|
||
| position: relative; | ||
| } | ||
|
|
||
| .adBanner .shopping__content .right-btn-seven { | ||
| position: absolute; | ||
| right: 0; | ||
| z-index: 50; | ||
| top: 50%; | ||
| z-index: 31; | ||
|
||
| width: 4.8rem; | ||
| height: 4.8rem; | ||
| margin-top: -1.5rem; | ||
| transform: translateX(50%); | ||
|
||
| background: hsla(0, 0%, 100%, 0.9); | ||
| border: 0.1rem solid rgba(0,0,0,0.1); | ||
| box-shadow: 0 0 0.8rem rgba(0,0,0,.13); | ||
| align-items: center; | ||
| justify-content: center; | ||
| border-radius: 10rem; | ||
| } | ||
|
|
||
| .adBanner .shopping__content .right-btn-seven::before { | ||
| content: '다음'; | ||
| color: transparent; | ||
| width: 3.8rem; | ||
| height: 4rem; | ||
| margin-left: 0.3rem; | ||
| background-image: url("../assets/image/right-arrow.svg"); | ||
| background-repeat: no-repeat; | ||
| background-position: center; | ||
| background-size: contain; | ||
| .ad__container { | ||
| width: 100%; | ||
| height: 100%; | ||
| } | ||
|
|
||
| .ad__item--image-container { | ||
| width: 100%; | ||
| height: 100%; | ||
|
|
||
|
|
||
| .adBanner .shopping__bottom { | ||
| position: relative; | ||
| overflow: hidden; | ||
| } | ||
|
|
||
| .adBanner .shopping__bottom > button { | ||
| position: absolute; | ||
| bottom: -8.5rem; | ||
| } | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Intersection Observer API를 활용해서 배너들이 뷰포트의 30%이상을 넘기면 fade in 효과를 적용해보았습니다. 하지만 관련 내용을 찾아보던 중 intersection observer api를 사용하면 scroll에 따른 user의 log를 볼 수 없다는 것을 알 수 있었습니다. 소비자 데이터를 수집하는 관점에서는 아직 intersection observer api를 사용하기에는 어렵다는 것을 알 수 있었습니다. 따라서 UI적으로 사용하는 관점에서는 사용을 해도 무방하나, 쇼핑몰 같은 소비자의 정보 log를 얻어야 하는 웹사이트에서는 기존의 scoll effect를 구현해야 한다는 것을 알 수 있었습니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
변경 내용
margin 0 rem;에서 rem 단위 제거
발생 오류
가운데 정렬을 하기 위해서 불필요한 CSS 요소를 사용
해결 과정
상위 Section에 width : 75%를 부여함으로써 불필요한 CSS 정렬 요소들 제거
리뷰 관련
padding과 margin은 각각 필요한 곳에서만 사용해야 한다는 방법론을 배움