-
Notifications
You must be signed in to change notification settings - Fork 0
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
seonmiki 개포동배달음식, TODO, web(2), react 로그인 #14
Open
seonmiki
wants to merge
8
commits into
seonmiki_main
Choose a base branch
from
seonmiki
base: seonmiki_main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ac11df1
[FE] FEAT: 로그인 화면 구현
seonmiki 6c0dd38
[FE] FEAT: 홈 화면 구현
seonmiki e028d95
[FE] FEAT: 투두리스트 구현
seonmiki 89fa388
[FE] FEAT: 사물함(2) 구현
seonmiki 3543b97
[FE] FEAT: 리액트 로그인 화면
seonmiki a94c317
[FE] API 호출 연습
seonmiki ebab3c5
[FE] FIX: html+css_lv1 reset.css 수정
seonmiki 60b6087
[FE] FEAT: 리액트 메인 화면
seonmiki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
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,27 @@ | ||
const fetchUsers = async () => { | ||
try { | ||
const response = await fetch('http://localhost:3000/users'); | ||
if (!response.ok) { | ||
throw new Error('Network response was not ok'); | ||
} | ||
const users = await response.json(); | ||
return users; | ||
} catch (error) { | ||
throw new Error(`Failed to fetch users: ${error.message}`); | ||
} | ||
}; | ||
|
||
const loadUsers = async () => { | ||
try { | ||
const users = await fetchUsers(); | ||
if (users && users.length > 0) { | ||
console.log('Users: ', users); | ||
} else { | ||
console.log('No users found.'); | ||
} | ||
} catch (error) { | ||
console.error('Failed to fetch users:', error); | ||
} | ||
}; | ||
|
||
loadUsers(); |
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,23 @@ | ||
function fetchUsers(callback) { | ||
fetch('http://localhost:3000/users') | ||
.then(response => { | ||
if (!response.ok) { | ||
throw new Error('Network response was not ok'); | ||
} | ||
return response.json(); | ||
}) | ||
.then(data => { | ||
callback(null, data); | ||
}) | ||
.catch(error => { | ||
callback(error, null); | ||
}); | ||
} | ||
|
||
fetchUsers((error, users) => { | ||
if (error) { | ||
console.error('Failed to fetch users:', error); | ||
return; | ||
} | ||
console.log('Users:', users); | ||
}); |
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,7 @@ | ||
{ | ||
"users": [ | ||
{ "id": 1, "name": "User One" }, | ||
{ "id": 2, "name": "User Two" }, | ||
{ "id": 3, "name": "User Three" } | ||
] | ||
} |
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,21 @@ | ||
const fetchUsers = () => { | ||
return fetch('http://localhost:3000/users') | ||
.then(response => { | ||
if (!response.ok) { | ||
throw new Error('Network response was not ok'); | ||
} | ||
return response.json(); | ||
}); | ||
}; | ||
|
||
fetchUsers() | ||
.then(users => { | ||
if (users && users.length > 0) { | ||
console.log('Users: ', users); | ||
} else { | ||
console.log('No users found.'); | ||
} | ||
}) | ||
.catch(error => { | ||
console.error('Failed to fetch users: ', error); | ||
}); |
138 changes: 138 additions & 0 deletions
138
v1/frontend/HTML+CSS+JS_LV_1_Todo_List_마스터하기/css/reset.css
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,138 @@ | ||
/* http://meyerweb.com/eric/tools/css/reset/ | ||
v2.0 | 20110126 | ||
License: none (public domain) | ||
*/ | ||
html, | ||
body, | ||
div, | ||
span, | ||
applet, | ||
object, | ||
iframe, | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6, | ||
p, | ||
blockquote, | ||
pre, | ||
a, | ||
abbr, | ||
acronym, | ||
address, | ||
big, | ||
cite, | ||
code, | ||
del, | ||
dfn, | ||
em, | ||
img, | ||
ins, | ||
kbd, | ||
q, | ||
s, | ||
samp, | ||
small, | ||
strike, | ||
sub, | ||
sup, | ||
tt, | ||
var, | ||
b, | ||
u, | ||
i, | ||
center, | ||
dl, | ||
dt, | ||
dd, | ||
ol, | ||
ul, | ||
li, | ||
fieldset, | ||
form, | ||
label, | ||
legend, | ||
table, | ||
caption, | ||
tbody, | ||
tfoot, | ||
thead, | ||
tr, | ||
th, | ||
td, | ||
article, | ||
aside, | ||
canvas, | ||
details, | ||
embed, | ||
figure, | ||
figcaption, | ||
footer, | ||
header, | ||
hgroup, | ||
menu, | ||
nav, | ||
output, | ||
ruby, | ||
section, | ||
summary, | ||
time, | ||
mark, | ||
audio, | ||
video, | ||
input, | ||
button { | ||
margin: 0; | ||
padding: 0; | ||
border: 0; | ||
font-size: 100%; | ||
font: inherit; | ||
vertical-align: baseline; | ||
box-sizing: border-box; | ||
} | ||
/* HTML5 display-role reset for older browsers */ | ||
article, | ||
aside, | ||
details, | ||
figcaption, | ||
figure, | ||
footer, | ||
header, | ||
hgroup, | ||
menu, | ||
nav, | ||
section { | ||
display: block; | ||
} | ||
body { | ||
line-height: 1; | ||
} | ||
ol, | ||
ul { | ||
list-style: none; | ||
} | ||
blockquote, | ||
q { | ||
quotes: none; | ||
} | ||
blockquote:before, | ||
blockquote:after, | ||
q:before, | ||
q:after { | ||
content: ""; | ||
content: none; | ||
} | ||
table { | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
} | ||
|
||
input:focus { | ||
outline: none; | ||
} |
157 changes: 157 additions & 0 deletions
157
v1/frontend/HTML+CSS+JS_LV_1_Todo_List_마스터하기/css/style.css
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,157 @@ | ||
@import "reset.css"; | ||
@import url('https://fonts.googleapis.com/css2?family=Do+Hyeon&family=Inter:[email protected]&family=Noto+Sans+KR:[email protected]&display=swap'); | ||
|
||
body { | ||
width: 100vw; | ||
height: 100vh; | ||
overflow: hidden; | ||
text-align: center; | ||
box-sizing: border-box; | ||
|
||
--main-color: #F28482; | ||
--sub-color: #F5CAC3; | ||
--background-color: #F7EDE2; | ||
|
||
background-color: var(--background-color); | ||
} | ||
|
||
input::placeholder { | ||
color: #BCBCBC; | ||
} | ||
|
||
h1, p { | ||
font-family: "Inter", sans-serif; | ||
color: var(--main-color); | ||
} | ||
|
||
h1 { | ||
font-size: 80px; | ||
font-weight: 800; | ||
text-align: center; | ||
margin-top: 5%; | ||
padding-bottom: 20px; | ||
} | ||
|
||
article { | ||
background-color: var(--sub-color); | ||
width: 50%; | ||
height: 60vh; | ||
border-radius: 20px; | ||
overflow-y: scroll; | ||
} | ||
|
||
li { | ||
background-color: white; | ||
color: var(--main-color); | ||
width: 90%; | ||
height: 6vh; | ||
border-radius: 15px; | ||
margin: 20px 30px; | ||
|
||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 0 20px; | ||
|
||
list-style-type: disc; | ||
} | ||
|
||
li span { | ||
display: inline-block; | ||
max-width: calc(100% - 100px); /* 버튼 컨테이너를 제외한 나머지 공간 */ | ||
white-space: nowrap; /* 텍스트를 한 줄로 유지 */ | ||
overflow: hidden; /* 넘친 텍스트를 숨김 */ | ||
text-overflow: ellipsis; /* 넘친 부분을 '...'으로 표시 */ | ||
} | ||
|
||
img { | ||
width: 15px; | ||
height: 15px; | ||
} | ||
|
||
.button-container { | ||
display: flex; | ||
justify-content: flex-end; | ||
gap: 10px; | ||
} | ||
|
||
button { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.finished { | ||
background-color: rgba(255, 255, 255, 0.3);; | ||
text-decoration: line-through; | ||
} | ||
|
||
.todo-form { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.todo-form__input { | ||
width: 500px; | ||
height: 60px; | ||
border-radius: 20px; | ||
padding-left: 30px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} | ||
|
||
.todo-form__button { | ||
|
||
padding-left: 10px; | ||
cursor: pointer; | ||
|
||
img { | ||
width: 60px; | ||
height: 60px; | ||
} | ||
} | ||
|
||
.container { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
margin: 2% 4%; | ||
gap: 30px; | ||
} | ||
|
||
.finishBtn { | ||
background-color: transparent; | ||
border: 1px solid; | ||
border-color: var(--main-color); | ||
border-radius: 10px; | ||
|
||
width: 3vw; | ||
height: 3vh; | ||
|
||
cursor: pointer; | ||
font: inherit; | ||
} | ||
|
||
.deleteBtn { | ||
background-color: var(--main-color); | ||
border: 1px solid; | ||
border-color: var(--main-color); | ||
border-radius: 10px; | ||
|
||
width: 3vw; | ||
height: 3vh; | ||
|
||
cursor: pointer; | ||
font: inherit; | ||
color: white; | ||
} | ||
|
||
.finishBtn img { | ||
display: none; | ||
} | ||
|
||
li:not(.finished) .finishBtn:hover img { | ||
display: block; | ||
} | ||
|
||
li.finished .finishBtn img { | ||
display: block; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
v1/frontend/HTML+CSS+JS_LV_1_Todo_List_마스터하기/img/delete_btn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
v1/frontend/HTML+CSS+JS_LV_1_Todo_List_마스터하기/img/finish_btn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
각 article에 스크롤 바가 생기는 것은 의도한 부분인가요?? 만약 그렇지 않다면 auto로 설정하면 내부 요소가 넘치진 않을 때 스크롤바를 없애고, 넘칠때만 스크롤바를 생성되게 할 수 있습니다!!