-
Notifications
You must be signed in to change notification settings - Fork 1
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
[ 1주차 기본, 심화 과제 ] 가계부 #2
Conversation
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.
바빠서 신경 많이 못썼다고 했는데... 난 또 숭에게 속았어..
코드 보면서 div를 최소화하고 시멘틱하게 코드 짜는 방법을 많이 배웠습니다!!
진짜 하나하나 주석처리 해주어서 코드 읽기에도 정말 수월했어요! 많이 배워가요...최고🥹🥹💛
/* 말줄임표 */ | ||
overflow: hidden; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; |
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.
진짜 이렇게 주석처리 해서 코드 적어주니까 정말 깔끔하군요...다음부터 특정 기능들은 이렇게 묶어두는 연습을 해봐야겠어요!!
<form> | ||
<input name="plus_price" type="checkbox" id="plus_p" checked /> | ||
<label for="plus_p">수입</label> | ||
<input name="minus_price" type="checkbox" id="minus_p" checked /> | ||
<label for="minus_p">지출</label> | ||
</form> |
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.
수입 지출을 form태그로 묶을 수도 있구나!!!
>청년다방청년다방청년다방청년다방청년다방청년다방</span | ||
> | ||
<span class="minus_price">-26,500</span> | ||
<i class="close_btn">✕</i> |
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.
i 가 이탤릭 사용할 때만 적용되는 태그인줄 알았는데,아이콘 넣을때도 활용될 수도 있군요... 너무 유용합니다...!
font-size: 1.5rem; | ||
border: 0px; | ||
background-color: white; | ||
cursor: pointer; |
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.
cursor 포인터 설정해두는 이런 섬세함! 너무 좋아요!!
<span id="minus">3,000</span> | ||
</div> | ||
</section> | ||
<hr /> |
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.
옹 border-bottom을 주지 않고 hr 태그로 주었군뇨 ! 잊고있던 hr 태그,,
</form> | ||
</header> | ||
<ul> | ||
<li> |
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.
저는 이 부분 li랑 article이랑 고민하다가 결국 article로 코드 작성했는데 혹시 article이 아닌 li로 구현한 이유가 있나용 ? 단순 궁금 ,,
} | ||
/* 체크박스 커스텀 */ | ||
label { | ||
padding: 0.3rem 1rem; |
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.
아 ,, 전 label 태그 내부에 span 넣어서 position으로 위치 조정했는데 padding 진짜 넘 간단 ,, 난 왜 생각해내지 못했는가
|
||
padding: 2rem; | ||
|
||
height: 25rem; |
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.
오 높이를 이렇게 지정해두어도 footer 윗 부분까지로 높이를 잡나요? 전 처음에 이렇게 rem 정해서 넣었다가 ul 영역의 높이가 footer까지 포함해서 잡혀서 스크롤 범위도 페이지 가장 바닥까지 잡히게 되는 이슈를 마주했었는데 ,, 뭐가 다른 걸까요 알고싶다 알고싶다
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.
오우 잘하셨네요 저 많이 배우고 갑니당
week1/ledger.html
Outdated
<section id="my"> | ||
<h2>나의 자산</h2> | ||
<p>9,999,987,000</p> | ||
<div id="detail"> | ||
<i>+</i> | ||
<span id="plus">9,999,990,000</span> | ||
<i>-</i> | ||
<span id="minus">3,000</span> |
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.
P2) css선택자에서 id와 class를 혼용하는 것은 좋지 않다고 알고 있습니다. id의 우선순위가 높기 때문에 추후 유지보수에 어려움이 있을 수도 있다고 하네요! 의미론적인 관점에서도요!
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.
맞습니당 ~! 그래서 정말 유닉하고 추후에 절대 중복될 일이 없는 그런 필요한 상황에만 id를 사용하고, 하나더라도 class를 사용해서 해결하는 것이 좋답니다!!
week1/ledger.html
Outdated
<nav id="date"> | ||
<button>〈</button> | ||
<p>8월 4일</p> | ||
<button>〉</button> | ||
</nav> |
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.
저는 nav태그가 "다른 페이지로의 링크를 보여주는 영역을 나타내는 태그" 니까 네비게이션바 같은 영역에 사용하고 nav보다는 section안에 하나의 div나 article을 사용하는건 어떨까요?
week1/ledgerStyle.css
Outdated
@@ -0,0 +1,219 @@ | |||
@import "reset.css"; |
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.
이게 지금은 비표준방식이라고 알고있어요 성능차이가 있는 것 같습니다
https://stackoverflow.com/questions/10036977/best-way-to-include-css-why-use-import
@import "reset.css"; | ||
|
||
html { | ||
min-width: 375px; |
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.
이부분만 따로 px을 사용하신 이유가 있으신가요?? rem으로 통일해도 좋을 것 같아요!
blockquote:before, | ||
blockquote:after, | ||
q:before, | ||
q:after { | ||
content: ""; |
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.
저는 reset.css에 button 요소에 cursor:pointer 넣어두고 사용하면 코드가 조금 더 간결해지는 것 같아요! 몇가지 커스텀 해보는 것도 추천~
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.
역시 넘나 깔끔하네요,, 코드 읽기 정말 편했어요! 가계부까지 고생 많으셨습니당ㅎㅎㅎ ✨🔥
</header> | ||
<section id="my"> | ||
<h2>나의 자산</h2> | ||
<p>9,999,987,000</p> |
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.
언니 나랑 살자..
week1/ledger.html
Outdated
<header> | ||
<h1>숭이의 가계부</h1> | ||
</header> | ||
<section id="my"> |
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.
좀 더 어떤 section인지 id를 명확한 이름으로 명명해주면 좋을 것 같아요!~
week1/ledger.html
Outdated
<section id="my"> | ||
<h2>나의 자산</h2> | ||
<p>9,999,987,000</p> | ||
<div id="detail"> | ||
<i>+</i> | ||
<span id="plus">9,999,990,000</span> | ||
<i>-</i> | ||
<span id="minus">3,000</span> |
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.
맞습니당 ~! 그래서 정말 유닉하고 추후에 절대 중복될 일이 없는 그런 필요한 상황에만 id를 사용하고, 하나더라도 class를 사용해서 해결하는 것이 좋답니다!!
week1/ledger.html
Outdated
<p>8월 4일</p> | ||
<button>〉</button> | ||
</nav> | ||
<div id="list"> |
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.
section 태그 써도 좋을 것 같아요!
week1/ledger.html
Outdated
</div> | ||
</section> | ||
<footer> | ||
<button>+</button> |
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.
button 태그는 reset, button, submit 세가지의 type을 가져요!
default는 submit이므로, 이렇게 type을 button으로 명시해주어야 합니당!
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 1rem; | ||
|
||
margin: 1rem 3rem; | ||
padding: 1rem; | ||
background-color: aliceblue; | ||
|
||
border: 0.3rem solid black; | ||
border-radius: 0.7rem; |
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.
역시..개행 넘 깔끔하네용 ㅎㅎ
✨ 구현 기능 명세
기본 과제
제목
나의 자산
날짜
수입, 지출 선택
input type=”checkbox”로 구현합니다. (기본 스타일도 괜찮습니다.)
default는 수입, 지출 모두 checked 되어 있습니다.
내역 리스트
flex
로 배치합니다.카테고리
내역 내용
지출 및 수입 금액
삭제 버튼 x
가 있습니다.flex
로 배치합니다. (선택)리스트 추가 버튼
심화 과제
checkbox input 커스텀
내역 리스트
내역 내용
이 일정 길이보다 길어질 경우...
로 말줄임 처리됩니다.반응형
💎 PR Point
기본과제
input type=”checkbox”로 구현합니다. (기본 스타일도 괜찮습니다.)
default는 수입, 지출 모두 checked 되어 있습니다.
심화과제
내역 내용
이 일정 길이보다 길어질 경우...
로 말줄임 처리됩니다.🥺 소요 시간, 어려웠던 점
3h
🌈 구현 결과물
2023-10-13.11.51.46.mov