Skip to content

Commit

Permalink
feat: es-hangul을 사용하는 회사, 프로젝트 들의 로고를 나열할 수 있는 컴포넌트를 만듭니다. (#100)
Browse files Browse the repository at this point in the history
* 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
okinawaa and manudeli authored May 24, 2024
1 parent 7bec39c commit 8d4dad0
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 1 deletion.
Binary file added docs/public/adopters/비바리퍼블리카.png
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.
Binary file added docs/public/adopters/아임웹.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/adopters/아임웹_darkmode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions docs/src/components/introduction/Adopters.tsx
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>
);
};
12 changes: 12 additions & 0 deletions docs/src/pages/docs/introduction.en.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Steps, Callout } from 'nextra/components';
import { Adopters } from '@/components/introduction/Adopters';

# Introduction to es-hangul

Expand Down Expand Up @@ -79,3 +80,14 @@ If you have a good idea for handling Hangul well, please let us know. [Suggest a
</Callout>

</Steps>

## Who's using?

<br />

<Adopters />

<Callout type="info">
Please add the logo of the organization using es-hangul. We are creating this library together. [Add user with GitHub
PR](https://github.com/toss/es-hangul/blob/main/docs/src/components/introduction/Adopters.tsx)
</Callout>
13 changes: 13 additions & 0 deletions docs/src/pages/docs/introduction.ko.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Steps, Callout } from 'nextra/components';
import { Adopters } from '@/components/introduction/Adopters';

# es-hangul 소개

Expand Down Expand Up @@ -81,3 +82,15 @@ console.log(sentence2); // '바나나가 맛있습니다.'
</Callout>

</Steps>

## 어떤 곳에서 사용하나요?

<br />

<Adopters />

<Callout type="info">

es-hangul을 사용하는 조직의 로고를 추가해주세요. 우리는 이 라이브러리를 여러분과 함께 만들어 갑니다. [GitHub PR로 사용자 추가하기](https://github.com/toss/es-hangul/blob/main/docs/src/components/introduction/Adopters.tsx)

</Callout>
2 changes: 1 addition & 1 deletion docs/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const config: DocsThemeConfig = {
i18n: [
{ locale: 'en', text: 'English' },
{ locale: 'ko', text: '한국어' },
]
],
};

export default config;

0 comments on commit 8d4dad0

Please sign in to comment.