Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kdt0 nam hyeon jun #58

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
151 changes: 151 additions & 0 deletions .firebase/hosting..cache

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions .firebase/hosting.cHVibGlj.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
404.html,1692673802339,daa499dd96d8229e73235345702ba32f0793f0c8e5c0d30e40e37a5872be57aa
detail.html,1693211975306,7e8f25e10c7a72901dc038f8cdac37579c84fe90dedda0f4953171dc581a52a2
enroll.html,1693211979483,99e6c2ddb16f1f655207dbf1c941f68531254911140ef72d44957722185f3dd1
index.html,1693211984539,2651ff09fa9692ebedd724096ae66da78b0b62083a2227eeb3e8810e497e5df6
update.html,1693211991160,2b2235e89b607073e4b63f60e5ed6493a154bc81c365e87b13aaf42bf6071acb
css/detail.css,1692673329633,ed08046fb2102959c49f65f877b7cabdde2cccc1bc100e4ebb7c7723e0c0b1a2
css/enroll.css,1692673329635,ff7bbafc00a76de16bdce2a68a2a00d6c98aca446857fcfb380de35f75006431
css/main.css,1693216526029,f265a2c8f68f0fad5b5d60b981e4a4f43b8e8ffa202ebcb2c9cbaeddef92f7bb
css/update.css,1693212704193,93efc8d236665521f505ad805a0c2355e3d5a9c4fed98a8251359b095959f705
js/detail.js,1692673329634,d87a9194a012a4a6f211bd62f6ae813519218604269fa52c75bed48e644ecb7f
js/enroll.js,1692673329636,5b9616879aa9c046555e50a7e4c5401f206a2458c907090f689930f9e54781b3
js/firebase.js,1693216618204,00c0e8c0028acad19339226f0328bdd4253859b8ac4e3589dc677b8108324732
js/image.js,1692673329638,9ec96abaf0b792c69999bfbb860e2baa411e28c533e378d52225c331cc073e8e
js/index.js,1692675926167,0913a6944235148484748c0d1f7afbe10ab4b9b884ae809220ec0f4c4425163c
js/update.js,1692673329642,d0fb7d8414588833448f628387caa66262d482765c1193acda637c28914fa9da
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "nhj-js-homework"
}
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.vscode/
node_modules
package.json
package-lock.json
76 changes: 43 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,60 @@

# :camera: 직원 사진 관리 μ„œλΉ„μŠ€
# :weight_lifting_man: ν—¬μŠ€μž₯ νšŒμ› 관리 μ„œλΉ„μŠ€

μ§μ›λ“€μ˜ 사진을 관리할 수 μžˆλŠ” 사진 κ΄€λ¦¬μž μ„œλΉ„μŠ€λ₯Ό λ§Œλ“€μ–΄ λ³΄μ„Έμš”.

과제 μˆ˜ν–‰ 및 리뷰 기간은 별도 곡지λ₯Ό μ°Έκ³ ν•˜μ„Έμš”!
## [과제 μˆ˜ν–‰ 및 제좜 방법]
1. ν˜„μž¬ μ €μž₯μ†Œλ₯Ό λ‘œμ»¬μ— 클둠(Clone)ν•©λ‹ˆλ‹€.
2. μžμ‹ μ˜ λ³Έλͺ…μœΌλ‘œ 브랜치λ₯Ό μƒμ„±ν•©λ‹ˆλ‹€.(ꡬ뢄 κ°€λŠ₯ν•˜λ„λ‘ λ³Έλͺ…을 κΌ­ νŒŒμŠ€μΉΌμΌ€μ΄μŠ€λ‘œ ν‘œμ‹œν•˜μ„Έμš”, git branch KDT0_이름)
3. μžμ‹ μ˜ λ³Έλͺ… λΈŒλžœμΉ˜μ—μ„œ 과제λ₯Ό μˆ˜ν–‰ν•©λ‹ˆλ‹€.
4. 과제 μˆ˜ν–‰μ΄ μ™„λ£Œλ˜λ©΄, μžμ‹ μ˜ λ³Έλͺ… 브랜치λ₯Ό 원격 μ €μž₯μ†Œμ— ν‘Έμ‹œ(Push)ν•©λ‹ˆλ‹€.(main λΈŒλžœμΉ˜μ— ν‘Έμ‹œν•˜μ§€ μ•Šλ„λ‘ κΌ­ μ£Όμ˜ν•˜μ„Έμš”, git push origin KDT0_이름)
5. μ €μž₯μ†Œμ—μ„œ main 브랜치λ₯Ό λŒ€μƒμœΌλ‘œ Pull Request μƒμ„±ν•˜λ©΄, 과제 제좜이 μ™„λ£Œλ©λ‹ˆλ‹€!(E.g, main <== KDT0_이름)
6. Pull Request 링크λ₯Ό LMSλ‘œλ„ μ œμΆœν•΄ μ£Όμ…”μ•Ό ν•©λ‹ˆλ‹€.
7. main ν˜Ήμ€ λ‹€λ₯Έ μ‚¬λžŒμ˜ 브랜치둜 μ ˆλŒ€ λ³‘ν•©ν•˜μ§€ μ•Šλ„λ‘ μ£Όμ˜ν•˜μ„Έμš”!
8. Pull Requestμ—μ„œ λ³΄μ΄λŠ” μ„€λͺ…을 λ‹€λ₯Έ μ‚¬λžŒλ“€μ΄ μ΄ν•΄ν•˜κΈ° 쉽도둝 κΌΌκΌΌν•˜κ²Œ μž‘μ„±ν•˜μ„Έμš”!
9. Pull Requestμ—μ„œ 과제 제좜 ν›„ μ ˆλŒ€ 병합(Merge)ν•˜μ§€ μ•Šλ„λ‘ μ£Όμ˜ν•˜μ„Έμš”!
10. 과제 μˆ˜ν–‰ 및 제좜 κ³Όμ •μ—μ„œ λ¬Έμ œκ°€ λ°œμƒν•œ 경우, λ°”λ‘œ λ‹΄λ‹Ή λ©˜ν† λ‚˜ κ°•μ‚¬μ—μ„œ μ–˜κΈ°ν•˜μ„Έμš”!
## 배포 μ£Όμ†Œ
https://velvety-puppy-c1029b.netlify.app/

## [ν•„μˆ˜ μš”κ΅¬μ‚¬ν•­]
- β€œAWS S3 / Firebase 같은 μ„œλΉ„μŠ€β€λ₯Ό μ΄μš©ν•˜μ—¬ 사진을 관리할 수 μžˆλŠ” νŽ˜μ΄μ§€λ₯Ό κ΅¬ν˜„ν•˜μ„Έμš”.
- ν”„λ‘œν•„ νŽ˜μ΄μ§€λ₯Ό κ°œλ°œν•˜μ„Έμš”.
- 슀크둀이 κ°€λŠ₯ν•œ ν˜•νƒœμ˜ λ¦¬μŠ€νŒ… νŽ˜μ΄μ§€λ₯Ό κ°œλ°œν•˜μ„Έμš”.
- 전체 νŽ˜μ΄μ§€ λ°μŠ€ν¬νƒ‘-λͺ¨λ°”일 λ°˜μ‘ν˜• νŽ˜μ΄μ§€λ₯Ό κ°œλ°œν•˜μ„Έμš”.
- 사진을 등둝, μˆ˜μ •, μ‚­μ œκ°€ κ°€λŠ₯ν•΄μ•Ό ν•©λ‹ˆλ‹€.
- μœ μ € ν”Œλ‘œμš°λ₯Ό μ œμž‘ν•˜μ—¬ λ¦¬λ“œλ―Έμ— μΆ”κ°€ν•˜μ„Έμš”.
* CSS
* μ• λ‹ˆλ©”μ΄μ…˜ κ΅¬ν˜„
* μƒλŒ€μˆ˜μΉ˜ μ‚¬μš©(rem, em)
* JavaScript
* DOM event μ‘°μž‘
- [X] β€œAWS S3 / Firebase 같은 μ„œλΉ„μŠ€β€λ₯Ό μ΄μš©ν•˜μ—¬ 사진을 관리할 수 μžˆλŠ” νŽ˜μ΄μ§€λ₯Ό κ΅¬ν˜„ν•˜μ„Έμš”.
- [X] ν”„λ‘œν•„ νŽ˜μ΄μ§€λ₯Ό κ°œλ°œν•˜μ„Έμš”.
- [X] 슀크둀이 κ°€λŠ₯ν•œ ν˜•νƒœμ˜ λ¦¬μŠ€νŒ… νŽ˜μ΄μ§€λ₯Ό κ°œλ°œν•˜μ„Έμš”.
- [X] 전체 νŽ˜μ΄μ§€ λ°μŠ€ν¬νƒ‘-λͺ¨λ°”일 λ°˜μ‘ν˜• νŽ˜μ΄μ§€λ₯Ό κ°œλ°œν•˜μ„Έμš”.
- [X] 사진을 등둝, μˆ˜μ •, μ‚­μ œκ°€ κ°€λŠ₯ν•΄μ•Ό ν•©λ‹ˆλ‹€.
- [X] μœ μ € ν”Œλ‘œμš°λ₯Ό μ œμž‘ν•˜μ—¬ λ¦¬λ“œλ―Έμ— μΆ”κ°€ν•˜μ„Έμš”.
- CSS
- [X] μ• λ‹ˆλ©”μ΄μ…˜ κ΅¬ν˜„
- [X] μƒλŒ€μˆ˜μΉ˜ μ‚¬μš©(rem, em)
- JavaScript
- [X] DOM event μ‘°μž‘

## [선택 μš”κ΅¬μ‚¬ν•­]
- 사진 관리 νŽ˜μ΄μ§€μ™€ κ΄€λ ¨λœ 기타 κΈ°λŠ₯도 κ³ λ €ν•΄ λ³΄μ„Έμš”.
- νŽ˜μ΄μ§€κ°€ 보여지기 전에 λ‘œλ”© μ• λ‹ˆλ©”μ΄μ…˜μ΄ 보이도둝 λ§Œλ“€μ–΄λ³΄μ„Έμš”.
- 직원을 등둝, μˆ˜μ •, μ‚­μ œκ°€ κ°€λŠ₯ν•˜κ²Œ ν•΄λ³΄μ„Έμš”.
- 직원 검색 κΈ°λŠ₯을 μΆ”κ°€ν•΄ λ³΄μ„Έμš”.
- [X] 직원을 등둝, μˆ˜μ •, μ‚­μ œκ°€ κ°€λŠ₯ν•˜κ²Œ ν•΄λ³΄μ„Έμš”.
- infinity scroll κΈ°λŠ₯을 μΆ”κ°€ν•΄ λ³΄μ„Έμš”.
- 사진을 νŽΈμ§‘ν•  수 μžˆλŠ” κΈ°λŠ₯을 μΆ”κ°€ν•΄ λ³΄μ„Έμš”.
- LocalStorage μ‚¬μš©

## [ν™”λ©΄ μ˜ˆμ‹œ]
![111](https://github.com/KDT1-FE/Y_FE_JAVASCRIPT_PICTURE/assets/96465306/f1afed4b-547e-4289-8e83-2f0fa188cccb)
![222](https://github.com/KDT1-FE/Y_FE_JAVASCRIPT_PICTURE/assets/96465306/72f1ea35-8965-4050-9d0b-b9f27c933f64)
## μœ μ € ν”Œλ‘œμš°
![user flow](./assets/images/flow%20chart.JPG)

## ν™”λ©΄ μ˜ˆμ‹œ
### 메인 νŽ˜μ΄μ§€
![메인 ν™”λ©΄](./assets/images/enroll%20info.JPG)
- νšŒμ› 전체 정보 μ—΄λžŒμ΄ κ°€λŠ₯ν•œ 메인 νŽ˜μ΄μ§€μž…λ‹ˆλ‹€.
- 쒌츑 μƒλ‹¨μ˜ 등둝 λ²„νŠΌμ„ 톡해 νšŒμ› μ‹ κ·œ 등둝이 κ°€λŠ₯ν•˜κ³ , μ²΄ν¬λ°•μŠ€λ‘œ νšŒμ›μ„ μ„ νƒν•œ ν›„ μ‚­μ œν•  수 μžˆμŠ΅λ‹ˆλ‹€.
- νšŒμ› λͺ©λ‘ μ˜μ—­ λ‚΄μ—μ„œ νšŒμ› 번호λ₯Ό 선택해, ν•΄λ‹Ή νšŒμ›μ˜ ν”„λ‘œν•„ νŽ˜μ΄μ§€λ‘œ 이동할 수 μžˆμŠ΅λ‹ˆλ‹€.

### 등둝 νŽ˜μ΄μ§€
![등둝 ν™”λ©΄](./assets/images/enroll%20page.JPG)
- νšŒμ› 정보와, 사진 등둝이 κ°€λŠ₯ν•©λ‹ˆλ‹€.
- μ‚­μ œ λ²„νŠΌμ„ 톡해, λ“±λ‘ν•œ 사진을 μ‚­μ œν•  수 μžˆμŠ΅λ‹ˆλ‹€.
- νšŒμ› 정보와 사진 등둝을 μ™„λ£Œν•œ λ’€, 우츑 μƒλ‹¨μ˜ 등둝 λ²„νŠΌμ„ 톡해 메인 νŽ˜μ΄μ§€λ‘œ 이동할 수 μžˆμŠ΅λ‹ˆλ‹€.

## [흐름]
![333](https://github.com/KDT1-FE/Y_FE_JAVASCRIPT_PICTURE/assets/96465306/44707a0e-6c5a-4d04-a6bd-58e46f02a9a9)
### ν”„λ‘œν•„ νŽ˜μ΄μ§€
![ν”„λ‘œν•„ ν™”λ©΄](./assets/images/detail.JPG)
- λ“±λ‘ν•œ νšŒμ›μ˜ 정보λ₯Ό μ—΄λžŒν•  수 μžˆμŠ΅λ‹ˆλ‹€.
- λ“±λ‘λœ μ •λ³΄λŠ” μˆ˜μ •ν•  수 μ—†μœΌλ©°, νšŒμ› 정보 μˆ˜μ •μ΄ ν•„μš”ν•œ 경우 우츑 μƒλ‹¨μ˜ μˆ˜μ • λ²„νŠΌμ„ 톡해 μˆ˜μ • νŽ˜μ΄μ§€λ‘œ μ§„μž…ν•©λ‹ˆλ‹€.

### μˆ˜μ • νŽ˜μ΄μ§€
![μˆ˜μ • ν™”λ©΄](./assets/images/update.JPG)
- λ“±λ‘ν•œ νšŒμ›μ˜ 정보λ₯Ό μˆ˜μ •ν•  수 μžˆμŠ΅λ‹ˆλ‹€.
- 사진 ν•˜λ‹¨μ˜ μ‚­μ œ λ²„νŠΌμ„ 눌러 κΈ°μ‘΄ λ“±λ‘λœ 사진을 μ‚­μ œν•˜κ³ , μƒˆλ‘œμš΄ 사진을 λ“±λ‘μ‹œν‚¬ 수 μžˆμŠ΅λ‹ˆλ‹€.
- ν•˜λ‹¨μ˜ 일지 μ˜μ—­ λ‚΄μ—μ„œ μ„Έμ…˜ μΆ”κ°€ λ²„νŠΌμ„ 톡해 λ‚΄μš©μ„ μž…λ ₯ν•˜κ³ , μ„Έμ…˜ μ €μž₯ λ²„νŠΌμ„ 톡해 λ‚΄μš©μ„ μ €μž₯ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

## λŠλ‚€ 점

ν•„μˆ˜ κΈ°λŠ₯을 λ¨Όμ € λΉ λ₯΄κ²Œ μ™„μ„±μ‹œμΌœ 놓은 λ‹€μŒ 이후 κΈ°λŠ₯ κ΅¬ν˜„μ„ μ§„ν–‰ν–ˆμ–΄μ•Ό ν–ˆλŠ”λ°, μ²˜μŒλΆ€ν„° κΈ°νšμ„ λ„ˆλ¬΄ 크게 작고 진행해 속도도 λ‚˜μ§€ μ•Šμ•˜κ³ , λͺ©ν‘œλ‘œ ν•œ κΈ°λŠ₯듀도 μ „λΆ€ κ΅¬ν˜„ν•˜μ§€ λͺ»ν•΄ 슀크립트 λΆ€λΆ„λ§Œ λΉ λ₯΄κ²Œ μ§„ν–‰ν•˜μ˜€κ³ , css μŠ€νƒ€μΌλ§ 뢀뢄은 많이 μ§„ν–‰ν•˜μ§€ λͺ»ν–ˆλ˜ 점이 μ•„μ‰¬μ› μŠ΅λ‹ˆλ‹€.

ν˜„μž¬ ν•„μˆ˜ κΈ°λŠ₯ 쀑 λ°μŠ€ν¬νƒ‘-λͺ¨λ°”일 λ°˜μ‘ν˜• 개발 뢀뢄은 λ―Έκ΅¬ν˜„ μƒνƒœμž…λ‹ˆλ‹€.
μΆ”ν›„ λ¦¬νŒ©ν† λ§ μ§„ν–‰ν•˜λ©΄μ„œ κ΅¬ν˜„ μ˜ˆμ •μž…λ‹ˆλ‹€.
Binary file added assets/images/detail.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/enroll info.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/enroll page.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/flow chart.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/index page.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/update after.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/update.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}
33 changes: 33 additions & 0 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page Not Found</title>

<style media="screen">
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px 16px; border-radius: 3px; }
#message h3 { color: #888; font-weight: normal; font-size: 16px; margin: 16px 0 12px; }
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
@media (max-width: 600px) {
body, #message { margin-top: 0; background: white; box-shadow: none; }
body { border-top: 16px solid #ffa100; }
}
</style>
</head>
<body>
<div id="message">
<h2>404</h2>
<h1>Page Not Found</h1>
<p>The specified file was not found on this website. Please check the URL for mistakes and try again.</p>
<h3>Why am I seeing this?</h3>
<p>This page was generated by the Firebase Command-Line Interface. To modify it, edit the <code>404.html</code> file in your project's configured <code>public</code> directory.</p>
</div>
</body>
</html>
56 changes: 56 additions & 0 deletions public/css/detail.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
.section__enroll--template > ul > li, div {
margin-bottom: 10px;
}

.section__detail--pt_info {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 2rem;
}

.section__detail--pt_list {
display: flex;
flex-direction: column;
background-color: lightblue;
width: 100%;
height: 100%;
}

.section__detail--pt_template {
display: flex;
flex-direction: column;
}

.section__detail--pt_template>ul {
display: grid;
list-style: none;
justify-content: space-between;
align-items: center;
text-align: center;
padding: 0 2rem;
}

@media (max-width: 480px) {
.section__detail--pt_template>ul {
grid-template-columns: repeat(5, 1fr);
grid-template-rows: repeat(2, 1fr);
}
}

@media (min-width: 481px) {
.section__detail--pt_template>ul {
grid-template-columns: 0.1fr 0.1fr 0.1fr 0.2fr 0.1fr 0.1fr 0.1fr 0.1fr;
}
}

.section__detail--pt_template>ul>input {
text-align: center;
}

.section__detail--pt_template>ul>input,
textarea {
width: 100%;
border: none;
resize: none;
}
43 changes: 43 additions & 0 deletions public/css/enroll.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
.section__enroll--nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 2rem;
}

.section__enroll--article {
display: grid;
width: 100%;
padding: 0 2rem;
}

@media (max-width: 480px) {
.section__enroll--article {
grid-template-rows: repeat(2, 0.3fr);
padding: 0;
justify-items: center;
}
}

@media (min-width: 481px) {
.section__enroll--article {
grid-template-columns: 1fr 1fr;
}
}

.section__enroll--template > ul {
display: flex;
flex-direction: column;
list-style: none;
margin: 0;
padding: 0;
}

.section__enroll--image_upload {
display: flex;
flex-direction: column;
}

.section__enroll--image_button {
display: flex;
}
100 changes: 100 additions & 0 deletions public/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
body {
margin: 0;
padding: 0;
height: 100%;
background-color: rgb(240, 240, 240);
}

button {
border-radius: 10px;
margin-top: 1rem;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
display: inline-block;
box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5),
7px 7px 20px 0px rgba(0, 0, 0, .1),
4px 4px 5px 0px rgba(0, 0, 0, .1);
outline: none;
}

button:after {
position: absolute;
content: " ";
top: 0;
left: 0;
z-index: -1;
width: 100%;
height: 100%;
transition: all 0.3s ease;
-webkit-transform: scale(.1);
transform: scale(.1);
}

button:hover {
color: #fff;
border: none;
background: transparent;
}

button:hover:after {
background: rgb(0, 3, 255);
background: linear-gradient(0deg, rgba(2, 126, 251, 1) 0%, rgba(0, 3, 255, 1)100%);
-webkit-transform: scale(1);
transform: scale(1);
}

.section__customer--management {
display: flex;
flex-direction: column;
}

.section__customer--nav {
display: flex;
justify-content: space-between;
padding: 0 2rem;
}

.section__customer--search {
display: flex;
}

.section__customer--list {
display: flex;
flex-direction: column;
background-color: lightblue;
width: 100%;
height: 100%;
}

.section__customer--template {
display: flex;
flex-direction: column;
}

.section__customer--template>ul {
display: grid;
list-style: none;
justify-content: space-between;
align-items: center;
text-align: center;
padding: 0 2rem;
justify-items: center;
}

@media (max-width: 480px) {
.section__customer--template>ul {
grid-template-columns: repeat(5, 1fr);
grid-template-rows: repeat(2, 1fr);
}
}

@media (min-width: 481px) {
.section__customer--template>ul {
grid-template-columns: 0.1fr 0.1fr 0.2fr 0.2fr 0.15fr 0.1fr 0.1fr 0.1fr 0.1fr;
}
}

.section__customer--template>ul:nth-child(n+2)>li:nth-child(2) {
cursor: pointer;
}
19 changes: 19 additions & 0 deletions public/css/update.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* .section__detail--pt_template>ul {
display: grid;
list-style: none;
justify-content: space-between;
align-items: center;
text-align: center;
padding: 0 2rem;
grid-template-columns: 0.1fr 0.1fr 0.1fr 0.2fr 0.1fr 0.1fr 0.1fr 0.1fr;
} */

.section__detail--pt_template>ul>input {
text-align: center;
}

.section__detail--pt_template>ul>input, textarea {
width: 100%;
border: solid 1px black;
resize: none;
}
Loading