Skip to content

Commit

Permalink
Merge pull request #197 from DaleStudy/centralize-other-urls
Browse files Browse the repository at this point in the history
๋ชจ๋“  URL ์ค‘์•™ํ™”
  • Loading branch information
DaleSeo authored Aug 8, 2024
2 parents a30301e + 12bde93 commit 3a6767c
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 67 deletions.
17 changes: 12 additions & 5 deletions components/code-review-section.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { css, html } from "../html-css-utils.js";
import { DISCORD_URL } from "../data.js";

class CodeReviewSection extends HTMLElement {
constructor() {
Expand Down Expand Up @@ -71,19 +72,25 @@ class CodeReviewSection extends HTMLElement {
}
}
`;
}

}

createHtml() {
return html`
<section>
<aside>
<slot name="image"></slot>
<ds-image
src="images/review.png"
alt="review"
width="100%"
height="auto"
></ds-image>
</aside>
<div class="hero">
<slot name="heading"></slot>
<slot name="button"></slot>
<ds-hero> ์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ํ†ตํ•ด ์ƒˆ๋กœ์šด ๊ด€์ ์„ ๋ฐฐ์šธ ์ˆ˜ ์žˆ์–ด์š” </ds-hero>
<ds-button-link size="big" variant="primary" href="${DISCORD_URL}">
๋””์Šค์ฝ”๋“œ ์ฐธ์—ฌํ•˜๊ธฐ
</ds-button-link>
</div>
</section>
`;
Expand Down
6 changes: 3 additions & 3 deletions components/footer-link-list.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { css, html } from "../html-css-utils.js";
import { APPLICATION_URL } from "../data.js";
import { APPLICATION_URL, CONTRIBUTING_URL, FAQ_URL } from "../data.js";

class FooterLinkList extends HTMLElement {
constructor() {
Expand Down Expand Up @@ -70,7 +70,7 @@ class FooterLinkList extends HTMLElement {
return html`<ul>
<li>
<a
href="https://github.com/DaleStudy/leetcode-study/discussions/54"
href="${FAQ_URL}"
target="_blank"
aria-label="Read the FAQ discussion on Algorithm study group"
>
Expand All @@ -90,7 +90,7 @@ class FooterLinkList extends HTMLElement {
<li>
<a
href="https://github.com/DaleStudy/leetcode-study/blob/main/CONTRIBUTING.md"
href="${CONTRIBUTING_URL}"
target="_blank"
aria-label="Read the contributing guide for the Algorithm study group"
>
Expand Down
6 changes: 2 additions & 4 deletions components/header.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { css, html } from "../html-css-utils.js";
import { DISCORD_URL } from "../data.js";

class Header extends HTMLElement {
constructor() {
Expand Down Expand Up @@ -288,10 +289,7 @@ class Header extends HTMLElement {
<ds-button-link href="#steps-section" size="small" variant="ghost"
>์ฐธ์—ฌ๋ฐฉ๋ฒ• ์•ˆ๋‚ด</ds-button-link
>
<ds-button-link
href="https://discord.gg/6TwzdnW6ze"
size="small"
variant="primary"
<ds-button-link href="${DISCORD_URL}" size="small" variant="primary"
>๋””์Šค์ฝ”๋“œ ์ฐธ์—ฌํ•˜๊ธฐ</ds-button-link
>
</div>
Expand Down
30 changes: 26 additions & 4 deletions components/icon-link-list.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { css, html } from "../html-css-utils.js";
import {
ALGO_DALE_URL,
GITHUB_URL,
LINKED_IN_URL,
YOUTUBE_URL,
} from "../data.js";

class IconLinkList extends HTMLElement {
constructor() {
Expand Down Expand Up @@ -58,7 +64,11 @@ class IconLinkList extends HTMLElement {

createHtml() {
return html`<section>
<a href="https://www.algodale.com/" target="_blank" aria-label="Visit the Algodale website">
<a
href="${ALGO_DALE_URL}"
target="_blank"
aria-label="Visit the Algodale website"
>
<svg
width="24"
height="24"
Expand All @@ -73,7 +83,11 @@ class IconLinkList extends HTMLElement {
</svg>
</a>
<a href="https://www.linkedin.com/in/daleseo/" target="_blank" aria-label="Visit Dale's LinkedIn profile">
<a
href="${LINKED_IN_URL}"
target="_blank"
aria-label="Visit Dale's LinkedIn profile"
>
<svg
width="24"
height="24"
Expand All @@ -88,7 +102,11 @@ class IconLinkList extends HTMLElement {
</svg>
</a>
<a href="https://github.com/DaleStudy/leetcode-study" target="_blank" aria-label="Visit the Algorithm study group's GitHub repository">
<a
href="${GITHUB_URL}"
target="_blank"
aria-label="Visit the Algorithm study group's GitHub repository"
>
<svg
width="25"
height="24"
Expand All @@ -103,7 +121,11 @@ class IconLinkList extends HTMLElement {
</svg>
</a>
<a href="https://www.youtube.com/@DaleSeo" target="_blank" aria-label="Visit Dale's YouTube channel">
<a
href="${YOUTUBE_URL}"
target="_blank"
aria-label="Visit Dale's YouTube channel"
>
<svg
width="25"
height="18"
Expand Down
2 changes: 1 addition & 1 deletion components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ import "./intro-section.js";
import "./language-section.js";
import "./participant-review-section.js";
import "./participant-review.js";
import "./step-section.js";
import "./steps-section.js";
import "./step.js";
14 changes: 11 additions & 3 deletions components/intro-section.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { css, html } from "../html-css-utils.js";
import { DISCORD_URL } from "../data.js";

class IntroSection extends HTMLElement {
constructor() {
Expand Down Expand Up @@ -87,12 +88,19 @@ class IntroSection extends HTMLElement {
return html`
<section>
<aside>
<slot name="image"></slot>
<ds-image
src="images/roadmap.png"
alt="roadmap"
width="100%"
height="auto"
></ds-image>
</aside>
<article>
<slot name="heading"></slot>
<slot name="button"></slot>
<ds-hero> ํ•ด์™ธ์ทจ์—…์„ ์œ„ํ•œ ์ปค๋ฎค๋‹ˆํ‹ฐ ๊ธฐ๋ฐ˜ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์Šคํ„ฐ๋”” </ds-hero>
<ds-button-link size="big" variant="primary" href="${DISCORD_URL}">
๋””์Šค์ฝ”๋“œ ์ฐธ์—ฌํ•˜๊ธฐ
</ds-button-link>
</article>
</section>
`;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { html, css } from "../html-css-utils.js";
import { APPLICATION_URL } from "../data.js";
import { APPLICATION_URL, DISCORD_URL, PROJECT_URL } from "../data.js";

class StepsSection extends HTMLElement {
constructor() {
Expand Down Expand Up @@ -55,9 +55,7 @@ class StepsSection extends HTMLElement {
<p slot="content">
๋‹ต์•ˆ ์ œ์ถœ๊ณผ ํ™•์ธ์€ ๊นƒํ—ˆ๋ธŒ๋ฅผ ํ†ตํ•ด ์ด๋ฃจ์–ด์ ธ์š”. ์Šคํ„ฐ๋”” ์ „์ฒด
์ง„ํ–‰์ƒํ™ฉ์„ ์•Œ๊ณ  ์‹ถ๋‹ค๋ฉด
<ds-step-text-link
link="https://github.com/orgs/DaleStudy/projects/1"
>
<ds-step-text-link link="${PROJECT_URL}">
ํ”„๋กœ์ ํŠธ ๋ณด๋“œ
</ds-step-text-link>
๋ฅผ ํ†ตํ•ด ํŒŒ์•…ํ•  ์ˆ˜ ์žˆ์–ด์š”.
Expand All @@ -66,7 +64,7 @@ class StepsSection extends HTMLElement {
<ds-step step="3" icon-src="images/icon_step3.png">
<p slot="content">
๋งค์ฃผ ์Šคํ„ฐ๋”” ๋ฉค๋ฒ„๋“ค๋ผ๋ฆฌ
<ds-step-text-link link="https://discord.com/invite/6TwzdnW6ze">
<ds-step-text-link link="${DISCORD_URL}">
๋””์Šค์ฝ”๋“œ
</ds-step-text-link>
์—์„œ ๊ฐ„๋‹จํ•œ ๋ชจ์ž„์„ ๊ฐ€์ ธ์š”. ๋ฉค๋ฒ„ ๊ฐ„์˜ ์นœ๋ฐ€๊ฐ๋„ ์Œ“๊ณ  ํ•ด์™ธ ์ทจ์—…
Expand Down
10 changes: 10 additions & 0 deletions data.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
export const APPLICATION_URL =
"https://github.com/DaleStudy/leetcode-study/discussions/209";
export const DISCORD_URL = "https://discord.gg/6TwzdnW6ze";
export const PROJECT_URL = "https://github.com/orgs/DaleStudy/projects/1";
export const CONTRIBUTING_URL =
"https://github.com/DaleStudy/leetcode-study/blob/main/CONTRIBUTING.md";
export const FAQ_URL =
"https://github.com/DaleStudy/leetcode-study/discussions/54";
export const ALGO_DALE_URL = "https://www.algodale.com/";
export const LINKED_IN_URL = "https://www.linkedin.com/in/daleseo/";
export const GITHUB_URL = "https://github.com/DaleStudy/leetcode-study";
export const YOUTUBE_URL = "https://www.youtube.com/@DaleSeo";
44 changes: 2 additions & 42 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,27 +46,7 @@
<body style="display: none">
<ds-header></ds-header>

<ds-intro-section id="intro-section">
<ds-hero slot="heading">
ํ•ด์™ธ์ทจ์—…์„ ์œ„ํ•œ ์ปค๋ฎค๋‹ˆํ‹ฐ ๊ธฐ๋ฐ˜ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์Šคํ„ฐ๋””
</ds-hero>
<ds-button-link
slot="button"
size="big"
variant="primary"
href="https://discord.gg/6TwzdnW6ze"
>
๋””์Šค์ฝ”๋“œ ์ฐธ์—ฌํ•˜๊ธฐ
</ds-button-link>

<ds-image
slot="image"
src="images/roadmap.png"
alt="roadmap"
width="100%"
height="auto"
></ds-image>
</ds-intro-section>
<ds-intro-section id="intro-section"></ds-intro-section>

<ds-language-section>
<ds-image
Expand Down Expand Up @@ -103,27 +83,7 @@
</ds-button-link>
</ds-language-section>

<ds-code-review-section>
<ds-hero slot="heading">
์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ํ†ตํ•ด ์ƒˆ๋กœ์šด ๊ด€์ ์„ ๋ฐฐ์šธ ์ˆ˜ ์žˆ์–ด์š”
</ds-hero>
<ds-button-link
slot="button"
size="big"
variant="primary"
href="https://discord.gg/6TwzdnW6ze"
>
๋””์Šค์ฝ”๋“œ ์ฐธ์—ฌํ•˜๊ธฐ
</ds-button-link>

<ds-image
slot="image"
src="images/review.png"
alt="review"
width="100%"
height="auto"
></ds-image>
</ds-code-review-section>
<ds-code-review-section></ds-code-review-section>

<ds-participant-reviews-section>
<ds-hero>์ฐธ๊ฐ€์ž ํ›„๊ธฐ</ds-hero>
Expand Down

0 comments on commit 3a6767c

Please sign in to comment.