-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
17 changed files
with
149 additions
and
14 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
Binary file not shown.
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
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
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,53 @@ | ||
import React, { useEffect } from "react"; | ||
import { useRecoilValue } from "recoil"; | ||
import { axiosInstance } from "../../apis"; | ||
import { testState } from "../../store/atoms"; | ||
import { TestHeader } from "../../components"; | ||
import { | ||
Background, | ||
Container, | ||
MainImage, | ||
Image, | ||
Text, | ||
TextWrapper, | ||
} from "./styled"; | ||
import loading from "../../assets/images/loading.png"; | ||
import circle from "../../assets/images/circle.png"; | ||
|
||
const TestPage = () => { | ||
const testStateValue = useRecoilValue(testState); | ||
const values = `${testStateValue.T}${testStateValue.F}${testStateValue.E}${testStateValue.I}${testStateValue.X}${testStateValue.O}`; | ||
console.log(values); | ||
|
||
const getResult = async () => { | ||
try { | ||
const response = await axiosInstance.get( | ||
`/api/v1/test-result?result=${values}`, | ||
); | ||
console.log(response); | ||
} catch (err) { | ||
console.error(err); | ||
} | ||
}; | ||
|
||
useEffect(() => { | ||
getResult(); | ||
}, []); | ||
|
||
return ( | ||
<> | ||
<Background /> | ||
<TestHeader /> | ||
<Container> | ||
<MainImage src={loading} alt="loading" /> | ||
<TextWrapper> | ||
<Image src={circle} alt="circle" /> | ||
<Text> 결과를 기다리는 중입니다. </Text> | ||
<Image src={circle} alt="circle" /> | ||
</TextWrapper> | ||
</Container> | ||
</> | ||
); | ||
}; | ||
|
||
export default TestPage; |
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,40 @@ | ||
import styled, { keyframes } from "styled-components"; | ||
|
||
const moveAnimation = keyframes` | ||
0% { | ||
transform: translateY(0); | ||
} | ||
50% { | ||
transform: translateY(10px); | ||
} | ||
100% { | ||
transform: translateY(0); | ||
} | ||
`; | ||
export const Background = styled.div` | ||
background: #102531; | ||
width: 100vw; | ||
height: 100vh; | ||
position: fixed; | ||
z-index: -1; | ||
`; | ||
export const Container = styled.div` | ||
width: 100vw; | ||
height: 90vh; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
`; | ||
export const MainImage = styled.img` | ||
margin-top: 10vh; | ||
width: 100vw; | ||
`; | ||
export const Image = styled.img``; | ||
export const TextWrapper = styled.div` | ||
display: flex; | ||
margin-top: 5vh; | ||
animation: ${moveAnimation} 1s infinite; | ||
`; | ||
export const Text = styled.p` | ||
color: white; | ||
`; |
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,7 @@ | ||
import React from "react"; | ||
|
||
const SnowVillage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default SnowVillage; |
Empty file.
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