-
Notifications
You must be signed in to change notification settings - Fork 15
[윤여록_FrontEnd] 3주차 과제 제출합니다. #34
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,69 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>로또 번호 생성기</title> | ||
| <link rel="stylesheet" href="style.css"> | ||
| <link rel="preconnect" href="https://fonts.googleapis.com"> | ||
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
| <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&display=swap" rel="stylesheet"> | ||
| </head> | ||
| <body> | ||
| <div class="mainbox"> | ||
| <header> | ||
| <span class="title">로또 번호 생성기</span> | ||
| <span class="subtitle">행운의 번호를 생성해보세요!</span> | ||
| </header> | ||
| <div class="container"> | ||
| <div class="createNumber"> | ||
| <span class="createTitle">번호 생성</span> | ||
| <div class="number"> | ||
| <span class="num1">?</span> | ||
| <span class="num2">?</span> | ||
| <span class="num3">?</span> | ||
| <span class="num4">?</span> | ||
| <span class="num5">?</span> | ||
| <span class="num6">?</span> | ||
|
Comment on lines
+22
to
+27
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. class와 id의 차이는 무엇일까요? 이 경우에는 id와 class중 어떤 것이 더 적합한 것 같나요?🧐 |
||
| </div> | ||
| <button class="createNumberButton">번호 생성하기</button> | ||
| </div> | ||
| <div class="buyLotto"> | ||
| <span class="buyLottoTitle">로또 구매하기</span> | ||
|
|
||
|
|
||
| <div class="moneyBox"> | ||
| <span class="howMany">구매 수량: </span> | ||
| <input id="blank" type="number"> | ||
| </div> | ||
| <div class="totalMoneyBox"> | ||
| <span class="totalMoney">총 금액: </span> | ||
| <span class="money">0</span> | ||
| <span class="resultMoney">원 (1장당 1,000원)</span> | ||
| </div> | ||
| <button class="buyLottoButton">구매하기</button> | ||
|
|
||
| </div> | ||
| </div> | ||
| <div class="checkResultBox"> | ||
| <div class="checkResultBoxFrame"> | ||
| <span clas="checkResultTitle">당첨 결과 확인.</span> | ||
| <span class="thisWeek">이번 주 당첨 번호: </span> | ||
| <div class="checkNumber"> | ||
| <div class="thisWeekNumber"></div> | ||
| </div> | ||
| <span class="myResult">내가 구매한 번호: </span> | ||
| <div class="lottoResult"> | ||
| <div class="myNumber"></div> | ||
| </div> | ||
| <div class="checkCorrectBox"> | ||
| <span class="correct">결과: </span> | ||
| <span class="correctCount">0</span> | ||
| <span class="correctFinish">개 일치</span> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <script src="system.js"></script> | ||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,292 @@ | ||
| * { | ||
| font-family: Noto Sans KR; | ||
|
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. 👍🏻 |
||
| } | ||
|
|
||
| body{ | ||
| background-color: #F0F0F0; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .mainbox{ | ||
| border-radius: 10px; | ||
| background-color: white; | ||
| width: 500px; | ||
| padding-bottom: 31px; | ||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: center; | ||
| align-items: center; | ||
| } | ||
|
|
||
| header{ | ||
| border-top-left-radius: 10px; | ||
| border-top-right-radius: 10px; | ||
| background-color: #4B89DC; | ||
| width: 100%; | ||
| height: 100px; | ||
|
Comment on lines
+27
to
+28
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. px과 %의 차이는 무엇일까요? 또한 %는 어떤 것을 기준으로 계산이 될까요? |
||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: center; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .title{ | ||
| font-size: 24px; | ||
| font-weight: 700; | ||
| color: white; | ||
| } | ||
|
|
||
| .subtitle{ | ||
| font-size: 16px; | ||
| font-weight: 400; | ||
| color: white; | ||
| } | ||
|
|
||
|
|
||
| .container{ | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .createNumber{ | ||
| width: 460px; | ||
| height: 150px; | ||
| margin-top: 20px; | ||
| } | ||
|
|
||
| .buyLotto{ | ||
| width: 460px; | ||
| height: 200px; | ||
| } | ||
|
|
||
| .createTitle{ | ||
| font-weight: 700; | ||
| font-size: 18px; | ||
| } | ||
|
|
||
|
|
||
|
|
||
| .number{ | ||
| display: flex; | ||
| justify-content: space-between; | ||
| height: 45px; | ||
| width: 100%; | ||
| margin-top: 23px; | ||
| } | ||
|
|
||
| .number span{ | ||
| width: 45px; | ||
| height: 45px; | ||
| border-radius: 50%; | ||
| color: white; | ||
| text-align: center; | ||
| line-height: 45px; | ||
|
|
||
| font-size: 20px; | ||
| font-weight: 700; | ||
| } | ||
|
|
||
| .createNumberButton{ | ||
| border-radius: 10px; | ||
| width: 100%; | ||
| height: 40px; | ||
| color: white; | ||
| border-width: 0px; | ||
| margin-top: 15px; | ||
|
|
||
| font-size: 16px; | ||
| font-weight: 700; | ||
| background-color: #A0B3E0; | ||
| } | ||
|
|
||
| .num1{ | ||
| background-color: #FBC400; | ||
| } | ||
| .num2{ | ||
| background-color: #69C8F2; | ||
| } | ||
| .num3{ | ||
| background-color: #FF7272; | ||
| } | ||
| .num4{ | ||
| background-color: #AAAAAA; | ||
| } | ||
| .num5{ | ||
| background-color: #B0D840; | ||
| } | ||
| .num6{ | ||
| background-color: #FBC400; | ||
| } | ||
|
|
||
|
|
||
| .buyLotto{ | ||
| margin-top: 30px; | ||
| display: flex; | ||
| flex-direction: column; | ||
| border-top-color: #EEEEEE; | ||
| border-top-width: 1px; | ||
| border-top-style: solid; | ||
| } | ||
|
|
||
| .buyLottoTitle{ | ||
| margin-top: 23px; | ||
| font-size: 18px; | ||
| font-weight: 700; | ||
| } | ||
|
|
||
| .moneyBox{ | ||
| margin-top: 17px; | ||
| display: flex; | ||
| flex-direction: row; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .howmany{ | ||
| font-size: 16px; | ||
| font-weight: 400; | ||
| } | ||
|
|
||
|
|
||
| .buyLottoButton{ | ||
| border-radius: 10px; | ||
| width: 100%; | ||
| height: 40px; | ||
| color: white; | ||
| border-width: 0px; | ||
| margin-top: 15px; | ||
|
|
||
| font-size: 16px; | ||
| font-weight: 700; | ||
|
|
||
| background-color: #4B89DC; | ||
| } | ||
|
|
||
| input{ | ||
| border-radius: 10px; | ||
| border-color: #DDDDDD; | ||
| border-width: 1px; | ||
| width: 380px; | ||
| height: 40px; | ||
| margin-left: 7px; | ||
| } | ||
|
|
||
|
|
||
| .totalMoneyBox{ | ||
| margin-top: 11px; | ||
| display: flex; | ||
| flex-direction: row; | ||
| align-items: center; | ||
| font-size: 16px; | ||
| font-weight: 400; | ||
| } | ||
|
|
||
| .checkResultBox{ | ||
| border-radius: 5px; | ||
| background-color: #F5F5F5; | ||
| width: 460px; | ||
| margin-top: 21px; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .lottoResult{ | ||
| width: 100%; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .myResult{ | ||
| margin-top: 21px; | ||
| font-size: 16px; | ||
| font-weight: 400; | ||
| } | ||
|
|
||
| .balls{ | ||
| display: flex; | ||
| justify-content: space-between; | ||
| height: 45px; | ||
| width: 100%; | ||
| margin-top: 23px; | ||
| } | ||
|
|
||
| .ball{ | ||
| width: 45px; | ||
| height: 45px; | ||
| border-radius: 50%; | ||
| color: white; | ||
| text-align: center; | ||
| line-height: 45px; | ||
|
|
||
| font-size: 20px; | ||
| font-weight: 700; | ||
| } | ||
|
|
||
| .myNum1{ | ||
| background-color: #FBC400; | ||
| } | ||
| .myNum2{ | ||
| background-color: #69C8F2; | ||
| } | ||
| .myNum3{ | ||
| background-color: #FF7272; | ||
| } | ||
| .myNum4{ | ||
| background-color: #AAAAAA; | ||
| } | ||
| .myNum5{ | ||
| background-color: #B0D840; | ||
| } | ||
| .myNum6{ | ||
| background-color: #FBC400; | ||
| } | ||
|
|
||
| .checkNumber{ | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .checkCorrectBox{ | ||
| display: flex; | ||
| flex-direction: row; | ||
| justify-content: center; | ||
| align-items: center; | ||
| width: 100%; | ||
| height: 40px; | ||
| border-radius: 5px; | ||
| background-color: #E8F4FD; | ||
| margin-top: 20px; | ||
|
|
||
| font-size: 16px; | ||
| font-weight: 700; | ||
|
|
||
| } | ||
|
|
||
|
|
||
| .cpuNum1{ | ||
| background-color: #FBC400; | ||
| } | ||
| .cpuNum2{ | ||
| background-color: #69C8F2; | ||
| } | ||
| .cpuNum3{ | ||
| background-color: #FF7272; | ||
| } | ||
| .cpuNum4{ | ||
| background-color: #AAAAAA; | ||
| } | ||
| .cpuNum5{ | ||
| background-color: #B0D840; | ||
| } | ||
| .cpuNum6{ | ||
| background-color: #FBC400; | ||
| } | ||
|
|
||
| .checkResultBoxFrame{ | ||
| width: 430px; | ||
| } | ||
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.
lang="en"과 "ko"의 차이는 무엇일까요?