Skip to content

Commit

Permalink
v0.1.0 (#37)
Browse files Browse the repository at this point in the history
* add: ๊ธฐ๋Šฅ ์ถ”๊ฐ€1

* add: ๊ธฐ๋Šฅ์ถ”๊ฐ€2

* ingress endpoint ํžˆํŠธ ์ด์Šˆ (#6)

* v0.0.0 (#4)

* add: ๊ธฐ๋Šฅ ์ถ”๊ฐ€1

* add: ๊ธฐ๋Šฅ์ถ”๊ฐ€2

* add: home ์ด๋™

* [ADD] ์˜ค๋Š˜ ํ•˜๋ฃจ๊ฐ€ ์–ผ๋งˆ๋‚˜ ์™„๋ฒฝํ•œ์ง€ ์•Œ๋ ค์ฃผ๋Š” ๋‚ด์šฉ ์ถ”๊ฐ€ (#8)

* [ADD] json ํ˜•์‹ ๋ฐ˜ํ™˜๊ฐ’ ์ถ”๊ฐ€

ํ…Œ์ŠคํŠธ์ž…๋‹ˆ๋‹ค

* [ADD] ์˜ค๋Š˜ ํ•˜๋ฃจ๊ฐ€ ์–ผ๋งˆ๋‚˜ ์™„๋ฒฝํ•œ์ง€ ์•Œ๋ ค์ฃผ๋Š” ๋‚ด์šฉ ์ถ”๊ฐ€

* add: ok ์ถ”๊ฐ€

Co-authored-by: Kyungeun <[email protected]>

* home ํŽ˜์ด์ง€์— ํ…์ŠคํŠธ ์ถ”๊ฐ€ (#12)

* add: ํ…์ŠคํŠธ ์ถ”๊ฐ€

* add: ๊ธฐ๋Šฅ ์ถ”๊ฐ€2

* ๋ธŒ๋žœ์น˜ ๋ณ€๊ฒฝ์— ๋”ฐ๋ฅธ ํ…Œ์ŠคํŠธ (#15)

* add: ํ…์ŠคํŠธ ์ถ”๊ฐ€

* add: ๊ธฐ๋Šฅ ์ถ”๊ฐ€2

* add: ํ…Œ์ŠคํŠธ๋ฅผ ์œ„ํ•œ ๋ฒ„ํŠผ ์ถ”๊ฐ€

* add: ๊ธฐ๋Šฅ ์ถ”๊ฐ€

* add: ๊ธฐ๋Šฅ์ถ”๊ฐ€2

* ๋””๋ ‰ํ† ๋ฆฌ ๊ตฌ์กฐ์„ค์ •, recoil (#27)

* init: ๋””๋ ‰ํ† ๋ฆฌ ๊ตฌ์กฐ ๋ณ€๊ฒฝ

* docs: ํด๋” ๊ตฌ์กฐ์— ๋Œ€ํ•œ ์„ค๋ช… README.md์— ์ถ”๊ฐ€

* package: recoil ํŒจํ‚ค์ง€ ์„ค์น˜

* docs: README.md ์— ํŒจํ‚ค์ง€ ๋ฒ„์ „ ๊ด€๋ จ ํ•ญ๋ชฉ ์ถ”๊ฐ€ ๋ฐ ์ปค๋ฐ‹ ๊ทœ์น™ ์ถ”๊ฐ€

* up: ์„ธ๋ฏธ ์ฝœ๋ก  ์ œ๊ฑฐ

* add: _app.tsx ํŒŒ์ผ ์ถ”๊ฐ€ ๋ฐ RecoilRoot ์‚ฌ์šฉ

* add: recoil ํ…Œ์ŠคํŠธ๋ฅผ ์œ„ํ•œ ์ฝ”๋“œ ์ž‘์„ฑ

* del: ๋‚จ์•„์žˆ๋˜ test script ์‚ญ
fix: ๋‚จ์•„์žˆ๋Š” yarn to npm ์œผ๋กœ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜
test: ํฌ๋ฉงํŒ… ๊ฒ€์‚ฌ

* test: ํฌ๋ฉงํŒ… ๊ฒ€์‚ฌ๋ฅผ ์œ„ํ•ด ํ…์ŠคํŠธ ์ถ”๊ฐ€

* fix: push์‹œ ์ž๋™ ํฌ๋ฉงํ„ฐ ํ™œ์„ฑํ™”

* docs: history ๋ฐ˜์˜

* del: commit ์œผ๋กœ ์ž๋™ ํฌ๋ฉงํ„ฐ ๋ณ€๊ฒฝ
docs: ๋ฌธ์„œ ๋ฐ˜์˜

* test: ํฌ๋ฉงํ„ฐ ๊ฒ€์‚ฌ๋ฅผ ์œ„ํ•ด ts ํŒŒ์ผ ํ™•์žฅ์ž๋กœ ๋ณ€๊ฒฝ

* docs: ํžˆ์Šคํ† ๋ฆฌ ๋ฌธ์„œ ๋ฐ˜์˜

* test: ํฌ๋ฉงํ„ฐ๋ฅผ ๊ฐ•์ œ๋กœ ํŠธ๋ฆฌ๊ฑฐ ์‹œํ‚ค๊ธฐ ์œ„ํ•ด ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค.

* style: prettier ์ธ๋ดํŠธ

* up: ์ด์ „ ํŒŒ์ผ์œผ๋กœ ์›์ƒ๋ณต๊ตฌ

Co-authored-by: Kyungeun <[email protected]>

* ์˜ค๋Š˜ ํ• ์ผ ํŽ˜์ด์ง€์˜ ์ปดํฌ๋„ŒํŠธ ๊ธฐ๋Šฅ ๊ตฌํ˜„ (#31)

* docs: ํด๋”๊ตฌ์กฐ ์ปดํฌ๋„ŒํŠธ ๋‚ด์šฉ ์ถ”๊ฐ€

* docs: #28 - ์†Œ๊ฐœ ํƒ€์ดํ‹€ ์ถ”๊ฐ€

Run Time ํ™˜๊ฒฝ์— ๋Œ€ํ•œ ๋‚ด์šฉ์€ ์ถ”ํ›„์— ์ถ”๊ฐ€ํ•  ์˜ˆ์ • ๋™์‹œ์— README ๋‚ด์šฉ๊ณผ ๋””์ž์ธ์— ๋Œ€ํ•œ ๋ถ€๋ถ„์„ ์ „์ฒด์ ์œผ๋กœ ์ˆ˜์ • ์˜ˆ์ •์ž…๋‹ˆ๋‹ค.

* fix: #29 - ํ•จ์ˆ˜ํ˜• ์ปดํฌ๋„ŒํŠธ ๋ฐ ํŽ˜์ด์ง€ ํ˜•ํƒœ ์ˆ˜์ •

* package: #19 - styled-components ํŒจํ‚ค์ง€ ์„ค์น˜

* package: #19 - styled-components SSR babel ์„ค์ •

* add: #19 styled-components๋ฅผ ์œ„ํ•œ _document.tsx ํŒŒ์ผ ์ถ”๊ฐ€

* package: #19 - styled-components babel ์„ค์ •์„ ์œ„ํ•œ ํŒจํ‚ค์ง€ ์„ค์น˜

* add: #19 ์ •์ƒ์ž‘๋™ ํ™•์ธ ์ฝ”๋“œ ์ž‘์„ฑ

* fix: babelrc ํŒŒ์ผ ์ฝ”๋“œ์ •๋ฆฌ

* add: #26 - Representative Layout ์ƒ์„ฑ ๋ฐ ํ…Œ์ŠคํŠธ ์ž‘์„ฑ

* del: ํ…Œ์ŠคํŠธ ์ฝ”๋“œ ์‚ญ์ œ

* add: #26 - Represantative Layout ์„ธ๋ถ€ ๋‚ด์šฉ ์ถ”๊ฐ€ ์ž‘์„ฑ ๋ฐ ํ…Œ์ŠคํŠธ ์ฝ”๋“œ ์ˆ˜์ •

๊ณต์šฉ ๋ ˆ์ด์•„์›ƒ์— ์‚ฌ์šฉ๋˜๋Š” ๋ ˆ์ด์•„์›ƒ ์ปดํฌ๋„ŒํŠธ ์ƒ์„ฑ

* add: ๊ณต์šฉ์Šคํƒ€์ผ ์ถ”๊ฐ€ ์ ์šฉ

* add: #22 - MainTitle ์Šคํƒ€์ผ ์ถ”๊ฐ€

* fix: ์ฝ”๋“œ ์ •๋ฆฌ

* rename: RepresentativeLayout์˜ HeaderBackground ์ด๋ฆ„ ์ˆ˜์ •, MainTitle => PageTitle ๋กœ ์ˆ˜์ •

* up: ์Šคํƒ€์ผ ์ˆ˜์ •

* up: ๊ธ€๋กœ๋ฒŒ , HeaderBackground ์Šคํƒ€์ผ ๋ณ€๊ฒฝ

* up: global style ๋ณ€๊ฒฝ

* add: #30 - ์•Œ๋ฆผ ์ปดํฌ๋„ŒํŠธ ์ œ์ž‘

๊ธฐ๋Šฅ์€ ๋™์ž‘ํ•˜์ง€ ์•Š์Œ ํ”„๋กœํ† ํƒ€์ž… ์ดํ›„ ์—…๋ฐ์ดํŠธ๋กœ ๊ธฐ๋Šฅ ์ถ”๊ฐ€

* add: #25 - ์˜ค๋Š˜ ํ• ์ผ ํŽ˜์ด์ง€ ๋ ˆ์ด์•„์›ƒ์„ ์œ„ํ•œ ๋Œ€ํ‘œ ๋ ˆ์ด์•„์›ƒ์— ๊ณต๊ฐ„ ์ƒ์„ฑ

* style: ์ฝ”๋“œ ์Šคํƒ€์ผ ์ž๋™ ์ˆ˜์ •

* add: #25 - ์˜ค๋Š˜ ํ• ์ผ ํŽ˜์ด์ง€ ๋ ˆ์ด์•„์›ƒ์˜ ์„น์…˜๋ณ„ ์Šคํƒ€์ผ ์ง€์ •

* refactor: ํŒŒ์ผ๊ณผ ๋ณ€์ˆ˜ ์ด๋ฆ„์„ ๋ฐ”๊ฟˆ

layout ์ปดํฌ๋„ŒํŠธ์˜ ๊ฐ๊ฐ์˜ ์ปดํฌ๋„ŒํŠธ๋“ค์ด ๋‹ด๊ธฐ๋Š” ๊ณต๊ฐ„์„ Section์ด๋ผ๋Š” ์ด๋ฆ„์œผ๋กœ ํ†ต์ผ

* add: #23 ์ž”๋”” ์‹ฌ๊ธฐ ์ปดํฌ๋„ŒํŠธ ์Šคํƒ€์ผ ์ถ”๊ฐ€

* package: ์„œ๋ฒ„์™€์˜ ๋น„๋™๊ธฐ ํ†ต์‹ ์„ ์œ„ํ•œ axios ํŒจํ‚ค์ง€ ์„ค์น˜

* add: #23 ์ž”๋””์‹ฌ๊ธฐ ์ปดํฌ๋„ŒํŠธ ์ œ์ž‘ ์™„๋ฃŒ

* up: layout ๋ณ€๊ฒฝ

* del: ์ด์ „์— ๋งŒ๋“ค์—ˆ๋˜ mock ํŒŒ์ผ ์‚ญ์ œ

* add: #24 - ํ• ์ผ ๋ชฉ๋ก ๋ฆฌ์ŠคํŠธ ์Šคํƒ€์ผ ์ œ์ž‘

* add: test์šฉ json ํŒŒ์ผ ์ถ”๊ฐ€

* up: style ์ˆ˜์ •

* add: #24 - TodoItem์šฉ ํƒ€์ž… ์ถ”๊ฐ€

* up: ํ…Œ์ŠคํŠธ์šฉ ๋ฐ์ดํ„ฐ ์‚ฌ์šฉ์„ ์œ„ํ•˜์—ฌ ์ˆ˜์ •

๊ธฐ์กด์—๋Š” ๋กœ์ปฌ mock ์„œ๋ฒ„๋ฅผ ํ†ตํ•˜์—ฌ ์ˆ˜ํ–‰ํ•˜์˜€์ง€๋งŒ ํ˜„์žฌ ์„œ๋ฒ„์— ์˜ฌ๋ ธ์„ ๊ฒฝ์šฐ ์‹คํ–‰๋˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์—
์ž„์‹œ๋กœ jsonํŒŒ์ผ์„ ์ฝ๋„๋ก ์ˆ˜์ •

* refector: ๋ณ€์ˆ˜๋ช… ์ˆ˜์ • ๋ฐ ์ค„๋ฐ”๊ฟˆ ์ˆ˜์ •

* add: #24 - ์˜ค๋Š˜ ํ• ์ผ ๋ชฉ๋ก์„ ๊ฐ€์ ธ์˜ค๋Š” axios ์ฝ”๋“œ์™€ ์ƒํƒœ ์ฝ”๋“œ ์ž‘์„ฑ

* add: #24 - ์˜ค๋Š˜ ํ• ์ผ ๋ชฉ๋ก์„ ๋ณด์—ฌ์ฃผ๋Š” ์ปดํฌ๋„ŒํŠธ ์ž‘์„ฑ

* add: #24 - ํด๋ฆญ์— ๋Œ€ํ•œ ํ›… ์ž‘์„ฑ

* add: #24 - ๋ ˆ์ด์•„์›ƒ์— ์˜ค๋Š˜ ํ• ์ผ ๋ชฉ๋ก์ด ๋‚˜์˜ค๋Š” ์ปดํฌ๋„ŒํŠธ ์ถ”๊ฐ€

* add: #24 - ์˜ค๋Š˜ ํ• ์ผ์— ๋Œ€ํ•œ ๋…ธ๋“œ ์ปดํฌ๋„ŒํŠธ ์ œ์ž‘

* refactor: ํ•จ์ˆ˜ ๋ช… ๋ณ€๊ฒฝ

* add: #32 svg ์•„์ด์ฝ˜์˜ ํƒ€์ž…๊ณผ ๊ฐ๊ฐ์˜ ์•„์ด์ฝ˜์„ ์ €์žฅํ•˜๋Š” static ํด๋” ์ƒ์„ฑ

* rename utils์—์„œ libs๋กœ ๋ณ€๊ฒฝ

* refactor: urils ์—์„œ libs๋กœ ์ˆ˜์ •

* style: ๋ฐ˜์˜๋˜์ง€ ์•Š์€ prettier ์ ์šฉ

* up: ์„œ๋ฉด์œผ๋กœ ์ง„ํ–‰๋œ ํ”ผ๋“œ๋ฐฑ ๋ฐ˜์˜

* #32 theme์ ์šฉ์„ ์œ„ํ•œ ์ฝ”๋“œ ์ž‘์„ฑ

* up: ํŒŒ๋น„์ฝ˜ ์•„์ด์ฝ˜ Belf๋กœ ๋ณ€๊ฒฝ

* refactor: recoil ๋„ค์ด๋ฐ ์ปจ๋ฒค์…˜์— ๋งž์ถฐ ํ•จ์ˆ˜๋ช… ์ˆ˜์ •

* refactor: ์ „์—ญ ์Šคํƒ€์ผ ์ด์™ธ์˜ ์Šคํƒ€์ผ์„ ์ปดํฌ๋„ŒํŠธ ๋‚ด๋ถ€์— ๋„ฃ์Œ

* refactor: ์ˆ˜์ •

* refactor: layout ๋””๋ ‰ํ„ฐ๋ฆฌ Components ๋””๋ ‰ํ† ๋ฆฌ ๋ฐ–์œผ๋กœ ๋บŒ

* refactor: Assets ํด๋”๋ฅผ ๋งŒ๋“ค์–ด Icons ํด๋”๋ฅผ ๋„ฃ์–ด์คŒ

* refactor: Assets => assets

* refactor: ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” ์ฝ”๋“œ ์‚ญ์ œ

* refactor: ๋ ˆ์ด์•„์›ƒ ์˜์กด์„ฑ์ด ์—†๋„๋ก ์ˆ˜์ •

* refactor: recoil ์„ ์–ธ ๋ฐฉ์‹ ์ˆ˜์ •

* refactor: asset ์ด๋ฆ„ ์ˆ˜์ •1

* refactor: asset ์ด๋ฆ„ ์ˆ˜์ •1

* refactor: asset ์ด๋ฆ„ ์ˆ˜์ •1

Co-authored-by: Kyungeun <[email protected]>

Co-authored-by: Kyungeun <[email protected]>
Co-authored-by: Kyungeun Park <[email protected]>
Co-authored-by: JP3Pe <[email protected]>
  • Loading branch information
4 people authored May 22, 2021
1 parent 6023cfe commit 5dc8e7c
Show file tree
Hide file tree
Showing 51 changed files with 2,095 additions and 216 deletions.
11 changes: 10 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"presets": ["next/babel"]
"presets": ["next/babel"],
"plugins": [
[
"styled-components",
{
"ssr": true,
"displayName": true
}
]
]
}
51 changes: 49 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# ์†Œ๊ฐœ

Belf ํ”„๋กœ์ ํŠธ์˜ Front ์„œ๋ฒ„์ž…๋‹ˆ๋‹ค.

# front-server

front-end๋ฅผ ์œ„ํ•œ repo์ž…๋‹ˆ๋‹ค.
Expand All @@ -17,5 +21,48 @@ front-end๋ฅผ ์œ„ํ•œ repo์ž…๋‹ˆ๋‹ค.
npx create-next-app --example with-typescript-eslint-jest front-server
```

1. `.git`์„ ์ œ์™ธํ•˜๊ณ  ์ˆจ๊น€ํŒŒ์ผ๊นŒ์ง€ ๋ชจ๋‘ ์ฐพ์•„์„œ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ํ—€์Šต๋‹ˆ๋‹ค.
1. jest๋Š” ์‚ฌ์šฉํ•˜์ง€ ์•Š์Œ์œผ๋กœ ์˜์กด์„ฑ์„ ์ œ๊ฑฐํ•˜์˜€์Šต๋‹ˆ๋‹ค.
1. `.git` ์„ ์ œ์™ธํ•˜๊ณ  ์ˆจ๊น€ํŒŒ์ผ๊นŒ์ง€ ๋ชจ๋‘ ์ฐพ์•„์„œ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜
1. yarn ๋ถ€๋ถ„ ๋ชจ๋‘ npm ์œผ๋กœ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜
1. jest๋Š” ์‚ฌ์šฉํ•˜์ง€ ์•Š์Œ์œผ๋กœ ํŒŒ์ผ ๋ฐ ์˜์กด์„ฑ์„ ์ œ๊ฑฐ

## ํด๋” ๊ตฌ์กฐ

```text
./
โ”œโ”€โ”€ hooks
โ”œโ”€โ”€ pages
โ”œโ”€โ”€ public
โ”œโ”€โ”€ states
โ”œโ”€โ”€ styles
โ””โ”€โ”€ utils
```

- hooks : ๋ชจ๋“  ์ปค์Šคํ…€ ํ›…
- pages : ์™ธ๋ถ€ ๋…ธ์ถœ ํŽ˜์ด์ง€
- public : static ์—์…‹
- states : recoil ์ „์—ญ ์ƒํƒœ
- styles : ์Šคํƒ€์ผ
- utils : ๊ธฐ๋Šฅ ๋ฉ”์†Œ๋“œ๋“ค (axios ํฌํ•จ)
- components : ์ปดํฌ๋„ŒํŠธ๋“ค

# Commit message ์ปจ๋ฒค์…˜

history๋ฅผ ํŠธ๋ž˜ํ‚น ํ•  ์ˆ˜ ์žˆ๋„๋ก ํฐ ์ด๋ฒคํŠธ๋งˆ๋‹ค ์—ฌ๋Ÿฌ ๋ฒˆ ๊ตฌ๋ถ„ํ•˜์—ฌ ์ปค๋ฐ‹ํ•˜๋„๋ก ํ•ฉ๋‹ˆ๋‹ค.

> ํ•ต์‹ฌ ๊ฐ€์น˜๋Š” `commit type`๋งŒ์œผ๋กœ ํ•ด๋‹น ์ปค๋ฐ‹์„ ์œ ์ถ”ํ•  ์ˆ˜ ์žˆ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
| type | ๋‚ด์šฉ |
| -------- | ---------------------------------------------------------------------- |
| init | hello, world ์ˆ˜์ค€์˜ ๋™์ž‘์ด ๊ฒ€์ฆ๋œ ์ฒซ ํŒŒ์ผ์„ ์ถ”๊ฐ€ํ•  ๋•Œ |
| add | ์ฝ”๋“œ๋‚˜ ํ…Œ์ŠคํŠธ, ์˜ˆ์ œ, ๋ฌธ์„œ ๋“ฑ์˜ ์ถ”๊ฐ€๊ฐ€ ์žˆ์„ ๋•Œ |
| del | ํŒŒ์ผ ๋˜๋Š” ์ฝ”๋“œ, ๋ฆฌ์†Œ์Šค ์ œ๊ฑฐ |
| up | ์›๋ž˜๋„ ์ •์ƒ๋™์ž‘ ํ•˜์ง€๋งŒ ์ถ”๊ฐ€ ๋ณด์•ˆ ํ•˜๋Š” ๊ฐœ๋… |
| fix | ์˜ฌ๋ฐ”๋ฅด์ง€ ์•Š์€ ๋™์ž‘์„ ๊ณ ์นœ ๊ฒฝ์šฐ์— |
| docs | ๋ฌธ์„œ ์ˆ˜์ • |
| refactor | ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง (๋ณ€์ˆ˜๋ช… ์ˆ˜์ • ๋“ฑ) ๊ธฐ๋Šฅ์—๋Š” ๋ณ€ํ•จ์ด ์—†์–ด์•ผํ•ฉ๋‹ˆ๋‹ค |
| style | ์ฝ”๋“œ ์ธ๋ดํŠธ ๋ณ€๊ฒฝ์œผ๋กœ ์ธํ•œ ์ฝ”๋“œ ์Šคํƒ€์ผ ๋ณ€๊ฒฝ, ์ฝ”๋“œ ์ž์ฒด ๋ณ€๊ฒฝ์ด ์—†๋Š” ๊ฒฝ์šฐ |
| ci/cd | ci/cd์™€ ๊ฐ™์€ ํ–‰์œ„๋ฅผ ๊ฐ•์ œ๋กœ ์ˆ˜ํ–‰ํ•ด์•ผ ํ•  ๋•Œ (๊ฐ•์ œ๋กœ ์ˆ˜ํ–‰ํ•œ ์ด์œ  ์ž‘์„ฑ) |
| use | ํŠน๋ณ„ํžˆ ๋ฌด์–ธ๊ฐ€๋ฅผ ์‚ฌ์šฉํ•ด ๊ตฌํ˜„์„ ํ•˜๋Š” ๊ฒฝ์šฐ |
| move | ์ฝ”๋“œ ๋ฐ ํŒŒ์ผ์˜ ์ด๋™์ด ์žˆ์„ ๋•Œ |
| rename | ํŒŒ์ผ๋ช…์ด ๋ณ€๊ฒฝ๋  ๋•Œ |
| package | ํŒจํ‚ค์ง€๋ฅผ ์ถ”๊ฐ€ํ–ˆ์„ ๋•Œ |
11 changes: 11 additions & 0 deletions assets/icons/bell.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Icon } from "../../libs/type/Icon";

const bigCheck: Icon = {
d:
"M15.45,9.32a4.61,4.61,0,0,0-.22-.51L11.78,2.12a3.59,3.59,0,0,0-6.55,0L1.78,8.81a4.67,4.67,0,0,0-.23.51A2.49,2.49,0,0,0,0,11.7v1.39a2.37,2.37,0,0,0,2.23,2.49h3.7C5.93,16.36,7.08,17,8.5,17a3.8,3.8,0,0,0,2.08-.58,1,1,0,0,0,.49-.84h3.7A2.37,2.37,0,0,0,17,13.09V11.7A2.49,2.49,0,0,0,15.45,9.32Z",
width: 17,
height: 17,
fill: "#ffffff",
};

export default bigCheck;
11 changes: 11 additions & 0 deletions assets/icons/bigCheck.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Icon } from "../../libs/type/Icon";

const bigCheck: Icon = {
d:
"M9.79,22.23.75,13a2.63,2.63,0,0,1,0-3.68,2.53,2.53,0,0,1,3.57,0l0,0,7.42,7.56L27.64.76a2.51,2.51,0,0,1,3.56,0l.05,0a2.63,2.63,0,0,1,0,3.68L13.77,22.24a2.49,2.49,0,0,1-2,.75h-.19A2.5,2.5,0,0,1,9.79,22.23Z",
width: 32,
height: 23,
fill: "#29A4FF",
};

export default bigCheck;
12 changes: 12 additions & 0 deletions assets/icons/bigDelete.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Icon } from "../../libs/type/Icon";

const bigDelete: Icon = {
d:
"M18.67,22.26,11.5,15.09,4.33,22.26A2.54,2.54,0,1,1,.74,18.67h0L7.91,11.5.74,4.33A2.54,2.54,0,0,1,.74.74h0a2.54,2.54,0,0,1,3.59,0L11.5,7.91,18.67.74a2.54,2.54,0,0,1,3.59,0h0a2.54,2.54,0,0,1,0,3.59L15.09,11.5l7.17,7.17a2.54,2.54,0,0,1,0,3.59,2.55,2.55,0,0,1-3.59,0Z",
width: 23,
height: 23,
fill: "#FF587E",
viewBox: "0 0 23 23",
};

export default bigDelete;
16 changes: 16 additions & 0 deletions components/NotificationButton/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import bell from "../../assets/icons/bell";

import { default as S } from "./style";

function NotificationButton(): JSX.Element {
return (
<S.Frame>
<S.Display />
<S.Icon {...bell}>
<path d={bell.d} />
</S.Icon>
</S.Frame>
);
}

export default NotificationButton;
34 changes: 34 additions & 0 deletions components/NotificationButton/style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import styled from "styled-components";
import Icon from "../../styles/Icon";

const Display = styled.div`
background-color: #ff924a;
border-radius: 50%;
width: 8px;
height: 8px;
position: absolute;
transform: translate(0%, -50%);
left: 19px;
top: 13px;
z-index: 1;
`;

const Frame = styled.div`
background-color: rgba(255, 255, 255, 0.45);
border-radius: 10px;
width: 36px;
height: 36px;
position: absolute;
display: inline-block;
right: 0;
transform: translateY(-50%);
top: 50%;
`;

const style = {
Frame: Frame,
Icon: Icon,
Display: Display,
};

export default style;
11 changes: 11 additions & 0 deletions components/PageTitle/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { default as S } from "./style";

type props = {
titleText: string;
};

function PageTitle({ titleText }: props): JSX.Element {
return <S.Title>{titleText}</S.Title>;
}

export default PageTitle;
13 changes: 13 additions & 0 deletions components/PageTitle/style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import styled from "styled-components";

const Title = styled.a`
font-size: 30px;
font-weight: bold;
color: white;
`;

const style = {
Title: Title,
};

export default style;
43 changes: 43 additions & 0 deletions components/PlantingGlass/Component.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { useRecoilValue } from "recoil";

import { getCountAvgSelector, getPlatingGlass2dArraySelector } from "../../states/plantingGlass";

import { default as S } from "./style";

import { Glass } from "../../libs/type/PlantingGlass";

function colorGenerator(avg: number, value: number): string {
if (value === 0) {
return "#EBEDF0";
} else if (value <= avg / 2) {
return "#FFEDE2";
} else if (value <= avg) {
return "#FFD0B1";
} else if (value <= avg + avg / 2) {
return "#FF9E5F";
} else {
return "#FF8433";
}
}

function Component(): JSX.Element {
const array = useRecoilValue(getPlatingGlass2dArraySelector);
const avg = useRecoilValue(getCountAvgSelector);

return (
<S.Card>
<S.Grid>
{array.map((e: Glass[], i: number) => (
<S.WeekItem key={"i_" + i}>
<S.WeekGrid key={"g_" + i}>
{e.map((item: Glass, j: number) => (
<S.DayItem key={i + "-" + j} color={colorGenerator(avg, item.count)} id={item.date} />
))}
</S.WeekGrid>
</S.WeekItem>
))}
</S.Grid>
</S.Card>
);
}
export default Component;
20 changes: 20 additions & 0 deletions components/PlantingGlass/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { useRecoilValueLoadable } from "recoil";

import { getPlantingGlassSelector } from "../../states/plantingGlass";

import Component from "./Component";

function PlantingGlass(): JSX.Element {
const con = useRecoilValueLoadable(getPlantingGlassSelector);

switch (con.state) {
case "hasValue":
return <Component />;
case "loading":
return <>loading...</>;
case "hasError":
return <>error...</>;
}
}

export default PlantingGlass;
55 changes: 55 additions & 0 deletions components/PlantingGlass/style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import styled, { css } from "styled-components";

const Card = styled.div`
background-color: white;
padding: 3% 4%;
box-sizing: border-box;
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
border-radius: 10px;
height: 110px;
`;

const DayItem = styled.div<{ color: string }>`
display: flex;
justify-content: center;
${(props) => {
if (props.color == "#EBEDF0") {
return css`
background-color: ${props.color};
border: solid 1px #e0e2e6;
`;
} else {
return css`
background-color: ${props.color};
`;
}
}}
border-radius: 3px;
`;

const Grid = styled.div`
display: grid;
grid-template-columns: repeat(24, 3%);
grid-gap: 1.215%;
`;

const WeekGrid = styled.div`
display: grid;
grid-template-columns: 10px;
grid-template-rows: repeat(7, 10px);
grid-gap: 4px;
`;

const WeekItem = styled.div`
display: flex;
`;

const style = {
Card: Card,
Grid: Grid,
WeekGrid: WeekGrid,
WeekItem: WeekItem,
DayItem: DayItem,
};

export default style;
52 changes: 52 additions & 0 deletions components/TodayTodoItem/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import { useState } from "react";

import useClick from "../../hooks/useClick";

import bigCheck from "../../assets/icons/bigCheck";
import bigDelete from "../../assets/icons/bigDelete";

import { default as S } from "./style";

import { TodoItem } from "../../libs/type/TodoTodayItem/indes";

type props = {
todoItem: TodoItem;
};

function TodayTodoItem({ todoItem }: props): JSX.Element {
const [itemLeft, setItemLeft] = useState<number>(0);

const refClickComponent = useClick(() => {
if (itemLeft === 0) {
setItemLeft(-120);
} else {
setItemLeft(0);
}
});

return (
<S.TodoItemSection>
<S.TodoItemCard ref={refClickComponent} left={itemLeft}>
<S.TodoTitleSection>
<S.CourseColor bgColor={todoItem.color} />
<S.TodoTitle>{todoItem.reminder_title}</S.TodoTitle>
</S.TodoTitleSection>
<S.CourseTitle>{todoItem.course_title}</S.CourseTitle>
</S.TodoItemCard>
<S.ButtonSection>
<S.EventButton>
<S.Icon {...bigCheck}>
<path d={bigCheck.d} />
</S.Icon>
</S.EventButton>
<S.EventButton>
<S.Icon {...bigDelete}>
<path d={bigDelete.d} />
</S.Icon>
</S.EventButton>
</S.ButtonSection>
</S.TodoItemSection>
);
}

export default TodayTodoItem;
Loading

0 comments on commit 5dc8e7c

Please sign in to comment.