Showing
11 changed files
with
102 additions
and
32 deletions
This diff is collapsed. Click to expand it.
... | @@ -2309,11 +2309,33 @@ | ... | @@ -2309,11 +2309,33 @@ |
2309 | "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.1.5.tgz", | 2309 | "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.1.5.tgz", |
2310 | "integrity": "sha512-UEyp8LwZ4Dg30kVU2Q3amHHyTn1jEdhCIE59ANed76GaT1Vp76DD3ZWSAxgCrw6wJ0TqeoBpqmfUHiUDPs//HQ==" | 2310 | "integrity": "sha512-UEyp8LwZ4Dg30kVU2Q3amHHyTn1jEdhCIE59ANed76GaT1Vp76DD3ZWSAxgCrw6wJ0TqeoBpqmfUHiUDPs//HQ==" |
2311 | }, | 2311 | }, |
2312 | + "@types/prop-types": { | ||
2313 | + "version": "15.7.3", | ||
2314 | + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz", | ||
2315 | + "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==" | ||
2316 | + }, | ||
2312 | "@types/q": { | 2317 | "@types/q": { |
2313 | "version": "1.5.4", | 2318 | "version": "1.5.4", |
2314 | "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.4.tgz", | 2319 | "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.4.tgz", |
2315 | "integrity": "sha512-1HcDas8SEj4z1Wc696tH56G8OlRaH/sqZOynNNB+HF0WOeXPaxTtbYzJY2oEfiUxjSKjhCKr+MvR7dCHcEelug==" | 2320 | "integrity": "sha512-1HcDas8SEj4z1Wc696tH56G8OlRaH/sqZOynNNB+HF0WOeXPaxTtbYzJY2oEfiUxjSKjhCKr+MvR7dCHcEelug==" |
2316 | }, | 2321 | }, |
2322 | + "@types/react": { | ||
2323 | + "version": "17.0.0", | ||
2324 | + "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.0.tgz", | ||
2325 | + "integrity": "sha512-aj/L7RIMsRlWML3YB6KZiXB3fV2t41+5RBGYF8z+tAKU43Px8C3cYUZsDvf1/+Bm4FK21QWBrDutu8ZJ/70qOw==", | ||
2326 | + "requires": { | ||
2327 | + "@types/prop-types": "*", | ||
2328 | + "csstype": "^3.0.2" | ||
2329 | + } | ||
2330 | + }, | ||
2331 | + "@types/react-transition-group": { | ||
2332 | + "version": "1.1.6", | ||
2333 | + "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-1.1.6.tgz", | ||
2334 | + "integrity": "sha512-zzoJIWFAqvI3EwDizpeJoShUEe6dVIw3EDRmnqLlpmQgfbaw6XUmJYFVOiAyZVnO/9L7zPSe3kN8aZ2q3JP2DA==", | ||
2335 | + "requires": { | ||
2336 | + "@types/react": "*" | ||
2337 | + } | ||
2338 | + }, | ||
2317 | "@types/resolve": { | 2339 | "@types/resolve": { |
2318 | "version": "0.0.8", | 2340 | "version": "0.0.8", |
2319 | "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-0.0.8.tgz", | 2341 | "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-0.0.8.tgz", |
... | @@ -4734,6 +4756,11 @@ | ... | @@ -4734,6 +4756,11 @@ |
4734 | } | 4756 | } |
4735 | } | 4757 | } |
4736 | }, | 4758 | }, |
4759 | + "csstype": { | ||
4760 | + "version": "3.0.5", | ||
4761 | + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.5.tgz", | ||
4762 | + "integrity": "sha512-uVDi8LpBUKQj6sdxNaTetL6FpeCqTjOvAQuQUa/qAqq8oOd4ivkbhgnqayl0dnPal8Tb/yB1tF+gOvCBiicaiQ==" | ||
4763 | + }, | ||
4737 | "cyclist": { | 4764 | "cyclist": { |
4738 | "version": "1.0.1", | 4765 | "version": "1.0.1", |
4739 | "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz", | 4766 | "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz", |
... | @@ -5055,6 +5082,15 @@ | ... | @@ -5055,6 +5082,15 @@ |
5055 | "utila": "~0.4" | 5082 | "utila": "~0.4" |
5056 | } | 5083 | } |
5057 | }, | 5084 | }, |
5085 | + "dom-helpers": { | ||
5086 | + "version": "5.2.0", | ||
5087 | + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.0.tgz", | ||
5088 | + "integrity": "sha512-Ru5o9+V8CpunKnz5LGgWXkmrH/20cGKwcHwS4m73zIvs54CN9epEmT/HLqFJW3kXpakAFkEdzgy1hzlJe3E4OQ==", | ||
5089 | + "requires": { | ||
5090 | + "@babel/runtime": "^7.8.7", | ||
5091 | + "csstype": "^3.0.2" | ||
5092 | + } | ||
5093 | + }, | ||
5058 | "dom-serializer": { | 5094 | "dom-serializer": { |
5059 | "version": "0.2.2", | 5095 | "version": "0.2.2", |
5060 | "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz", | 5096 | "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz", |
... | @@ -12440,6 +12476,17 @@ | ... | @@ -12440,6 +12476,17 @@ |
12440 | "workbox-webpack-plugin": "5.1.4" | 12476 | "workbox-webpack-plugin": "5.1.4" |
12441 | } | 12477 | } |
12442 | }, | 12478 | }, |
12479 | + "react-transition-group": { | ||
12480 | + "version": "4.4.1", | ||
12481 | + "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.1.tgz", | ||
12482 | + "integrity": "sha512-Djqr7OQ2aPUiYurhPalTrVy9ddmFCCzwhqQmtN+J3+3DzLO209Fdr70QrN8Z3DsglWql6iY1lDWAfpFiBtuKGw==", | ||
12483 | + "requires": { | ||
12484 | + "@babel/runtime": "^7.5.5", | ||
12485 | + "dom-helpers": "^5.0.1", | ||
12486 | + "loose-envify": "^1.4.0", | ||
12487 | + "prop-types": "^15.6.2" | ||
12488 | + } | ||
12489 | + }, | ||
12443 | "read-pkg": { | 12490 | "read-pkg": { |
12444 | "version": "2.0.0", | 12491 | "version": "2.0.0", |
12445 | "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", | 12492 | "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", | ... | ... |
... | @@ -6,12 +6,14 @@ | ... | @@ -6,12 +6,14 @@ |
6 | "@testing-library/jest-dom": "^5.11.6", | 6 | "@testing-library/jest-dom": "^5.11.6", |
7 | "@testing-library/react": "^11.2.2", | 7 | "@testing-library/react": "^11.2.2", |
8 | "@testing-library/user-event": "^12.2.2", | 8 | "@testing-library/user-event": "^12.2.2", |
9 | + "@types/react-transition-group": "^1.1.6", | ||
9 | "animate.css": "^4.1.1", | 10 | "animate.css": "^4.1.1", |
10 | "react": "^17.0.1", | 11 | "react": "^17.0.1", |
11 | "react-console": "^1.0.0-rc.2", | 12 | "react-console": "^1.0.0-rc.2", |
12 | "react-dom": "^17.0.1", | 13 | "react-dom": "^17.0.1", |
13 | "react-router-dom": "^5.2.0", | 14 | "react-router-dom": "^5.2.0", |
14 | "react-scripts": "4.0.1", | 15 | "react-scripts": "4.0.1", |
16 | + "react-transition-group": "^4.4.1", | ||
15 | "web-vitals": "^0.2.4" | 17 | "web-vitals": "^0.2.4" |
16 | }, | 18 | }, |
17 | "scripts": { | 19 | "scripts": { | ... | ... |
front/public/favicon.ico
deleted
100644 → 0
No preview for this file type
front/public/logo192.png
deleted
100644 → 0

5.22 KB
front/public/logo512.png
deleted
100644 → 0

9.44 KB
... | @@ -3,7 +3,6 @@ body | ... | @@ -3,7 +3,6 @@ body |
3 | background-image : url('./main.png'); | 3 | background-image : url('./main.png'); |
4 | background-repeat : no-repeat; | 4 | background-repeat : no-repeat; |
5 | background-size : cover; | 5 | background-size : cover; |
6 | - | ||
7 | } | 6 | } |
8 | #home | 7 | #home |
9 | { | 8 | { |
... | @@ -22,17 +21,6 @@ body | ... | @@ -22,17 +21,6 @@ body |
22 | font-family: "button"; | 21 | font-family: "button"; |
23 | src: url("Monday Monkey.ttf"); | 22 | src: url("Monday Monkey.ttf"); |
24 | } | 23 | } |
25 | - #soo_btn1 | ||
26 | - { | ||
27 | - border-top-left-radius: 5px; | ||
28 | - border-bottom-left-radius: 5px; | ||
29 | - border-top-right-radius: 5px; | ||
30 | - border-bottom-right-radius: 5px; | ||
31 | - font-family: "button"; | ||
32 | - position: relative; | ||
33 | - top: -50px; | ||
34 | - left: 550px; | ||
35 | - } | ||
36 | #soo_btn2 | 24 | #soo_btn2 |
37 | { | 25 | { |
38 | border-top-left-radius: 5px; | 26 | border-top-left-radius: 5px; |
... | @@ -41,8 +29,9 @@ body | ... | @@ -41,8 +29,9 @@ body |
41 | border-bottom-right-radius: 5px; | 29 | border-bottom-right-radius: 5px; |
42 | font-family:"button"; | 30 | font-family:"button"; |
43 | position: relative; | 31 | position: relative; |
44 | - top: 100px; | 32 | + top: 80px; |
45 | - left: 435px; | 33 | + left: 550px; |
34 | + text-align: center; | ||
46 | } | 35 | } |
47 | #btn_group button | 36 | #btn_group button |
48 | { | 37 | { |
... | @@ -58,4 +47,5 @@ body | ... | @@ -58,4 +47,5 @@ body |
58 | #btn_group button:hover | 47 | #btn_group button:hover |
59 | { | 48 | { |
60 | background-color: rgb(167, 255, 246); | 49 | background-color: rgb(167, 255, 246); |
61 | - } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
50 | + } | ||
51 | + | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | import React from 'react'; | 1 | import React from 'react'; |
2 | import './Home.css'; | 2 | import './Home.css'; |
3 | 3 | ||
4 | + | ||
4 | const Home = ( { history } ) => | 5 | const Home = ( { history } ) => |
5 | { | 6 | { |
6 | 7 | ||
7 | return ( | 8 | return ( |
8 | <> | 9 | <> |
9 | - <head> | 10 | + <div id='root'> |
10 | - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css"></link> | 11 | + <head> |
11 | - </head> | 12 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css"></link> |
12 | - <div className='home_display'> | 13 | + </head> |
13 | - <center id='home'> | 14 | + <div className='home_display'> |
14 | - <div className='animated infinite pulse'>findyourcolor</div> | 15 | + <center id='home'> |
15 | - </center> | 16 | + <div className='animated infinite pulse'>findyourcolor</div> |
16 | - <div id="btn_group"> | 17 | + </center> |
17 | - <button id="soo_btn2" onClick={ () => {history.push("/test")}}>test</button> | 18 | + <div id="btn_group"> |
19 | + <button id="soo_btn2" onClick={ () => {history.push("/test")}}>test</button> | ||
20 | + </div> | ||
21 | + </div> | ||
18 | </div> | 22 | </div> |
19 | - </div> | ||
20 | </> | 23 | </> |
21 | ); | 24 | ); |
22 | } | 25 | } | ... | ... |
front/src/YummyCupcakes.ttf
0 → 100644
No preview for this file type
1 | -body | 1 | + body |
2 | { | 2 | { |
3 | - background-image : url('main.png'); | ||
4 | - background-repeat : no-repeat; | ||
5 | - background-size : cover; | ||
6 | color:rgb(230, 255, 255); | 3 | color:rgb(230, 255, 255); |
7 | - | 4 | + width: auto; |
5 | + height: auto; | ||
6 | + padding: auto; | ||
7 | + border: auto; | ||
8 | + } | ||
9 | + span | ||
10 | + { | ||
11 | + border: 1px; | ||
12 | + color:rgb(255, 255, 255); | ||
13 | + padding: 10px; | ||
14 | + align-items: center; | ||
15 | + text-align: center; | ||
16 | + font-size: 40px; | ||
17 | + background-color: rgba(255, 255, 255, 0); | ||
18 | + font-family: "Q"; | ||
19 | + top: 30px; | ||
20 | + } | ||
21 | + #result | ||
22 | + { | ||
23 | + border: 0%; | ||
24 | + color:rgb(0, 0, 0); | ||
25 | + justify-content: center; | ||
26 | + align-items: center; | ||
27 | + text-align: center; | ||
28 | + font-family: "button"; | ||
29 | + font-size: 80%; | ||
30 | + background-color: hsl(182, 100%, 88%); | ||
8 | } | 31 | } |
9 | #question-count | 32 | #question-count |
10 | { | 33 | { |
... | @@ -16,6 +39,10 @@ body | ... | @@ -16,6 +39,10 @@ body |
16 | } | 39 | } |
17 | #test | 40 | #test |
18 | { | 41 | { |
42 | + background-image : url("https://source.unsplash.com/random/1920x1080/?color"); | ||
43 | + background-size : cover; | ||
44 | + background-repeat : no-repeat; | ||
45 | + padding: 12%; | ||
19 | text-align: center!important; | 46 | text-align: center!important; |
20 | line-height: 100px; | 47 | line-height: 100px; |
21 | font-family: "Q"; | 48 | font-family: "Q"; |
... | @@ -40,6 +67,7 @@ body | ... | @@ -40,6 +67,7 @@ body |
40 | border: 1px; | 67 | border: 1px; |
41 | color:rgb(255, 255, 255); | 68 | color:rgb(255, 255, 255); |
42 | padding: 10px; | 69 | padding: 10px; |
70 | + justify-content: center; | ||
43 | align-items: center; | 71 | align-items: center; |
44 | text-align: center; | 72 | text-align: center; |
45 | font-size: 40px; | 73 | font-size: 40px; | ... | ... |
... | @@ -128,13 +128,13 @@ const Test = ( { history } ) => | ... | @@ -128,13 +128,13 @@ const Test = ( { history } ) => |
128 | <div id='test'> | 128 | <div id='test'> |
129 | {showScore ? ( | 129 | {showScore ? ( |
130 | <span className='score-section'> | 130 | <span className='score-section'> |
131 | - <button onClick={() => handlePersonalScore(score_c,score_w)}>result</button> | 131 | + <button id="result" onClick={() => handlePersonalScore(score_c,score_w)}>result</button> |
132 | {num === 1 ? | 132 | {num === 1 ? |
133 | (<div className = "season"> | 133 | (<div className = "season"> |
134 | {score === "cool" ? (<button onClick={ () => {history.push("/test2")}}>next</button>) | 134 | {score === "cool" ? (<button onClick={ () => {history.push("/test2")}}>next</button>) |
135 | : (<button onClick={ () => {history.push("/test3")}}>next</button>)} | 135 | : (<button onClick={ () => {history.push("/test3")}}>next</button>)} |
136 | </div>) | 136 | </div>) |
137 | - : (<div>click me!</div>)} | 137 | + : (<div>click result!</div>)} |
138 | </span> | 138 | </span> |
139 | ) : ( | 139 | ) : ( |
140 | <> | 140 | <> | ... | ... |
-
Please register or login to post a comment