-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: es-hangul을 사용하는 회사, 프로젝트 들의 로고를 나열할 수 있는 컴포넌트를 만듭니다. (#100)
* es-hangul을 사용하는 회사들 나열 * remove console.log * add imweb * docs: 오타 수정 및 컴포넌트 수정, 로고도 알파값 있게 수정, 아임웹 사용자 추가 (#101) * docs: light 모드로 강제하고 오타 수정 및 컴포넌트 수정, 로고도 알파값 있게 수정 * chore: update * docs: update * docs: 다크모드 다시 만들고 아임웹도 추가 * chore: update --------- Co-authored-by: Jonghyeon Ko <[email protected]>
- Loading branch information
Showing
8 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,40 @@ | ||
import { useIsDarkMode } from '@/hooks/use-is-dark-mode'; | ||
import Image from 'next/image'; | ||
import { ComponentProps } from 'react'; | ||
|
||
/** | ||
* 이 곳에 적용한 조직을 추가해주세요. | ||
*/ | ||
export const adopterLogoImagePropsList = [ | ||
{ | ||
src: '/adopters/비바리퍼블리카.png', | ||
darkSrc: '/adopters/비바리퍼블리카_darkmode.png', | ||
alt: '비바리퍼블리카', | ||
height: 80, | ||
width: 262.6, | ||
}, | ||
{ | ||
src: '/adopters/아임웹.png', | ||
darkSrc: '/adopters/아임웹_darkmode.png', | ||
alt: '아임웹', | ||
height: 80, | ||
width: 367, | ||
}, | ||
] as const satisfies Array< | ||
Pick<ComponentProps<typeof Image>, 'src' | 'alt'> & | ||
Required<Pick<ComponentProps<typeof Image>, 'width' | 'height'>> & { | ||
darkSrc: string; | ||
} | ||
>; | ||
|
||
export const Adopters = () => { | ||
const isDarkMode = useIsDarkMode(); | ||
|
||
return ( | ||
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '2rem', justifyContent: 'center' }}> | ||
{adopterLogoImagePropsList.map(props => ( | ||
<Image key={props.src} {...props} src={isDarkMode ? props.darkSrc : props.src} /> | ||
))} | ||
</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
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