Skip to content

Commit

Permalink
Merge pull request #69 from DaleStudy/revert-49-sam/48
Browse files Browse the repository at this point in the history
Revert "feat : made hero component responsive"
  • Loading branch information
SamTheKorean authored Jun 22, 2024
2 parents 05e036f + 5c1a3d4 commit 93232f9
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 46 deletions.
42 changes: 0 additions & 42 deletions components/hero.js

This file was deleted.

4 changes: 4 additions & 0 deletions components/hero/hero.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.hero-description {
font-size: 5rem;
font-weight: medium;
}
17 changes: 17 additions & 0 deletions components/hero/hero.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const template = document.createElement('template');
template.innerHTML = `
<link rel="stylesheet" href="./components/hero/hero.css">
<p class="hero-description">
<slot></slot>
</p>
`;

class Hero extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: 'open' });
this.shadowRoot.appendChild(template.content.cloneNode(true));
}
}

window.customElements.define('hero-component', Hero);
2 changes: 0 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@

<div id="review-container">
<div class="hero">
<ds-hero>์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ํ†ตํ•ด ์ƒˆ๋กœ์šด ๊ด€์ ์„ ๋ฐฐ์šธ ์ˆ˜ ์žˆ์–ด์š”</ds-hero>
<link-button size="big" variant="secondary" href="https://discord.gg/43UkheRV">๋””์Šค์ฝ”๋“œ ์ฐธ์—ฌํ•˜๊ธฐ</link-button>
<p>์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ํ†ตํ•ด ์ƒˆ๋กœ์šด ๊ด€์ ์„ ๋ฐฐ์šธ ์ˆ˜ ์žˆ์–ด์š”</p>
<link-button
size="big"
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "./components/footer-link/footer-link.js";
import "./components/header.js"
import "./components/hero.js";
import "./components/header.js";
import "./components/hero/hero.js";
import "./components/link-button/link-button.js";
import "./components/review-item/review-item.js";
import "./components/seo-meta-tag/seo-meta-tag.js";

0 comments on commit 93232f9

Please sign in to comment.