From a2aafe72c62a9d01c785659b584f77839e8370af Mon Sep 17 00:00:00 2001 From: sbyeol3 Date: Mon, 25 May 2020 11:37:45 +0900 Subject: [PATCH] [#1] Feat : create app --- .idea/.gitignore | 5 + .idea/dictionaries/byeol.xml | 7 ++ .idea/ewha-chain.iml | 12 +++ .idea/inspectionProfiles/Project_Default.xml | 6 ++ .idea/misc.xml | 6 ++ .idea/modules.xml | 8 ++ .idea/vcs.xml | 6 ++ package-lock.json | 96 ++++++++++++++++++++ package.json | 1 + public/index.html | 4 +- src/App.css | 38 -------- src/App.js | 21 +---- src/App.test.js | 9 -- src/components/Alumni.js | 11 +++ src/components/Header.js | 20 ++++ src/components/Home.js | 13 +++ src/components/Portfolio.js | 11 +++ src/components/Recruiting.js | 11 +++ src/components/style.css | 41 +++++++++ src/logo.svg | 7 -- src/pages/Routes.js | 17 ++++ 21 files changed, 278 insertions(+), 72 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/dictionaries/byeol.xml create mode 100644 .idea/ewha-chain.iml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml delete mode 100644 src/App.css delete mode 100644 src/App.test.js create mode 100644 src/components/Alumni.js create mode 100644 src/components/Header.js create mode 100644 src/components/Home.js create mode 100644 src/components/Portfolio.js create mode 100644 src/components/Recruiting.js create mode 100644 src/components/style.css delete mode 100644 src/logo.svg create mode 100644 src/pages/Routes.js diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/dictionaries/byeol.xml b/.idea/dictionaries/byeol.xml new file mode 100644 index 0000000..4f3ef56 --- /dev/null +++ b/.idea/dictionaries/byeol.xml @@ -0,0 +1,7 @@ + + + + subtit + + + \ No newline at end of file diff --git a/.idea/ewha-chain.iml b/.idea/ewha-chain.iml new file mode 100644 index 0000000..24643cc --- /dev/null +++ b/.idea/ewha-chain.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..03d9549 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..24eb271 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..cbf82d6 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index c503722..bd55db8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6164,6 +6164,19 @@ "resolved": "https://registry.npmjs.org/hex-color-regex/-/hex-color-regex-1.1.0.tgz", "integrity": "sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==" }, + "history": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/history/-/history-4.10.1.tgz", + "integrity": "sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==", + "requires": { + "@babel/runtime": "^7.1.2", + "loose-envify": "^1.2.0", + "resolve-pathname": "^3.0.0", + "tiny-invariant": "^1.0.2", + "tiny-warning": "^1.0.0", + "value-equal": "^1.0.1" + } + }, "hmac-drbg": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", @@ -6174,6 +6187,14 @@ "minimalistic-crypto-utils": "^1.0.1" } }, + "hoist-non-react-statics": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", + "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", + "requires": { + "react-is": "^16.7.0" + } + }, "hosted-git-info": { "version": "2.8.8", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz", @@ -8076,6 +8097,15 @@ "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.0.tgz", "integrity": "sha1-z8RcN+nsDY8KDsPdTvf3w6vjklY=" }, + "mini-create-react-context": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/mini-create-react-context/-/mini-create-react-context-0.4.0.tgz", + "integrity": "sha512-b0TytUgFSbgFJGzJqXPKCFCBWigAjpjo+Fl7Vf7ZbKRDptszpppKxXH6DRXEABZ/gcEQczeb0iZ7JvL8e8jjCA==", + "requires": { + "@babel/runtime": "^7.5.5", + "tiny-warning": "^1.0.3" + } + }, "mini-css-extract-plugin": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-0.9.0.tgz", @@ -10563,6 +10593,52 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, + "react-router": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-5.2.0.tgz", + "integrity": "sha512-smz1DUuFHRKdcJC0jobGo8cVbhO3x50tCL4icacOlcwDOEQPq4TMqwx3sY1TP+DvtTgz4nm3thuo7A+BK2U0Dw==", + "requires": { + "@babel/runtime": "^7.1.2", + "history": "^4.9.0", + "hoist-non-react-statics": "^3.1.0", + "loose-envify": "^1.3.1", + "mini-create-react-context": "^0.4.0", + "path-to-regexp": "^1.7.0", + "prop-types": "^15.6.2", + "react-is": "^16.6.0", + "tiny-invariant": "^1.0.2", + "tiny-warning": "^1.0.0" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" + }, + "path-to-regexp": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", + "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", + "requires": { + "isarray": "0.0.1" + } + } + } + }, + "react-router-dom": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-5.2.0.tgz", + "integrity": "sha512-gxAmfylo2QUjcwxI63RhQ5G85Qqt4voZpUXSEqCwykV0baaOTQDR1f0PmY8AELqIyVc0NEZUj0Gov5lNGcXgsA==", + "requires": { + "@babel/runtime": "^7.1.2", + "history": "^4.9.0", + "loose-envify": "^1.3.1", + "prop-types": "^15.6.2", + "react-router": "5.2.0", + "tiny-invariant": "^1.0.2", + "tiny-warning": "^1.0.0" + } + }, "react-scripts": { "version": "3.4.1", "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-3.4.1.tgz", @@ -10966,6 +11042,11 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=" }, + "resolve-pathname": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-pathname/-/resolve-pathname-3.0.0.tgz", + "integrity": "sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==" + }, "resolve-url": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", @@ -12432,6 +12513,16 @@ "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=" }, + "tiny-invariant": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.1.0.tgz", + "integrity": "sha512-ytxQvrb1cPc9WBEI/HSeYYoGD0kWnGEOR8RY6KomWLBVhqz0RgTwVO9dLrGz7dC+nN9llyI7OKAgRq8Vq4ZBSw==" + }, + "tiny-warning": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", + "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==" + }, "tmp": { "version": "0.0.33", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", @@ -12803,6 +12894,11 @@ "spdx-expression-parse": "^3.0.0" } }, + "value-equal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz", + "integrity": "sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==" + }, "vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", diff --git a/package.json b/package.json index 4fd88e4..ab2da87 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "@testing-library/user-event": "^7.2.1", "react": "^16.13.1", "react-dom": "^16.13.1", + "react-router-dom": "^5.2.0", "react-scripts": "3.4.1" }, "scripts": { diff --git a/public/index.html b/public/index.html index aa069f2..6e66d55 100644 --- a/public/index.html +++ b/public/index.html @@ -24,7 +24,9 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - React App + + + EWHA-CHAIN diff --git a/src/App.css b/src/App.css deleted file mode 100644 index 74b5e05..0000000 --- a/src/App.css +++ /dev/null @@ -1,38 +0,0 @@ -.App { - text-align: center; -} - -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} diff --git a/src/App.js b/src/App.js index ce9cbd2..713bdf9 100644 --- a/src/App.js +++ b/src/App.js @@ -1,26 +1,13 @@ import React from 'react'; -import logo from './logo.svg'; -import './App.css'; +import Routes from "./pages/Routes"; +import Header from './components/Header' function App() { return (
-
- logo -

- Edit src/App.js and save to reload. -

- - Learn React - -
+
); } -export default App; +export default App; \ No newline at end of file diff --git a/src/App.test.js b/src/App.test.js deleted file mode 100644 index 4db7ebc..0000000 --- a/src/App.test.js +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { render } from '@testing-library/react'; -import App from './App'; - -test('renders learn react link', () => { - const { getByText } = render(); - const linkElement = getByText(/learn react/i); - expect(linkElement).toBeInTheDocument(); -}); diff --git a/src/components/Alumni.js b/src/components/Alumni.js new file mode 100644 index 0000000..2a50948 --- /dev/null +++ b/src/components/Alumni.js @@ -0,0 +1,11 @@ +import React from 'react'; + +const Alumni = () => { + return( +
+ Alumni +
+ ) +} + +export default Alumni \ No newline at end of file diff --git a/src/components/Header.js b/src/components/Header.js new file mode 100644 index 0000000..898a2c0 --- /dev/null +++ b/src/components/Header.js @@ -0,0 +1,20 @@ +import React, {useState} from 'react'; +import { NavLink } from "react-router-dom"; +import './style.css' +import Home from "./Home"; + +const Header = () => { + return( +
+ + +
+ ) +} + +export default Header \ No newline at end of file diff --git a/src/components/Home.js b/src/components/Home.js new file mode 100644 index 0000000..d3e3547 --- /dev/null +++ b/src/components/Home.js @@ -0,0 +1,13 @@ +import React from 'react'; + +const Home = () => { + return( +
+
+
ABOUT US
+
+
+ ) +} + +export default Home \ No newline at end of file diff --git a/src/components/Portfolio.js b/src/components/Portfolio.js new file mode 100644 index 0000000..d285065 --- /dev/null +++ b/src/components/Portfolio.js @@ -0,0 +1,11 @@ +import React from 'react'; + +const Portfolio = () => { + return( +
+ dd +
+ ) +} + +export default Portfolio \ No newline at end of file diff --git a/src/components/Recruiting.js b/src/components/Recruiting.js new file mode 100644 index 0000000..b06ab9c --- /dev/null +++ b/src/components/Recruiting.js @@ -0,0 +1,11 @@ +import React from 'react'; + +const Recruiting = () => { + return( +
+ dd +
+ ) +} + +export default Recruiting \ No newline at end of file diff --git a/src/components/style.css b/src/components/style.css new file mode 100644 index 0000000..94a10b9 --- /dev/null +++ b/src/components/style.css @@ -0,0 +1,41 @@ +/* Header - nav var */ +header { + background-color: white; + position: fixed; + top: 0; + left: 0; + right: 0; + height: 70px; + display: flex; + align-items: center; + box-shadow: 0 0 15px 0 black; +} + +header img { + height: 70px; +} + +header * { + display: inline; +} + +header li { + font-weight: 200; + margin: 10px; +} + +header li a { + color: black; + text-decoration: none; +} + +/* common part */ +.page { + margin-top: 80px; + padding: 20px; +} + +.page .subtit { + font-size: 24px; + font-weight: 900; +} \ No newline at end of file diff --git a/src/logo.svg b/src/logo.svg deleted file mode 100644 index 6b60c10..0000000 --- a/src/logo.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/src/pages/Routes.js b/src/pages/Routes.js new file mode 100644 index 0000000..8f28a95 --- /dev/null +++ b/src/pages/Routes.js @@ -0,0 +1,17 @@ +import React from 'react'; +import { BrowserRouter as Router, Route } from 'react-router-dom'; +import Home from '../components/Home' +import Portfolio from '../components/Portfolio' +import Recruiting from '../components/Recruiting' +import Header from "../components/Header"; +import Alumni from "../components/Alumni"; + +export default () => ( + + + + + + + +)