-
Notifications
You must be signed in to change notification settings - Fork 15
[이재익_FrontEnd]3주차 과제 제출합니다. #32
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,233 @@ | ||
| body{ | ||
| background-color: #FFFFFF; | ||
| display: flex; | ||
| justify-content: center; | ||
| } | ||
|
|
||
|
|
||
| .container{ | ||
| width: 500px; | ||
| height: 520px; | ||
| border-radius: 10px; | ||
| background-color: #FFFFFF; | ||
| } | ||
|
|
||
| .header{ | ||
| display: flex; | ||
| justify-content: center; | ||
| flex-direction:column; | ||
| align-items: center; | ||
| width: 500px; | ||
| height: 98px; | ||
| background-color: #4B89DC; | ||
| border-top-left-radius: 10px; | ||
| border-top-right-radius: 10px; | ||
| } | ||
|
|
||
| .title{ | ||
| font-family: Noto Sans KR; | ||
| font-size: 24px; | ||
| font-weight: 700; | ||
| color:#FFFFFF; | ||
| text-align: center; | ||
|
|
||
| } | ||
|
|
||
| .subtitle{ | ||
| font-family: Noto Sans KR; | ||
| font-size: 16px; | ||
| font-weight: 400; | ||
| color:#FFFFFF; | ||
| text-align: center; | ||
| } | ||
|
|
||
|
|
||
|
|
||
| .lotto-ball{ | ||
| width: 500px; | ||
| height: 110px; | ||
| margin-top: 20px; | ||
| } | ||
|
|
||
|
|
||
| .name{ | ||
| font-family: Arial; | ||
| font-size: 18px; | ||
| font-weight: 700; | ||
| color:black; | ||
| margin-top: 20px; | ||
| margin-left: 20px; | ||
|
|
||
|
|
||
| } | ||
|
|
||
| .ball-number{ | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| gap: 40px; | ||
| margin-top: 20px; | ||
| } | ||
|
|
||
| .ball { | ||
| width: 45px; | ||
| height: 45px; | ||
| border-radius: 50%; | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| font-family:Noto Sans KR; | ||
| font-size: 20px; | ||
| color: #FFFFFF; | ||
|
|
||
| } | ||
|
|
||
| .ball1 { background-color: #FBC400; } | ||
| .ball2 { background-color: #69C8F2; } | ||
| .ball3 { background-color: #FF7272; } | ||
| .ball4 { background-color: #AAAAAA; } | ||
| .ball5 { background-color: #B0D840; } | ||
| .ball6 { background-color: #FBC400; } | ||
|
|
||
| .button-center{ | ||
| display: flex; | ||
| justify-content: center; | ||
| flex-direction:column; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .button{ | ||
|
|
||
| width: 460px; | ||
| height: 40px; | ||
| background-color: #A0B3E0; | ||
| color: #FFFFFF; | ||
| font-size: 16px; | ||
| border: none; | ||
| border-radius: 5px; | ||
| cursor: pointer; | ||
| transition: background-color 0.3s ease; | ||
|
|
||
| } | ||
|
|
||
| .button:hover { | ||
| background-color: #4B89DC; | ||
| } | ||
|
|
||
| .purchase{ | ||
| width: 460px; | ||
| height: 200px; | ||
| margin-top: 50px; | ||
| margin-left: 15px; | ||
| } | ||
|
|
||
| .purchase-name{ | ||
| font-family: Noto Sans KR; | ||
| font-size: 18px; | ||
| font-weight: 700; | ||
| height: 100%; | ||
| } | ||
|
|
||
| form{ | ||
| margin-top: 10px; | ||
| } | ||
|
|
||
| .amount{ | ||
| font-family: Noto Sans KR; | ||
| font-size: 16px; | ||
| font-weight: 400; | ||
| } | ||
|
|
||
| input[type="number"]{ | ||
| border: 1px solid #DDDDDD; | ||
| width: 380px; | ||
| height: 37px; | ||
| border-radius: 4px; | ||
|
|
||
| } | ||
|
|
||
| p{ | ||
| font-family: Noto Sans KR; | ||
| font-weight: 400px; | ||
| font-size: 16px; | ||
|
|
||
| } | ||
| .button-center1{ | ||
| display: flex; | ||
| justify-content: center; | ||
| flex-direction:column; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .button1{ | ||
| width: 460px; | ||
| height: 40px; | ||
| background-color: #4B89DC; | ||
| color: #FFFFFF; | ||
| font-size: 16px; | ||
| border: none; | ||
| border-radius: 5px; | ||
|
|
||
| } | ||
|
|
||
| .result { | ||
|
|
||
|
|
||
| width: 470px; | ||
| height: 40px; | ||
|
|
||
|
|
||
| } | ||
| .ballsetting { | ||
| display: flex; | ||
|
Comment on lines
+173
to
+182
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. 코드 전반적으로 개행, 들여쓰기가 불규칙적이에요. 통일하는 편이 다른 사람과의 협업 시 가독성, 효율이 좋으니 수정하시면 좋을 것 같아요 |
||
| justify-content: center; | ||
| align-items: center; | ||
| gap: 30px; | ||
| margin-top: 20px; | ||
| } | ||
|
|
||
|
|
||
| .balls { | ||
| width: 45px; | ||
| height: 45px; | ||
| border-radius: 50%; | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| font-family:Noto Sans KR; | ||
| font-size: 20px; | ||
| color: #FFFFFF; | ||
| flex-direction: row; | ||
|
|
||
| } | ||
|
|
||
| .mynumbertitlecss { | ||
|
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. 변수나 클래스명 등을 선언할 때 pascal, camel, kebab 등 여러 네이밍 컨벤션이 존재해요 |
||
| margin-left: 20px; | ||
|
|
||
| } | ||
| .titles { | ||
| font-family: Arial; | ||
| font-size: 18px; | ||
| font-weight: 700; | ||
| color:black; | ||
| margin-top: 20px; | ||
| margin-left: 20px; | ||
|
|
||
|
|
||
| } | ||
| .resultTextcss { | ||
| width: 430px; | ||
| height: 41px; | ||
| font-family: Arial; | ||
| font-size: 15px; | ||
| font-weight: 700; | ||
| color:black; | ||
| margin-top: 20px; | ||
| margin-left: 20px; | ||
| background-color: #E8F4FD; | ||
| border-radius: 5px; | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
|
|
||
| } | ||
|
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. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="ko"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>로또 번호 생성기기</title> | ||
| <link href="lotto.css" rel="stylesheet"> | ||
|
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. css도 js와 동일하게 경로 변경이 필요해 보여요 |
||
| <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR&display=swap" rel="stylesheet"> | ||
| </head> | ||
| <body> | ||
| <div class="container"> | ||
| <div class="header"> | ||
| <span class="title">로또 번호 생성기</span> | ||
| <span class="subtitle">행운의 번호를 생성해보세요!</span> | ||
| </div> | ||
|
|
||
|
|
||
|
|
||
| <div class="lotto-ball"> | ||
| <span class="name">번호 생성</span> | ||
| <div class="ball-number"> | ||
| <span class="ball ball1">?</span> | ||
| <span class="ball ball2">?</span> | ||
| <span class="ball ball3">?</span> | ||
| <span class="ball ball4">?</span> | ||
| <span class="ball ball5">?</span> | ||
| <span class="ball ball6">?</span> | ||
| </div> | ||
| </div> | ||
| <div class="button-center"> | ||
| <button class="button">번호 생성하기</button> | ||
| </div> | ||
|
|
||
|
|
||
| <div class="purchase"> | ||
| <span class="purchase-name">로또 구매하기</span> | ||
| <form> | ||
| <span class="amount">구매 수량: </span> | ||
| <input type="number" name="name"> | ||
| </form> | ||
|
|
||
| <p>총 금액: <span id="total">0</span>원 (1장당 1,000원)</p> | ||
| <div class="button-center1"> | ||
| <button class="button1">구매하기</button> | ||
| </div> | ||
|
|
||
| <div class = "result"> </div> | ||
| </div> | ||
|
|
||
|
|
||
| </div> | ||
| <script src="lotto.js"></script> | ||
|
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. 현재 lotto.js라는 파일이 존재하지 않아서 JS 기능이 작동하지 않았을 것 같아요. 파일명을 수정하시거나 경로를 수정하시면 됩니다 |
||
| </body> | ||
| </html> | ||

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.
폰트 설정이 필요한 모든 부분에 개별적으로 적용중인데 상위 부모에서 지정후 상속하는 방식으로 하면 중복을 줄일 수 있어요