Skip to content

Commit

Permalink
update : create the gap to management the ratio of hero and the image
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTheKorean committed Jul 10, 2024
1 parent ce1e728 commit 2739041
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
18 changes: 12 additions & 6 deletions components/language-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class LanguageSection extends HTMLElement {
}
}
div {
.hero {
display: flex;
flex-direction: column;
justify-content: flex-start;
Expand All @@ -61,11 +61,18 @@ class LanguageSection extends HTMLElement {
}
}
.gap {
@media only screen and (min-width: 1024px) {
justify-content: center;
width: 16%;
}
}
aside {
width: 100%;
@media only screen and (min-width: 1024px) {
width: 63%;
width: 47%;
}
}
Expand Down Expand Up @@ -98,9 +105,6 @@ class LanguageSection extends HTMLElement {
::slotted([slot="desktop-image"]) {
display: block;
width: auto;
height: 100%;
}
}
`;
Expand All @@ -115,7 +119,9 @@ class LanguageSection extends HTMLElement {
<slot name="mobile-image"></slot>
</aside>
<div>
<div class="gap"></div>
<div class="hero">
<slot name="heading"></slot>
<slot name="button"></slot>
</div>
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@
slot="desktop-image"
src="images/vertical-language.png"
alt="languages"
width="auto"
height="100%"
width="100%"
height="auto"
></ds-image>
<ds-hero slot="heading">
지역에 관계없이 λ‹€μ–‘ν•œ μ–Έμ–΄λ‘œ μ°Έμ—¬ν•  수 μžˆμ–΄μš”.
Expand Down

0 comments on commit 2739041

Please sign in to comment.