-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4baf537
commit c94d492
Showing
25 changed files
with
1,815 additions
and
3 deletions.
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.
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
70 changes: 70 additions & 0 deletions
70
apps/website/src/routes/(default)/[space]/dashboard/redeem/(create)/+page.svelte
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,70 @@ | ||
<script lang="ts"> | ||
import IconChevronRight from '~icons/tabler/chevron-right'; | ||
import { graphql } from '$glitch'; | ||
import { Button, Helmet, Icon } from '$lib/components'; | ||
import { css } from '$styled-system/css'; | ||
import { flex } from '$styled-system/patterns'; | ||
$: query = graphql(` | ||
query SpaceDashboardRedeemIndexPage_Query($slug: String!) { | ||
space(slug: $slug) { | ||
id | ||
name | ||
} | ||
} | ||
`); | ||
</script> | ||
|
||
<Helmet description={`${$query.space.name} 스페이스 리딤코드`} title={`리딤코드 | ${$query.space.name}`} /> | ||
|
||
<div | ||
class={css({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
paddingTop: { base: '60px', sm: '68px' }, | ||
paddingBottom: { base: '120px', sm: '140px' }, | ||
textAlign: 'center', | ||
})} | ||
> | ||
<h2 | ||
class={css({ | ||
marginBottom: { base: '6px', sm: '4px' }, | ||
fontSize: { base: '22px', sm: '30px' }, | ||
fontWeight: '[800]', | ||
})} | ||
> | ||
종이책에 전자책 혜택을 더하다 | ||
</h2> | ||
|
||
<p class={css({ fontSize: { base: '13px', sm: '14px' }, color: 'gray.600' })}> | ||
리딤코드는 종이책과 유료포스트를 함께 이용할 수 있게 도와주는 서비스로 | ||
<br /> | ||
해당 코드를 스캔하거나 입력하면 | ||
<mark class={css({ color: 'brand.400' })}>글리프에서 발행한 유료포스트가 자동으로 구매 완료</mark> | ||
되도록 설정할 수 있어요. | ||
<br /> | ||
코드는 한 계정에만 등록할 수 있어 안전하게 관리가 가능해요. | ||
</p> | ||
|
||
<Button | ||
style={flex.raw({ align: 'center', gap: '4px', marginTop: '40px', hideFrom: 'sm' })} | ||
href="redeem/create" | ||
size="sm" | ||
type="link" | ||
variant="gradation-fill" | ||
> | ||
리딤 코드 만들기 | ||
<Icon icon={IconChevronRight} /> | ||
</Button> | ||
<Button | ||
style={flex.raw({ align: 'center', gap: '4px', marginTop: '40px', hideBelow: 'sm' })} | ||
href="redeem/create" | ||
size="md" | ||
type="link" | ||
variant="gradation-fill" | ||
> | ||
리딤 코드 만들기 | ||
<Icon icon={IconChevronRight} size={20} /> | ||
</Button> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
apps/website/src/routes/(default)/[space]/dashboard/redeem/(create)/+page.ts
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,5 @@ | ||
import type { PageLoadEvent } from './$types'; | ||
|
||
export const _SpaceDashboardRedeemIndexPage_QueryVariables = (event: PageLoadEvent) => { | ||
return { slug: event.params.space }; | ||
}; |
6 changes: 6 additions & 0 deletions
6
apps/website/src/routes/(default)/[space]/dashboard/redeem/(create)/complete/+page.ts
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,6 @@ | ||
import qs from 'query-string'; | ||
import type { PageLoadEvent } from './$types'; | ||
|
||
export const _SpaceDashboardRedeemCompletePage_QueryVariables = (event: PageLoadEvent) => { | ||
return { permalink: qs.parseUrl(event.url.search).query.p }; | ||
}; |
Oops, something went wrong.