+ `;
+ }
+}
+
+export default Hits;
diff --git a/src/components/Nav.js b/src/components/Nav.js
index 7f5c973..eee50c6 100644
--- a/src/components/Nav.js
+++ b/src/components/Nav.js
@@ -1,5 +1,6 @@
import { SHOW_ROUTE } from '../common/constants/route.js';
import BurgerNavPopup from './BurggerNavPopup.js';
+
import Modal from './Modal.js';
class Nav {
@@ -29,7 +30,7 @@ class Nav {
render = () => {
this.$wrapper.innerHTML = `
-
Sanghun(Cloud) Lee
+
Sanghun Lee
${SHOW_ROUTE.map((el) => {
return `
diff --git a/src/pages/Home/constants/element.js b/src/pages/Home/constants/element.js
index f51f90c..207b1bf 100644
--- a/src/pages/Home/constants/element.js
+++ b/src/pages/Home/constants/element.js
@@ -2,4 +2,5 @@ export const $ELEMENT = {
HOME_MAIN_CONTAINER: 'home-main-container',
LATEST_POST_CONTAINER: 'latest-post-container',
RESUME_CONTAINERL: 'resume-container',
+ HITS_CONTAINER: 'hits-wrapper',
};
diff --git a/src/pages/Home/index.js b/src/pages/Home/index.js
index 2189518..0ed4c90 100644
--- a/src/pages/Home/index.js
+++ b/src/pages/Home/index.js
@@ -1,5 +1,6 @@
import Contribution from './components/Contribution/index.js';
import LatestPost from './components/LatestPost/index.js';
+import Hits from '../../components/Hits.js';
import { $ELEMENT } from './constants/element.js';
class Home {
@@ -17,6 +18,7 @@ class Home {
`;
};
@@ -30,11 +32,13 @@ class Home {
const resumeContainer = document.querySelector(
`.${$ELEMENT.RESUME_CONTAINERL}`
);
+ const hitsContainer = document.querySelector(`.${$ELEMENT.HITS_CONTAINER}`);
new LatestPost({
$target: postContainer,
});
new Contribution({ $target: resumeContainer });
+ new Hits({ $target: hitsContainer });
};
addListeners = () => {};
diff --git a/src/styles/style.css b/src/styles/style.css
index 1081afa..5f7093e 100644
--- a/src/styles/style.css
+++ b/src/styles/style.css
@@ -544,3 +544,7 @@ body {
align-items: center;
justify-content: center;
}
+
+.hits-wrapper {
+ margin: 36px 0px;
+}