Skip to content

Commit

Permalink
feat(status): add introduce widget and UI components (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
SWARVY committed Jun 23, 2024
1 parent 469183e commit ce064bd
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/status/public/lottie/inspection.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions apps/status/src/widgets/introduce/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './ui';
16 changes: 16 additions & 0 deletions apps/status/src/widgets/introduce/ui/InspectionLottie.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use client';

import Lottie from 'react-lottie-player';

import inspectionLottieJson from '@/public/lottie/inspection.json';

export default function InspectionLottie() {
return (
<Lottie
className="hidden w-[400px] shrink-0 md:block"
loop
animationData={inspectionLottieJson}
play
/>
);
}
17 changes: 17 additions & 0 deletions apps/status/src/widgets/introduce/ui/Introduce.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import InspectionLottie from './InspectionLottie';

export default function Introduce() {
return (
<div className="flex w-full flex-col justify-center gap-4 md:flex-row">
<div className="mt-12 break-keep">
<h2 className="text-4xl font-bold">
C-Lab 서비스 상태 페이지에 오신 것을 환영합니다.
</h2>
<p className="mt-5 text-xl">
하단의 정보를 통해 운영중인 서비스의 상태를 확인할 수 있습니다.
</p>
</div>
<InspectionLottie />
</div>
);
}
1 change: 1 addition & 0 deletions apps/status/src/widgets/introduce/ui/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as Introduce } from './Introduce';

0 comments on commit ce064bd

Please sign in to comment.