Skip to content

Commit

Permalink
feat(demo, bottle): add app-site-association page
Browse files Browse the repository at this point in the history
  • Loading branch information
stakbucks committed Nov 5, 2024
1 parent 94a19cb commit 1c8f05e
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/bottle/src/app/intro/create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { bottleStorage, keyMap } from '@/features/bottle-storage/bottleStorage';
import { useFunnel } from '@/features/funnel';
import { useIntroductionMutation } from '@/store/mutation/useIntroductionMutation';
import { useProfileImagesMutation } from '@/store/mutation/useProfileImagesMutation';
import { spacings } from '@bottlesteam/ui';
import { useRouter } from 'next/navigation';
import { useMemo } from 'react';
import { GradientBackground } from './GradientBackground';
Expand Down Expand Up @@ -52,6 +53,9 @@ export default function CreateIntroPage() {
<ProfileLayout.Contents>
<Stepper current={2} max={MAX_STEPS} />
<ProfileLayout.Title>{'고생 많으셨어요!\n작성한 소개를 다듬어 보세요'}</ProfileLayout.Title>
<ProfileLayout.Subtitle style={{ marginTop: spacings.sm }}>
{'타인에게 불쾌감을 줄 경우 제재를 받을 수 있어요'}
</ProfileLayout.Subtitle>
<IntroductionV2
initialValue={autoCreatedIntro}
onNext={async introduction => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { IntroductionV2 } from '@/components/intro/introductionV2';
import { ProfileLayout } from '@/components/profile/layout';
import { useIntroductionMutation } from '@/store/mutation/useIntroductionMutation';
import { useCurrentUserProfileQuery } from '@/store/query/useCurrentUserProfileQuery';
import { spacings } from '@bottlesteam/ui';
import { useRouter } from 'next/navigation';

/**
Expand All @@ -22,6 +23,9 @@ export default function IntroductionEditPage() {
return (
<>
<ProfileLayout.Title>{'보틀에 담을\n소개를 작성해 주세요'}</ProfileLayout.Title>
<ProfileLayout.Subtitle style={{ marginTop: spacings.sm }}>
{'타인에게 불쾌감을 줄 경우 제재를 받을 수 있어요'}
</ProfileLayout.Subtitle>
<IntroductionV2
initialValue={initialAnswer}
onNext={introduction => {
Expand Down
3 changes: 3 additions & 0 deletions apps/bottle/src/components/intro/introduction/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ export function Introduction({
return (
<>
<ProfileLayout.Title>{'보틀에 담을\n소개를 작성해 주세요'}</ProfileLayout.Title>
<ProfileLayout.Subtitle style={{ marginTop: spacings.sm }}>
{'타인에게 불쾌감을 줄 경우 제재를 받을 수 있어요'}
</ProfileLayout.Subtitle>
<div style={{ display: 'flex', flexDirection: 'column', marginTop: spacings.xxl, gap: spacings.sm }}>
<Textarea
placeholder={PLACEHOLDER}
Expand Down
3 changes: 3 additions & 0 deletions apps/bottle/src/components/intro/questions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ export function Questions({ onNext, ctaButtonText }: Props) {
return (
<>
<ProfileLayout.Title>{'보틀에 담을\n소개를 작성해 볼까요?'}</ProfileLayout.Title>
<ProfileLayout.Subtitle style={{ marginTop: spacings.sm }}>
{'타인에게 불쾌감을 줄 경우 제재를 받을 수 있어요'}
</ProfileLayout.Subtitle>
<ProfileLayout.Subtitle style={{ marginTop: spacings.sm }}>
답변한 내용은 다음 단계에서 다듬을 수 있어요
</ProfileLayout.Subtitle>
Expand Down
16 changes: 16 additions & 0 deletions apps/demo/src/app/.well-known/apple-app-site-association/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export async function GET(request: Request) {
return Response.json({
applinks: {
details: [
{
appIDs: ['82J7RU93V4.asia.bottles'],
components: [
{
'/': '*',
},
],
},
],
},
});
}

0 comments on commit 1c8f05e

Please sign in to comment.