-
Notifications
You must be signed in to change notification settings - Fork 27
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
33 changed files
with
5,021 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,124 @@ | ||
# javascript-subway | ||
<p align="middle" > | ||
<img width="200px;" src="./src/images/subway_emoji.png"/> | ||
</p> | ||
<h2 align="middle">level1 - ์งํ์ฒ ๋ ธ์ ๋ ๊ด๋ฆฌ SPA</h2> | ||
<p align="middle">Browser History API๋ฅผ ์ด์ฉํด ๊ตฌํํ๋ ์งํ์ฒ ๋ ธ์ ๋ ๊ด๋ฆฌ SPA</p> | ||
<p align="middle"> | ||
<img src="https://img.shields.io/badge/version-1.0.0-blue?style=flat-square" alt="template version"/> | ||
<img src="https://img.shields.io/badge/language-html-red.svg?style=flat-square"/> | ||
<img src="https://img.shields.io/badge/language-css-blue.svg?style=flat-square"/> | ||
<img src="https://img.shields.io/badge/language-js-yellow.svg?style=flat-square"/> | ||
<img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square"/> | ||
</p> | ||
|
||
# ๐ฅ Projects! | ||
|
||
<p align="middle"> | ||
<img src="./src/images/readme/subway_app_preview.png"> | ||
</p> | ||
|
||
## ๐ฏ step1 | ||
|
||
### Webpack์ ํตํ ๋ฒ๋ค๋ง | ||
|
||
- [ ] Webpack์์ babel์ ์ค์ ํ๋ค. | ||
- [ ] ๊ธฐํ ํ๋ฌ๊ทธ์ธ ๋ฐ ์ค์ ์ ๋ณธ์ธ์ด ํ์์ ๋ฐ๋ผ ์ถ๊ฐํ๋ค. | ||
|
||
### ๋ผ์ฐํ ๊ธฐ๋ฅ | ||
|
||
- [ ] Browser History Api๋ฅผ ์ด์ฉํ์ฌ SPA์ฒ๋ผ ๋ผ์ฐํ ์ ์ ์ฉํ๋ค. | ||
|
||
### ํ์ ๊ธฐ๋ฅ | ||
|
||
- [ ] ์ ์ ๋ ํ์ ๊ฐ์ ์ ํ ์ ์๋ค, | ||
- [ ] ํ์ ๊ฐ์ ์ ๋ฐ๋ ์ ๋ณด๋ `email`, `name`, `password`์ด๋ค. | ||
- [ ] ์ ์ ๋ ๋ก๊ทธ์ธ ํ ์ ์๋ค. | ||
- [ ] ๋ก๊ทธ์ธํ๊ณ ๋๋ฉด ๋ก๊ทธ์ธ ๋ฒํผ์ ๋ก๊ทธ์์ ๋ฒํผ์ผ๋ก ๋ณ๊ฒฝ๋์ด์ผ ํ๋ค. | ||
- [ ] ๋ก๊ทธ์ธํ ์ ์ ๋ง, ์ ๋ณด์ ์์ ์ด ๊ฐ๋ฅํ๋ค. | ||
- [ ] ๋ก๊ทธ์ธํ์ง ์์ ์ ์ ๋ ์ ๋ณด๋ฅผ ์ฝ๋ ๊ฒ๋ง ๊ฐ๋ฅํ๋ค. | ||
- [ ] ์ ์ ๋ ๋ก๊ทธ์์ํ ์ ์๋ค. | ||
- [ ] ๋ก๊ทธ์์ํ๋ฉด `/` ๋ฃจํธ ํ์ด์ง๋ก ๋์์จ๋ค. | ||
|
||
## ๐ฏ๐ฏ step2 | ||
|
||
### ์งํ์ฒ ์ญ ๊ด๋ฆฌ ๊ธฐ๋ฅ | ||
|
||
- [ ] ์งํ์ฒ ์ญ์ ๋ฑ๋กํ ์ ์๋ค. | ||
- [ ] ์งํ์ฒ ์ญ์ 2๊ธ์ ์ด์์ด์ด์ผ ํ๋ค. | ||
- [ ] ์ํฐํค ๋๋ ๋ง์ฐ์ค ํด๋ฆญ์ผ๋ก ์ญ์ ์ถ๊ฐํ ์ ์์ด์ผ ํ๋ค. | ||
- [ ] ์งํ์ฒ ์ญ์ ์ด๋ฆ์ ์ต๋ 20์ ์ดํ์ด๋ค. | ||
- [ ] ์ค๋ณต๋ ์งํ์ฒ ์ญ์ ์ถ๊ฐํ ์ ์๋ค. | ||
- [ ] ์งํ์ฒ ์ญ์ ์ด๋ฆ์ ์์ ํ ์ ์๋ค. | ||
- [ ] ์์ ํ๋ UI๋ modal์ ์ด์ฉํ์ฌ ์์ ํ ์ ์๊ฒ ํ๋ค. | ||
- [ ] ์งํ์ฒ ์ญ์ ์ญ์ ํ ์ ์๋ค. | ||
- [ ] ์ญ์ ์ confirm์ ์ด์ฉํ์ฌ ํ ๋ฒ ๋ ์ ์ ๊ฐ ํ์ธํ ์ ์์ด์ผ ํ๋ค. | ||
- [ ] ์ด๋ฏธ ๋ ธ์ ์ ๋ฑ๋ก๋ ์ญ์ธ ๊ฒฝ์ฐ ์ญ์ ํ ์ ์๋ค. | ||
|
||
### ์งํ์ฒ ๋ ธ์ ๊ด๋ฆฌ ๊ธฐ๋ฅ | ||
|
||
- [ ] ์งํ์ฒ ๋ ธ์ ์ ๋ฑ๋กํ ์ ์๋ค. | ||
- [ ] ์งํ์ฒ ๋ ธ์ ์ ์ด๋ฆ์ 2๊ธ์ ์ด์์ด์ด์ผ ํ๋ค. | ||
- [ ] ์ค๋ณต๋ ์งํ์ฒ ๋ ธ์ ์ด๋ฆ์ด ๋ฑ๋ก๋ ์ ์๋ค. | ||
- [ ] ์งํ์ฒ ๋ ธ์ ์ ์ด๋ฆ์ ์ต๋ 10์ ์ดํ์ด๋ค. | ||
- [ ] ์งํ์ฒ ๋ ธ์ ์ ์์ ์ ์๋ค. | ||
- [ ] ์งํ์ฒ ๋ ธ์ ์ ์ด๋ฆ, ์ฒซ์ฐจ ์๊ฐ, ๋ง์ฐจ ์๊ฐ, ๊ฐ๊ฒฉ, ์์์ ์์ ํ ์ ์๋ค. | ||
- [ ] ์งํ์ฒ ๋ ธ์ ์ ์ญ์ ํ ์ ์๋ค. | ||
- [ ] ์ญ์ ์ confirm์ ์ด์ฉํ์ฌ ํ ๋ฒ ๋ ์ ์ ๊ฐ ํ์ธํ ์ ์์ด์ผ ํ๋ค. | ||
- [ ] ์งํ์ฒ ๋ ธ์ ์ ์กฐํ ํ ์ ์๋ค. | ||
- [ ] ์งํ์ฒ ๋ ธ์ ์ ํด๋ฆญํ๋ฉด modal๋ก ์ฒซ์ฐจ ์๊ฐ, ๋ง์ฐจ ์๊ฐ, ๊ฐ๊ฒฉ์ ํ์ธํ ์ ์๋ค. | ||
- [ ] ํด๋น UI๋ ์ค์ค๋ก ๊ตฌํํ๋ค. | ||
|
||
### ์งํ์ฒ ๊ตฌ๊ฐ ๊ด๋ฆฌ ๊ธฐ๋ฅ | ||
|
||
- [ ] ์งํ์ฒ ๋ ธ์ ์ ๊ตฌ๊ฐ์ ์ถ๊ฐ, ์์ , ์ญ์ ํ ์ ์๋ค. | ||
- [ ] ๊ตฌ๊ฐ ์กฐํ ์, ๋ ธ์ ์ ๋ณ๊ฒฝํ๋ฉด ํด๋น ๋ ธ์ ์ Color๋ก Select ์๋ฆฌ๋จผํธ์ ๋ฐฐ๊ฒฝ์์ ๋ณ๊ฒฝํ๋ค. | ||
|
||
## ๐ฏ๐ฏ๐ฏ step3 | ||
|
||
### ์ ์ฒด๋ณด๊ธฐ ๊ธฐ๋ฅ | ||
|
||
- [ ] ๋ ธ์ ์ ์ํ ์ข ์ ๋ถํฐ ํํ ์ข ์ ๊น์ง ์ฐ๊ฒฐ๋ ์์๋๋ก ๋ ธ์ ๊ณผ ์ญ ๋ชฉ๋ก์ ์กฐํํ ์ ์๋ค. | ||
- [ ] ์กฐํ๋ฅผ ์ํ UI๋ ์ค์ค๋ก ๋ง๋ ๋ค. | ||
|
||
### ๊ธธ์ฐพ๊ธฐ ๊ธฐ๋ฅ | ||
|
||
- [ ] ์ถ๋ฐ์ญ๊ณผ ๋์ฐฉ์ญ์ ์ ๋ ฅ๋ฐ์ ๊ฒฝ๋ก๋ฅผ ์กฐํํ๋ค. | ||
- [ ] ๊ฒฝ๋ก ์กฐํ ์ ์ด ๊ฑฐ๋ฆฌ, ์ด ์์ ์๊ฐ์ ํจ๊ป ์ถ๋ ฅํ๋ค. | ||
- [ ] ๊ฒฝ๋ก ์กฐํ ์ ์ต๋จ ๊ฑฐ๋ฆฌ ๋๋ ์ต์ ์๊ฐ ์ต์ ์ ์ ํํ ์ ์๋ค. | ||
- [ ] ๊ธธ ์ฐพ๊ธฐ๋ฅผ ์ํ UI๋ ์ค์ค๋ก ๋ง๋ ๋ค. | ||
|
||
<br> | ||
|
||
## โ๏ธ Before Started | ||
|
||
#### <img alt="Tip" src="https://img.shields.io/static/v1.svg?label=&message=Tip&style=flat-square&color=673ab8"> ๋ก์ปฌ์์ ์๋ฒ ๋์์ ์์ฝ๊ฒ static resources ๋ณ๊ฒฝ ๋ฐ ํ์ธํ๋ ๋ฐฉ๋ฒ | ||
|
||
๋ก์ปฌ์์ ์น์๋ฒ๋ฅผ ๋์ html, css, js ๋ฑ์ ์ค์๊ฐ์ผ๋ก ์์ฝ๊ฒ ํ ์คํธํด ๋ณผ ์ ์์ต๋๋ค. ์ด๋ฅผ ์ํด์๋ ์ฐ์ npm์ด ์ค์น๋์ด ์์ด์ผ ํฉ๋๋ค. ๊ตฌ๊ธ์ `npm install` ์ด๋ ํค์๋๋ก ๊ฐ์์ ์ด์์ฒด์ ์ ๋ง๊ฒ๋ npm์ ์ค์นํด์ฃผ์ธ์. ์ดํ ์๋์ ๋ช ๋ น์ด๋ฅผ ํตํด ์ค์๊ฐ์ผ๋ก ์นํ์ด์ง๋ฅผ ํ ์คํธํด๋ณผ ์ ์์ต๋๋ค. | ||
|
||
``` | ||
npm install -g live-server | ||
``` | ||
|
||
์คํ์ ์๋์ ์ปค๋งจ๋๋ก ํ ์ ์์ต๋๋ค. | ||
|
||
``` | ||
live-server ํด๋๋ช | ||
``` | ||
|
||
<br> | ||
|
||
## ๐ Contributing | ||
|
||
๋ง์ฝ ๋ฏธ์ ์ํ ์ค์ ๊ฐ์ ์ฌํญ์ด ๋ณด์ธ๋ค๋ฉด, ์ธ์ ๋ ์์ ๋กญ๊ฒ PR์ ๋ณด๋ด์ฃผ์ธ์. | ||
|
||
<br> | ||
|
||
## ๐ Bug Report | ||
|
||
๋ฒ๊ทธ๋ฅผ ๋ฐ๊ฒฌํ๋ค๋ฉด, [Issues](https://github.com/woowacourse/javascript-subway/issues)์ ๋ฑ๋กํด์ฃผ์ธ์. | ||
|
||
<br> | ||
|
||
## ๐ License | ||
|
||
This project is [MIT](https://github.com/woowacourse/javascript-subway/blob/main/LICENSE) licensed. |
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,29 @@ | ||
<!DOCTYPE html> | ||
<html lang="kr"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>๐ ์งํ์ฒ ๋ ธ์ ๋</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="stylesheet" href="/src/css/index.css" /> | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<div class="d-flex justify-center mt-5 w-100"> | ||
<div class="w-100"> | ||
<header class="my-4"></header> | ||
<main class="mt-10 d-flex justify-center"> | ||
<div class="d-flex flex-col"> | ||
<div class="d-flex justify-center"> | ||
<img src="src/images/subway_emoji.png" width="200" /> | ||
</div> | ||
<p class="mt-0 text-center"> | ||
์งํ์ฒ ๋ ธ์ ๋ ์ฑ์ ์ฌ์ฉํ๊ธฐ ์ํด์๋ ๋ก๊ทธ์ธ์ด ํ์ํฉ๋๋ค. | ||
</p> | ||
</div> | ||
</main> | ||
</div> | ||
</div> | ||
</div> | ||
<script type="module" src="./src/js/index.js"></script> | ||
</body> | ||
</html> |
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,145 @@ | ||
<!DOCTYPE html> | ||
<html lang="kr"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>๐ ๋ ธ์ ๊ด๋ฆฌ</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="stylesheet" href="/src/css/index.css" /> | ||
<link rel="stylesheet" href="/src/css/pages/lines.css" /> | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<div class="d-flex justify-center mt-5 w-100"> | ||
<div class="w-100"> | ||
<header class="my-4"></header> | ||
<main class="mt-10 d-flex justify-center"> | ||
<div class="wrapper bg-white p-10"> | ||
<div class="heading d-flex"> | ||
<h2 class="mt-1 w-100">๐ค๏ธ ๋ ธ์ ๊ด๋ฆฌ</h2> | ||
<button | ||
type="button" | ||
class="create-line-btn modal-trigger-btn bg-cyan-300 ml-2" | ||
> | ||
๋ ธ์ ์ถ๊ฐ | ||
</button> | ||
</div> | ||
<ul class="mt-3 pl-0"> | ||
<li class="d-flex items-center py-2 relative"> | ||
<span class="subway-line-color-dot bg-blue-400"></span> | ||
<span class="w-100 pl-6 subway-line-list-item-name" | ||
>1ํธ์ </span | ||
> | ||
<button | ||
type="button" | ||
class="bg-gray-50 text-gray-500 text-sm mr-1" | ||
> | ||
์์ | ||
</button> | ||
<button | ||
type="button" | ||
class="bg-gray-50 text-gray-500 text-sm" | ||
> | ||
์ญ์ | ||
</button> | ||
</li> | ||
<hr class="my-0" /> | ||
</ul> | ||
</div> | ||
</main> | ||
</div> | ||
</div> | ||
|
||
<div class="modal"> | ||
<div class="modal-inner p-8"> | ||
<button class="modal-close"> | ||
<svg viewbox="0 0 40 40"> | ||
<path class="close-x" d="M 10,10 L 30,30 M 30,10 L 10,30" /> | ||
</svg> | ||
</button> | ||
<header> | ||
<h2 class="text-center">๐ค๏ธ ๋ ธ์ ์ถ๊ฐ</h2> | ||
</header> | ||
<form> | ||
<div class="input-control"> | ||
<label for="subway-line-name" class="input-label" hidden | ||
>๋ ธ์ ์ด๋ฆ</label | ||
> | ||
<input | ||
type="text" | ||
id="subway-line-name" | ||
name="subway-line-name" | ||
class="input-field" | ||
placeholder="๋ ธ์ ์ด๋ฆ" | ||
required | ||
/> | ||
</div> | ||
<div class="input-control"> | ||
<label for="departure-time" class="input-label" hidden | ||
>์ฒซ์ฐจ ์๊ฐ</label | ||
> | ||
<input | ||
type="text" | ||
id="departure-time" | ||
name="departure-time" | ||
class="input-field" | ||
placeholder="์ฒซ์ฐจ์๊ฐ HH:MM" | ||
required | ||
/> | ||
<label for="departure-time" class="input-label" hidden | ||
>๋ง์ฐจ ์๊ฐ</label | ||
> | ||
<input | ||
type="text" | ||
id="arrival-time" | ||
name="arrival-time" | ||
class="input-field mx-2" | ||
placeholder="๋ง์ฐจ ์๊ฐ HH:MM" | ||
required | ||
/> | ||
<label for="interval-time" class="input-label" hidden | ||
>๊ฐ๊ฒฉ ์๊ฐ</label | ||
> | ||
<input | ||
type="text" | ||
id="interval-time" | ||
name="arrival-time" | ||
class="input-field" | ||
placeholder="๊ฐ๊ฒฉ" | ||
required | ||
/> | ||
</div> | ||
<div class="input-control"> | ||
<div> | ||
<label for="subway-line-color" class="input-label" hidden | ||
>๊ฐ๊ฒฉ ์๊ฐ</label | ||
> | ||
<input | ||
type="text" | ||
id="subway-line-color" | ||
name="subway-line-color" | ||
class="input-field" | ||
placeholder="์์์ ์๋์์ ์ ํํด์ฃผ์ธ์." | ||
disabled | ||
required | ||
/> | ||
</div> | ||
</div> | ||
<div class="subway-line-color-selector px-2"></div> | ||
<div class="d-flex justify-end mt-3"> | ||
<button | ||
type="submit" | ||
name="submit" | ||
class="input-submit bg-cyan-300" | ||
> | ||
ํ์ธ | ||
</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
<script type="module" src="/src/js/index.js"></script> | ||
<script type="module" src="/src/js/ui/modal/index.js"></script> | ||
<script type="module" src="/src/js/pages/lines.js"></script> | ||
</body> | ||
</html> |
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,65 @@ | ||
<!DOCTYPE html> | ||
<html lang="kr"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>๐ ๋ก๊ทธ์ธ</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="stylesheet" href="/src/css/index.css" /> | ||
<link rel="stylesheet" href="/src/css/pages/auth.css" /> | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<div class="d-flex justify-center mt-5 w-100"> | ||
<div class="w-100"> | ||
<header class="my-4"></header> | ||
<main class="mt-10 d-flex justify-center"> | ||
<div class="wrapper p-10 bg-white"> | ||
<div class="heading"> | ||
<h2>๐ ๋ก๊ทธ์ธ</h2> | ||
</div> | ||
<form name="login" class="form"> | ||
<div class="input-control"> | ||
<label for="email" class="input-label" hidden>์ด๋ฉ์ผ</label> | ||
<input | ||
type="email" | ||
id="email" | ||
name="email" | ||
class="input-field" | ||
placeholder="์ด๋ฉ์ผ" | ||
required | ||
/> | ||
</div> | ||
<div class="input-control"> | ||
<label for="password" class="input-label" hidden | ||
>๋น๋ฐ๋ฒํธ</label | ||
> | ||
<input | ||
type="password" | ||
id="password" | ||
name="password" | ||
class="input-field" | ||
placeholder="๋น๋ฐ๋ฒํธ" | ||
/> | ||
</div> | ||
<div class="input-control w-100"> | ||
<button | ||
type="button" | ||
name="submit" | ||
class="input-submit w-100 bg-cyan-300" | ||
> | ||
ํ์ธ | ||
</button> | ||
</div> | ||
<p class="text-gray-700 pl-2"> | ||
์์ง ํ์์ด ์๋์ ๊ฐ์? | ||
<a href="/pages/signup.html">ํ์๊ฐ์ </a> | ||
</p> | ||
</form> | ||
</div> | ||
</main> | ||
</div> | ||
</div> | ||
</div> | ||
<script type="module" src="/src/js/index.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.