Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Nexters/feature/add-download-link
다운로드 링크 배너 추가
- Loading branch information
Showing
15 changed files
with
202 additions
and
33 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import React, { useContext } from 'react'; | ||
import { css } from '@linaria/core'; | ||
import { EnvContext } from '../context/EnvContext'; | ||
|
||
export const AppDownload = () => { | ||
const { assetPath, appDownloadUrl } = useContext(EnvContext); | ||
return ( | ||
<div className={container}> | ||
<div className={logoContainer}> | ||
<img src={`${assetPath}/image/logo.png`} alt={'app logo'} /> | ||
</div> | ||
<span className={title}>지금 나만의 반다라트를 만들어봐요</span> | ||
<a | ||
className={downloadButton} | ||
href={appDownloadUrl} | ||
target={'_blank'} | ||
rel={'noreferrer noopener'} | ||
title={'앱 다운로드'} | ||
> | ||
앱 다운로드 | ||
</a> | ||
</div> | ||
); | ||
}; | ||
|
||
const container = css` | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
background-color: #fff; | ||
height: 62px; | ||
display: flex; | ||
align-items: center; | ||
padding: 0 16px; | ||
border-bottom: 1px solid var(--color-100); | ||
`; | ||
|
||
const logoContainer = css` | ||
width: 37px; | ||
height: 37px; | ||
border-radius: 16px; | ||
display: flex; | ||
filter: drop-shadow(0px 1px 1px rgba(17, 24, 39, 0.1)); | ||
margin-right: 12px; | ||
`; | ||
|
||
const title = css` | ||
color: var(--color-700); | ||
font-size: 12px; | ||
font-weight: 500; | ||
letter-spacing: -0.24px; | ||
`; | ||
|
||
const downloadButton = css` | ||
padding: 6px 12px; | ||
background-color: var(--color-700); | ||
border-radius: 88px; | ||
text-align: center; | ||
// font | ||
font-weight: 700; | ||
font-size: 12px; | ||
letter-spacing: -0.24px; | ||
color: #fff; | ||
text-decoration: none; | ||
margin-left: auto; | ||
`; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export type AppProps = { | ||
assetPath: string; | ||
isMobile: boolean; | ||
appDownloadUrl: string; | ||
}; |
Oops, something went wrong.