Skip to content

Commit 28af7f6

Browse files
authored
[25. 05. 27 / TASK-195] Feature - '서비스 사용법' 버튼 추가 (#39)
1 parent 82a39a1 commit 28af7f6

File tree

6 files changed

+35
-12
lines changed

6 files changed

+35
-12
lines changed

.env.sample

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ NEXT_PUBLIC_SENTRY_AUTH_TOKEN=<'sentry auth token here'>
77
NEXT_PUBLIC_CHANNELTALK_PLUGIN_KEY=<'channelTalk plugin key here'>
88
NEXT_PUBLIC_GA_ID=<'Google Analytics ID here'>
99
NEXT_PUBLIC_EVENT_LOG=<'Whether to send an event log here (true | false)'>
10-
NEXT_PUBLIC_SENTRY_DSN=<'sentry dsn here'>
10+
NEXT_PUBLIC_SENTRY_DSN=<'sentry dsn here'>
11+
NEXT_PUBLIC_ARCADE_URL=<'how-to-use url here'>

src/app/(login)/Content.tsx

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import { useForm } from 'react-hook-form';
55
import Image from 'next/image';
66
import { startHolyLoader, stopHolyLoader } from 'holy-loader';
77
import { useRouter } from 'next/navigation';
8-
import { Input, Button } from '@/components';
8+
import { Input, Button, Icon } from '@/components';
99
import { login, sampleLogin } from '@/apis';
1010
import { LoginVo } from '@/types';
11+
import { COLORS, env } from '@/constants';
1112

1213
const responsiveStyle =
1314
"flex items-center gap-5 max-MBI:before:inline-block max-MBI:before:bg-[url('/favicon.png')] max-MBI:before:[background-size:_100%_100%] max-MBI:before:w-16 max-MBI:before:h-16";
@@ -82,15 +83,27 @@ export const Content = () => {
8283
>
8384
로그인
8485
</Button>
85-
<span
86-
className="text-TEXT-ALT text-I2 max-MBI:text-ST5 after:cursor-pointer after:hover:underline after:ml-2 after:content-['체험_계정으로_로그인'] after:text-PRIMARY-MAIN after:inline-block"
87-
onClick={() => {
88-
startHolyLoader();
89-
sampleMutate();
90-
}}
91-
>
92-
서비스를 체험해보고 싶다면?
93-
</span>
86+
<div className="w-[400px] justify-center flex items-center gap-10">
87+
<button
88+
className="flex gap-2 items-center hover:border-b hover:-mb-[1px] border-b-PRIMARY-MAIN cursor-pointer"
89+
onClick={() => {
90+
startHolyLoader();
91+
sampleMutate();
92+
}}
93+
>
94+
<Icon name="Door" color={COLORS.PRIMARY.MAIN} size={18} />
95+
<span className="text-I2 max-MBI:text-ST5 text-PRIMARY-MAIN">체험 계정 로그인 →</span>
96+
</button>
97+
<a
98+
target="_blank"
99+
rel="noopener noreferrer"
100+
href={env.ARCADE_URL}
101+
className="flex gap-2 items-center text-I2 max-MBI:text-ST5 text-PRIMARY-MAIN hover:border-b hover:-mb-[1px] border-b-PRIMARY-MAIN cursor-pointer"
102+
>
103+
<Icon name="Video" color={COLORS.PRIMARY.MAIN} size={18} />
104+
<span className="text-I2 max-MBI:text-ST5 text-PRIMARY-MAIN">서비스 사용법 →</span>
105+
</a>
106+
</div>
94107
</div>
95108
</form>
96109
</main>

src/components/Icon/icons/Door.svg

Lines changed: 3 additions & 0 deletions
Loading

src/components/Icon/icons/Video.svg

Lines changed: 3 additions & 0 deletions
Loading

src/components/Icon/icons/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ export { default as Like } from './Like.svg';
55
export { default as Shortcut } from './Shortcut.svg';
66
export { default as Close } from './Close.svg';
77
export { default as Loudspeaker } from './Loudspeaker.svg';
8+
export { default as Door } from './Door.svg';
9+
export { default as Video } from './Video.svg';

src/constants/env.constant.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const env = (() => {
1111
GA_ID: process.env.NEXT_PUBLIC_GA_ID,
1212
SENTRY_AUTH_TOKEN: process.env.NEXT_PUBLIC_SENTRY_AUTH_TOKEN,
1313
SENTRY_DSN: process.env.NEXT_PUBLIC_SENTRY_DSN,
14+
ARCADE_URL: process.env.NEXT_PUBLIC_ARCADE_URL,
1415
} as const;
1516

1617
if (env.NODE_ENV) {
@@ -19,5 +20,5 @@ export const env = (() => {
1920
});
2021
}
2122

22-
return env as Record<string, string>;
23+
return env;
2324
})();

0 commit comments

Comments
 (0)