-
Notifications
You must be signed in to change notification settings - Fork 0
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 #72 from Duri-Salon/feat(duri)/AIstyling-ui(DURI-301)
[feat] AI 스타일링 UI 구현 / API 연결
- Loading branch information
Showing
27 changed files
with
603 additions
and
26 deletions.
There are no files selected for viewing
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
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
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,28 @@ | ||
import { | ||
Doori, | ||
FilledHome, | ||
HeightFitFlex, | ||
Text, | ||
theme, | ||
WidthFitFlex, | ||
} from '@duri-fe/ui'; | ||
import styled from '@emotion/styled'; | ||
|
||
export const AIHeader = () => { | ||
return ( | ||
<HeightFitFlex justify="space-between" margin="0 0 43px" padding="0 6px 0"> | ||
<WidthFitFlex gap={13}> | ||
<Doori width={75} color={theme.palette.White} /> | ||
<TitleTypo typo="Heading" colorCode={theme.palette.White}> | ||
AI | ||
</TitleTypo> | ||
</WidthFitFlex> | ||
<a href="/"> | ||
<FilledHome width={19} color={theme.palette.White} /> | ||
</a> | ||
</HeightFitFlex> | ||
); | ||
}; | ||
const TitleTypo = styled(Text)` | ||
font-size: (26 / 16) rem; | ||
`; |
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,52 @@ | ||
import { useLocation } from 'react-router-dom'; | ||
|
||
import { AIHeader } from '@duri/components/dooriAI/AIHeader'; | ||
import { | ||
Flex, | ||
FrontBtn, | ||
Image, | ||
MobileLayout, | ||
Save, | ||
Text, | ||
theme, | ||
} from '@duri-fe/ui'; | ||
import styled from '@emotion/styled'; | ||
|
||
const DooriAIResult = () => { | ||
const location = useLocation(); | ||
const { resultImage } = location.state; | ||
const handleImageSave = () => { | ||
const link = document.createElement('a'); | ||
link.href = resultImage; | ||
link.download = 'duri-ai-styling-result.jpg'; | ||
document.body.appendChild(link); | ||
link.click(); | ||
document.body.removeChild(link); | ||
}; | ||
|
||
return ( | ||
<MobileLayout backgroundColor={theme.palette.Black}> | ||
<Flex direction="column" padding="40px 20px"> | ||
<AIHeader /> | ||
<Image src={resultImage} borderRadius={16} alt="ai styling result" /> | ||
<Text typo="Caption1" colorCode={theme.palette.White} margin="19px 0 0"> | ||
사진이 마음에 든다면 저장할수 있어요🐶 | ||
</Text> | ||
</Flex> | ||
<SaveButton height="53px" onClick={handleImageSave}> | ||
<Save width={19} /> | ||
<Text typo="Body2">저장하기</Text> | ||
</SaveButton> | ||
</MobileLayout> | ||
); | ||
}; | ||
|
||
export default DooriAIResult; | ||
|
||
const SaveButton = styled(FrontBtn)` | ||
position: fixed; | ||
bottom: 0; | ||
height: 53px; | ||
border-radius: 0; | ||
gap: 6px; | ||
`; |
Oops, something went wrong.