App.ts
692 Bytes
/**
* @author : wonseog
* @date : 2021/03/08
* @description : 메인 app
* index.ts에서 pathname 받아
* 컴포넌트 제작 후 반환
**/
import Header from "./views/header/Header";
import Body from "./views/body/Body";
import Footer from "./views/footer/Footer";
import './assets/style/App.scss';
import './assets/style/PageTransition.scss';
const App = (pathname : string) : string => {
history.pushState('','', pathname);
return `
<div>
${Header()}
${Body(pathname)}
${Footer()}
<a href="/wonseog" id="nav-button" data-link>wonseok!!</a>
</div>
`;
}
export default App;