-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Feat: Ocean Page 생성 및 카메라 클릭가능 * Feat: Ocean 페이지 디자인 구현 * Feat: Ocean 이미지 등록가능
- Loading branch information
Showing
7 changed files
with
737 additions
and
7 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.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
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 |
---|---|---|
@@ -1,6 +1,72 @@ | ||
import styled from "@emotion/styled" | ||
import { Wrapper, Container, DivCenterContainter } from "../styles/Layout" | ||
import UploadBackGround from "../assets/UploadBackground.jpg" | ||
import WaterWave from 'react-water-wave'; | ||
import { CamSVG } from "../components/CamSVG"; | ||
import { SmartphoneSVG } from "../components/SmartphoneSVG"; | ||
import { useState } from "react" | ||
import imageUrl from "../assets/UploadBackground.jpg" | ||
|
||
export const Ocean = () => { | ||
const [showSmartphone, setShowSmartphone] = useState(false); | ||
|
||
const handleCircleClickParent = () => { | ||
console.log('Circle clicked in parent!'); | ||
setShowSmartphone(true); | ||
}; | ||
|
||
const handleClickParent = () => { | ||
console.log('Circle clicked in parent!'); | ||
|
||
}; | ||
|
||
return( | ||
<WaterWave imageUrl={ UploadBackGround } style={{ backgroundSize: 'cover' }}> | ||
{({ pause, play }) => ( | ||
<Wrapper> | ||
<Container> | ||
|
||
{ | ||
showSmartphone ? ( | ||
<SmartphoneWrapper> | ||
<SmartphoneSVG handleClickParent={handleClickParent} imageUrl={imageUrl} /> | ||
</SmartphoneWrapper> | ||
) : ( | ||
<CamWrapper> | ||
<CamSVG handleCircleClickParent={handleCircleClickParent}/> | ||
</CamWrapper> | ||
) | ||
} | ||
|
||
</Container> | ||
</Wrapper> | ||
)} | ||
</WaterWave> | ||
) | ||
} | ||
|
||
const CamWrapper = styled.div` | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
SmartphoneSVG { | ||
width: 50%; | ||
height: 50%; | ||
} | ||
` | ||
|
||
const SmartphoneWrapper = styled.div` | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
return(<> | ||
Ocean | ||
</>) | ||
} | ||
CamSVG { | ||
width: 40%; | ||
height: 40%; | ||
} | ||
` |
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