component
import type { NextPage } from "next";
import Image from "next/image";
import data from "../carddata.json";
const Home: NextPage = () => {
return (
<div>
<div className="main">
<div className="title">모바일 초대장</div>
<div className="image">
<Image
alt="logo"
width="500px"
height="500px"
/>
</div>
<div className="content">
약속 내용을 단순하게 한번의 링크로 정리해 드립니다
</div>
</div>
<style jsx>{`
.main {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 95px;
background-color: #57648c;
}
.main > .title {
font-weight: bolder;
font-size: 48px;
color: orange;
}
.main > .content {
font-weight: bolder;
font-size: 28px;
color: orange;
}
.main > .image {
border: 4px solid #57648c;
border-radius: 50%;
background-color: black;
margin: 30px;
}
`}</style>
</div>
);
};
export default Home;
container
import { NextPage } from "next";
import Home from "../components";
const indexContainer: NextPage = () => {
return (
<div>
<Home />
</div>
);
};
export default indexContainer;
이부분도 css가 위주라서 설명 생략 하겠습니다.
'next+ts' 카테고리의 다른 글
next+ts 마이페이지 전체 코드 둘러보기(Component+container) (0) | 2022.05.07 |
---|---|
next+ts 로그인 페이지 전체 코드 둘러보기(Component+container) (0) | 2022.05.04 |
next+ts 폼선택 페이지 전체 코드 둘러보기(Component+container) (0) | 2022.05.04 |
next+ts 폼관련 페이지 전체 코드 둘러보기(Component+container) (0) | 2022.05.03 |
next+ts 업데이터 페이지 전체 코드 둘러보기 (Component+container) (0) | 2022.05.02 |