-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 서비스섹션 구현(기본구조) * feat: 폰트크기 변경 * feat: 서비스섹션 ui개선 -생동감이 느껴지도록 하였음 * feat: 서비스섹션 ui 수정 * feat: 공지사항 페이지 ui 수정 -표시되는 시간을 YYYY-MM-DD형식으로 수정 * feat: 모바일 네비게이션 바 수정 -애니메이션이 정상 작동하도록 수정 * feat: 네비게이션 바 경로수정 * feat: contact 삭제 * feat: contact 삭제 * feat: 메뉴아이템 추출 -serviceItem.js 로 컴포넌트분리 * feat: 시간형식 변환 함수 모듈화 -useFormatDate * feat: 포맷데이트 유틸화 - _utils/formatDate.js
- Loading branch information
Showing
7 changed files
with
140 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,28 @@ | ||
import { serviceItem } from "@/app/_consts/serviceItem"; | ||
|
||
export function ServiceSection() { | ||
return ( | ||
<div className="max-w-7xl mx-auto px-6 py-24 text-center"> | ||
<h2 className="text-3xl font-bold mb-6">서비스</h2> | ||
<p className="text-lg text-muted-foreground"> | ||
이즐리는 다양한 서비스로 영상 기획을 돕습니다. | ||
</p> | ||
</div> | ||
); | ||
} | ||
|
||
return ( | ||
<div className="max-w-7xl mx-auto px-6 py-24 text-center bg-gradient-to-b text-black"> | ||
<h2 className="text-5xl font-extrabold mb-12">✨ 이즐리 ✨</h2> | ||
{serviceItem.map((item) => ( | ||
<div | ||
key={item.id} | ||
className="relative bg-opacity-90 rounded-2xl shadow-sm p-10 mb-16 max-w-6xl mx-auto transition-transform duration-300 hover:scale-105" | ||
> | ||
<h2 className="text-4xl font-bold mb-4">{item.title}</h2> | ||
<p className="text-lg text-black mb-6">{item.subtitle}</p> | ||
<div className="relative w-full aspect-video overflow-hidden rounded-lg shadow-lg"> | ||
<video | ||
className="w-full h-full object-cover" | ||
src={item.videoSrc} | ||
autoPlay | ||
loop | ||
muted | ||
playsInline | ||
/> | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export const serviceItem = [ | ||
{ | ||
id: 1, | ||
title: "서비스1", | ||
subtitle: "이즐리는 여러분의 일상에 행복을 줍니다.", | ||
videoSrc: | ||
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4", | ||
}, | ||
{ | ||
id: 2, | ||
title: "서비스2", | ||
subtitle: "이즐리는 여러분의 일상에 행복을 줍니다.", | ||
videoSrc: | ||
"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4", | ||
}, | ||
{ | ||
id: 3, | ||
title: "서비스3", | ||
subtitle: "이즐리는 여러분의 일상에 행복을 줍니다.", | ||
videoSrc: | ||
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4", | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export const formatDate = (dateString) => { | ||
const date = new Date(dateString); | ||
return date.toISOString().split("T")[0]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters