diff --git a/.gitignore b/.gitignore index 4d29575d..fa91df69 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,8 @@ npm-debug.log* yarn-debug.log* yarn-error.log* + +# reference files +src/pages/MeetingRoomFive.js +src/pages/Registration(TaejinLiveShare).js +src/pages/ApiComparisonTest.js \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 3801cda6..c100f3a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,7 @@ "react-dom": "^18.3.1", "react-router-dom": "^6.27.0", "react-scripts": "5.0.1", + "styled-components": "^6.1.13", "web-vitals": "^2.1.4" } }, @@ -2380,6 +2381,27 @@ "postcss-selector-parser": "^6.0.10" } }, + "node_modules/@emotion/is-prop-valid": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.2.tgz", + "integrity": "sha512-uNsoYd37AFmaCdXlg6EYD1KaPOaRWRByMCYzbKUX4+hhMfrxdVSelShywL4JVaAeM/eHUOSprYBQls+/neX3pw==", + "license": "MIT", + "dependencies": { + "@emotion/memoize": "^0.8.1" + } + }, + "node_modules/@emotion/memoize": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz", + "integrity": "sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==", + "license": "MIT" + }, + "node_modules/@emotion/unitless": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.1.tgz", + "integrity": "sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==", + "license": "MIT" + }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -4782,6 +4804,12 @@ "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", "license": "MIT" }, + "node_modules/@types/stylis": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@types/stylis/-/stylis-4.2.5.tgz", + "integrity": "sha512-1Xve+NMN7FWjY14vLoY5tL3BVEQ/n42YLwaqJIPYhotZ9uBHt87VceMwWQpzmdEt2TNXIorIFG+YeCUUW7RInw==", + "license": "MIT" + }, "node_modules/@types/testing-library__jest-dom": { "version": "5.14.9", "resolved": "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.9.tgz", @@ -6375,6 +6403,15 @@ "node": ">= 6" } }, + "node_modules/camelize": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.1.tgz", + "integrity": "sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/caniuse-api": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", @@ -6848,6 +6885,15 @@ "postcss": "^8.4" } }, + "node_modules/css-color-keywords": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/css-color-keywords/-/css-color-keywords-1.0.0.tgz", + "integrity": "sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==", + "license": "ISC", + "engines": { + "node": ">=4" + } + }, "node_modules/css-declaration-sorter": { "version": "6.4.1", "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.1.tgz", @@ -6997,6 +7043,17 @@ "integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==", "license": "MIT" }, + "node_modules/css-to-react-native": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-3.2.0.tgz", + "integrity": "sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ==", + "license": "MIT", + "dependencies": { + "camelize": "^1.0.0", + "css-color-keywords": "^1.0.0", + "postcss-value-parser": "^4.0.2" + } + }, "node_modules/css-tree": { "version": "1.0.0-alpha.37", "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.37.tgz", @@ -17159,6 +17216,12 @@ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", "license": "ISC" }, + "node_modules/shallowequal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", + "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==", + "license": "MIT" + }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -17775,6 +17838,68 @@ "webpack": "^5.0.0" } }, + "node_modules/styled-components": { + "version": "6.1.13", + "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-6.1.13.tgz", + "integrity": "sha512-M0+N2xSnAtwcVAQeFEsGWFFxXDftHUD7XrKla06QbpUMmbmtFBMMTcKWvFXtWxuD5qQkB8iU5gk6QASlx2ZRMw==", + "license": "MIT", + "dependencies": { + "@emotion/is-prop-valid": "1.2.2", + "@emotion/unitless": "0.8.1", + "@types/stylis": "4.2.5", + "css-to-react-native": "3.2.0", + "csstype": "3.1.3", + "postcss": "8.4.38", + "shallowequal": "1.1.0", + "stylis": "4.3.2", + "tslib": "2.6.2" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/styled-components" + }, + "peerDependencies": { + "react": ">= 16.8.0", + "react-dom": ">= 16.8.0" + } + }, + "node_modules/styled-components/node_modules/postcss": { + "version": "8.4.38", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz", + "integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.7", + "picocolors": "^1.0.0", + "source-map-js": "^1.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/styled-components/node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "license": "0BSD" + }, "node_modules/stylehacks": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", @@ -17791,6 +17916,12 @@ "postcss": "^8.2.15" } }, + "node_modules/stylis": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.3.2.tgz", + "integrity": "sha512-bhtUjWd/z6ltJiQwg0dUfxEJ+W+jdqQd8TbWLWyeIJHlnsqmGLRFFd8e5mA0AZi/zx90smXRlN66YMTcaSFifg==", + "license": "MIT" + }, "node_modules/sucrase": { "version": "3.35.0", "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz", diff --git a/package.json b/package.json index 96059456..1ab9a905 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "react-dom": "^18.3.1", "react-router-dom": "^6.27.0", "react-scripts": "5.0.1", + "styled-components": "^6.1.13", "web-vitals": "^2.1.4" }, "scripts": { diff --git a/public/logo192.png b/public/logo192.png deleted file mode 100644 index fc44b0a3..00000000 Binary files a/public/logo192.png and /dev/null differ diff --git a/public/logo512.png b/public/logo512.png deleted file mode 100644 index a4e47a65..00000000 Binary files a/public/logo512.png and /dev/null differ diff --git a/public/manifest.json b/public/manifest.json deleted file mode 100644 index 080d6c77..00000000 --- a/public/manifest.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "short_name": "React App", - "name": "Create React App Sample", - "icons": [ - { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - }, - { - "src": "logo192.png", - "type": "image/png", - "sizes": "192x192" - }, - { - "src": "logo512.png", - "type": "image/png", - "sizes": "512x512" - } - ], - "start_url": ".", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" -} diff --git a/public/robots.txt b/public/robots.txt deleted file mode 100644 index e9e57dc4..00000000 --- a/public/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -# https://www.robotstxt.org/robotstxt.html -User-agent: * -Disallow: diff --git a/src/assets/font/Pretendard-Regular.woff b/public/static/font/Pretendard-Regular.woff similarity index 100% rename from src/assets/font/Pretendard-Regular.woff rename to public/static/font/Pretendard-Regular.woff diff --git a/src/assets/font/ROKAF_Sans_Bold.ttf b/public/static/font/ROKAF_Sans_Bold.ttf similarity index 100% rename from src/assets/font/ROKAF_Sans_Bold.ttf rename to public/static/font/ROKAF_Sans_Bold.ttf diff --git a/src/assets/font/ROKAF_Sans_Medium.ttf b/public/static/font/ROKAF_Sans_Medium.ttf similarity index 100% rename from src/assets/font/ROKAF_Sans_Medium.ttf rename to public/static/font/ROKAF_Sans_Medium.ttf diff --git a/public/static/images/Img_home_01.png b/public/static/images/Img_home_01.png new file mode 100644 index 00000000..0801379a Binary files /dev/null and b/public/static/images/Img_home_01.png differ diff --git a/public/static/images/Img_home_02.png b/public/static/images/Img_home_02.png new file mode 100644 index 00000000..5622cb4e Binary files /dev/null and b/public/static/images/Img_home_02.png differ diff --git a/public/static/images/Img_home_03.png b/public/static/images/Img_home_03.png new file mode 100644 index 00000000..80367c2f Binary files /dev/null and b/public/static/images/Img_home_03.png differ diff --git a/public/static/images/Img_home_bottom.png b/public/static/images/Img_home_bottom.png new file mode 100644 index 00000000..cbb3b018 Binary files /dev/null and b/public/static/images/Img_home_bottom.png differ diff --git a/public/static/images/Img_home_top.png b/public/static/images/Img_home_top.png new file mode 100644 index 00000000..b6d30fe0 Binary files /dev/null and b/public/static/images/Img_home_top.png differ diff --git a/public/favicon.png b/public/static/images/favicon.png similarity index 100% rename from public/favicon.png rename to public/static/images/favicon.png diff --git a/public/static/images/google.png b/public/static/images/google.png new file mode 100644 index 00000000..914c0dbb Binary files /dev/null and b/public/static/images/google.png differ diff --git a/public/static/images/hide-pw.png b/public/static/images/hide-pw.png new file mode 100644 index 00000000..ebe01375 Binary files /dev/null and b/public/static/images/hide-pw.png differ diff --git a/src/assets/images/ic_facebook.svg b/public/static/images/ic_facebook.svg similarity index 100% rename from src/assets/images/ic_facebook.svg rename to public/static/images/ic_facebook.svg diff --git a/src/assets/images/ic_instagram.svg b/public/static/images/ic_instagram.svg similarity index 100% rename from src/assets/images/ic_instagram.svg rename to public/static/images/ic_instagram.svg diff --git a/public/static/images/ic_sort.png b/public/static/images/ic_sort.png new file mode 100644 index 00000000..9292d758 Binary files /dev/null and b/public/static/images/ic_sort.png differ diff --git a/src/assets/images/ic_twitter.svg b/public/static/images/ic_twitter.svg similarity index 100% rename from src/assets/images/ic_twitter.svg rename to public/static/images/ic_twitter.svg diff --git a/public/static/images/ic_x.png b/public/static/images/ic_x.png new file mode 100644 index 00000000..60c7748f Binary files /dev/null and b/public/static/images/ic_x.png differ diff --git a/src/assets/images/ic_youtube.svg b/public/static/images/ic_youtube.svg similarity index 100% rename from src/assets/images/ic_youtube.svg rename to public/static/images/ic_youtube.svg diff --git a/public/static/images/kakao.png b/public/static/images/kakao.png new file mode 100644 index 00000000..61120754 Binary files /dev/null and b/public/static/images/kakao.png differ diff --git a/src/assets/images/like-icon.png b/public/static/images/like-icon.png similarity index 100% rename from src/assets/images/like-icon.png rename to public/static/images/like-icon.png diff --git a/public/static/images/login-logo.png b/public/static/images/login-logo.png new file mode 100644 index 00000000..4c538949 Binary files /dev/null and b/public/static/images/login-logo.png differ diff --git a/src/assets/images/logo.png b/public/static/images/logo.png similarity index 100% rename from src/assets/images/logo.png rename to public/static/images/logo.png diff --git a/public/static/images/og-image.jpg b/public/static/images/og-image.jpg new file mode 100644 index 00000000..f2274f31 Binary files /dev/null and b/public/static/images/og-image.jpg differ diff --git a/src/assets/images/page_left_arrow.png b/public/static/images/page_left_arrow.png similarity index 100% rename from src/assets/images/page_left_arrow.png rename to public/static/images/page_left_arrow.png diff --git a/src/assets/images/page_right_arrow.png b/public/static/images/page_right_arrow.png similarity index 100% rename from src/assets/images/page_right_arrow.png rename to public/static/images/page_right_arrow.png diff --git a/src/assets/images/search.png b/public/static/images/search.png similarity index 100% rename from src/assets/images/search.png rename to public/static/images/search.png diff --git a/public/static/images/show-pw.png b/public/static/images/show-pw.png new file mode 100644 index 00000000..d3c77474 Binary files /dev/null and b/public/static/images/show-pw.png differ diff --git a/public/static/images/user_profile.png b/public/static/images/user_profile.png new file mode 100644 index 00000000..c58d418f Binary files /dev/null and b/public/static/images/user_profile.png differ diff --git a/src/App.css b/src/App.css index 7f2dc4e4..589de354 100644 --- a/src/App.css +++ b/src/App.css @@ -1,13 +1,13 @@ @font-face { - font-family: 'Pretendard-Regular'; - src: url('./assets/font/Pretendard-Regular.woff') format('woff'); + font-family: "Pretendard-Regular"; + src: url("/public/static/font/Pretendard-Regular.woff") format("woff"); font-weight: 400; font-style: normal; } @font-face { - font-family: 'rokaf'; - src: url('./assets/font/ROKAF_Sans_Medium.ttf') format('truetype'); + font-family: "rokaf"; + src: url("/public/static/font/ROKAF_Sans_Medium.ttf") format("truetype"); } * { @@ -24,4 +24,14 @@ html { a { text-decoration: none; color: inherit; -} \ No newline at end of file +} + +.coming_soon { + height: calc(100vh - 230px); + display: flex; + justify-content: center; + align-items: center; + font-size: 5rem; + font-weight: 700; + color: #3692ff; +} diff --git a/src/App.js b/src/App.js index 868ae492..fdef5c9d 100644 --- a/src/App.js +++ b/src/App.js @@ -1,15 +1,47 @@ -import Nav from './components/Nav/Nav' -import Main from './components/Main/Main' -import Footer from './components/Footer/Footer' -import './App.css' +import { BrowserRouter as Router, Route, Routes, useLocation } from 'react-router-dom'; +import Nav from './components/Nav/Nav'; +import Footer from './components/Footer/Footer'; +import Main from './pages/Main'; +import Login from './pages/Login'; +import Signup from './pages/Signup'; +import Items from './pages/Items'; +import Community from './pages/Community'; +import Faq from './pages/Faq'; +import Privacy from './pages/Privacy'; +import Registration from './pages/Registration'; +// import ApiComparisonTest from './pages/ApiComparisonTest'; +import './App.css'; + +function AppContent() { + const location = useLocation(); + + // Nav와 Footer를 제외할 경로 목록 + const hideHeaderFooterPaths = ['/login', '/signup']; + + return ( + <> + {!hideHeaderFooterPaths.includes(location.pathname) &&