-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* style(#168): 배경색 변경, border shadow 변경 * feat(#168): HistoryListEmpty Ui * style(#168): detail page 반응형 추가 * feat(#168): 온보딩 페이지 캐러셀
- Loading branch information
Showing
17 changed files
with
130 additions
and
25 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
font-size: 16px; | ||
line-height: 1.6; | ||
color: #24292e; | ||
background-color: #ffffff; | ||
} | ||
|
||
/* Headings */ | ||
|
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
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
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
58 changes: 58 additions & 0 deletions
58
apps/frontend/src/widget/onboarding/OnBoardingCarousel.tsx
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,58 @@ | ||
import { useEffect, useRef, useState } from 'react'; | ||
import { AutoPlay, cn } from '@froxy/design'; | ||
import { OnBoardingItems } from './constant'; | ||
import { Carousel, CarouselApi, CarouselContent, CarouselItem, Heading } from '@/components'; | ||
|
||
export function OnBoardingCarousel() { | ||
const [api, setApi] = useState<CarouselApi>(); | ||
const ref = useRef<HTMLDivElement>(null); | ||
|
||
useEffect(() => { | ||
if (!api) { | ||
return; | ||
} | ||
|
||
api.on('select', () => { | ||
if (!ref.current) return; | ||
|
||
ref.current.style.backgroundColor = `#${Math.floor(Math.random() * 16777215).toString(16)}`; | ||
}); | ||
}, [api]); | ||
|
||
return ( | ||
<Carousel | ||
ref={ref} | ||
opts={{ loop: true }} | ||
plugins={[AutoPlay({ delay: 3000 })]} | ||
setApi={setApi} | ||
orientation="vertical" | ||
className="transition-colors duration-500 ease-in-out hidden lg:flex" | ||
> | ||
<CarouselContent className="w-screen h-screen m-0"> | ||
{OnBoardingItems.map((item) => ( | ||
<CarouselItem className="min-h-full p-0" key={item.title}> | ||
<div className={cn('w-full h-full flex flex-col items-start justify-center p-20')}> | ||
<div className="w-1/2 flex flex-col justify-center items-center gap-10"> | ||
<div className="rounded-full bg-white shadow-lg p-5">{item.icon}</div> | ||
|
||
<div className={cn('flex gap-5 w-full pr-10', item?.description ? 'justify-start' : 'justify-center')}> | ||
<div className="rounded-lg p-5 bg-white shadow-lg"> | ||
<Heading size="sm">{item.title}</Heading> | ||
</div> | ||
</div> | ||
|
||
<div className="pl-10"> | ||
{item?.description && ( | ||
<div className="rounded-lg p-5 bg-white shadow-lg"> | ||
<Heading size="sm">{item.description}</Heading> | ||
</div> | ||
)} | ||
</div> | ||
</div> | ||
</div> | ||
</CarouselItem> | ||
))} | ||
</CarouselContent> | ||
</Carousel> | ||
); | ||
} |
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 @@ | ||
import { FaCheckCircle, FaGithub } from 'react-icons/fa'; | ||
|
||
export const OnBoardingItems = [ | ||
{ | ||
icon: <FaGithub size={80} />, | ||
title: 'Gist clone과정을 폴짝! 건너뛰고 테스트', | ||
description: '손쉽게 Gist를 실행하고, 공유하세요.' | ||
}, | ||
{ | ||
icon: <div className="flex justify-center items-center w-20 h-20 p-2 text-5xl">⚡️</div>, | ||
title: 'Gist 실행, Froxy와 함께라면 순식간에!', | ||
description: 'Froxy는 당신의 시간과 노력을 아껴주는 완벽한 도우미입니다.' | ||
}, | ||
{ | ||
icon: <FaCheckCircle size={80} />, | ||
title: '하나하나 clone하기 힘들죠?', | ||
description: 'Froxy는 Gist를 clone하고, 실행하는 과정을 간소화합니다.' | ||
}, | ||
{ | ||
icon: <div className="flex justify-center items-center w-20 h-20 p-2 text-5xl">🔥</div>, | ||
title: 'Froxy에 맡기고 코드에 집중하세요!' | ||
} | ||
]; |
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 @@ | ||
export * from './OnBoardingCarousel'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { cn } from '@/lib/utils'; | ||
|
||
function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) { | ||
return <div className={cn('animate-pulse rounded-md bg-neutral-100 dark:bg-neutral-800', className)} {...props} />; | ||
return <div className={cn('animate-pulse rounded-md bg-neutral-200 dark:bg-neutral-800', className)} {...props} />; | ||
} | ||
|
||
export { Skeleton }; |
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,3 +1,7 @@ | ||
import AutoPlay from 'embla-carousel-autoplay'; | ||
|
||
export * from '@/components'; | ||
export * from '@/lib/utils'; | ||
export * from '@radix-ui/react-slot'; | ||
|
||
export { AutoPlay }; |