Skip to content

Commit

Permalink
화면에 띄울 컨텐츠 없을 때 렌더링 할 컴포넌트 별도의 파일로 제작
Browse files Browse the repository at this point in the history
  • Loading branch information
ryusudol committed Nov 1, 2023
1 parent 3e7bce9 commit 874c9eb
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions front-end/components/NoContent.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from 'react';
import Image from 'next/image';

type PropsType = {
text: string;
};

const NoContent = ({ text }: PropsType) => {
return (
<div className="flex flex-col items-center justify-center w-full h-full bg-white">
<div className="px-6 py-4 mb-10 text-3xl rounded-lg">{text}</div>
<Image
className="opacity-25"
src={'/images/confucian.jpeg'}
width={500}
height={500}
alt="Maple img"
/>
</div>
);
};

export default NoContent;

0 comments on commit 874c9eb

Please sign in to comment.