Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import "./icon-link-list.js";
import "./image.js";
import "./intro-section.js";
import "./language-section.js";
import "./leaderboard-section.js";
import "./testimony-section.js";
import "./testimony.js";
import "./steps-section.js";
Expand Down
1 change: 1 addition & 0 deletions components/language-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class LanguageSection extends HTMLElement {
justify-content: center;
align-items: center;
height: 100vh;
background-color: var(--bg-100);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기존 배경색이 잘못되어 수정했습니다!

}

section {
Expand Down
108 changes: 108 additions & 0 deletions components/leaderboard-section.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
import { LEADERBOARD_URL } from "../data.js";
import { css, html } from "../html-css-utils.js";

class LeaderboardSection extends HTMLElement {
constructor() {
super();
this.render();
}

render() {
this.attachShadow({ mode: "open" });
this.shadowRoot.innerHTML = this.createCss() + this.createHtml();
}

createCss() {
return css`
:host {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: var(--bg-100);
}

section {
display: flex;
flex-direction: column;
row-gap: 30px;
margin: 0px 27px 0px;
max-width: 1550px;

@media only screen and (min-width: 768px) {
row-gap: 50px;
margin: 0px 75px 0px 76px;
}

@media only screen and (min-width: 1024px) {
position: relative;
flex-direction: row;
width: 80%;
height: 52vh;
margin: 0;
}
}

.hero {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
row-gap: 20px;
width: 65%;

@media only screen and (min-width: 768px) {
row-gap: 30px;
width: 40%;
}

@media only screen and (min-width: 1024px) {
justify-content: center;
row-gap: 40px;
width: 37%;
}
}

.gap {
@media only screen and (min-width: 1024px) {
justify-content: center;
width: 16%;
}
}

aside {
width: 100%;

@media only screen and (min-width: 1024px) {
width: 70%;
}
}
`;
}

createHtml() {
return html`
<section>
<aside>
<ds-image
src="images/leaderboard.png"
alt="languages"
width="100%"
height="auto"
></ds-image>
</aside>

<div class="gap"></div>

<div class="hero">
<ds-hero> 성장의 발자취를 리더보드에서 확인할 수 있어요 </ds-hero>
<ds-button-link size="big" variant="ghost" href="${LEADERBOARD_URL}">
리더보드 보기
</ds-button-link>
</div>
</section>
`;
}
}

customElements.define("ds-leaderboard-section", LeaderboardSection);
2 changes: 1 addition & 1 deletion components/steps-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class StepsSection extends HTMLElement {
return css`
:host {
display: block;
background-color: var(--bg-200);
background-color: var(--bg-100);
}

section {
Expand Down
5 changes: 5 additions & 0 deletions components/testimony-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ class TestimonySection extends HTMLElement {

createCss() {
return css`
:host {
display: block;
background-color: var(--bg-200);
}

section {
max-width: 1550px;
margin: 0 27px;
Expand Down
Binary file added images/leaderboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@

<ds-code-review-section></ds-code-review-section>

<ds-leaderboard-section></ds-leaderboard-section>

<ds-testimony-section></ds-testimony-section>

<ds-steps-section id="steps-section"></ds-steps-section>
Expand Down