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

게임 시작화면 태그 추가 및 CSS 적용 #12

Merged
merged 1 commit into from
Jul 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 6 additions & 1 deletion game4/css/button.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
button {
}
#start-button-main {

padding: 5px 20px;
margin-top: 30px;
border: 0px solid #000000;
border-radius: 3em;
background-color: #FAC76B;
font-weight: bold;
}
#start-button {

Expand Down
40 changes: 40 additions & 0 deletions game4/css/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,44 @@
}
.chosen_card {
border-color: #ff0000;
}
.logo-card {
border: 0px solid #000000;
padding: 0%;
align-items: center;
justify-items: center;
}
#logo-card1 {
z-index: 3;
transform: rotate(-12deg);
position: relative;
left: 10px;
}
#logo-card2 {
z-index: 4;
transform: rotate(10deg);
margin-top: 10px;
position: relative;
left: 5px;
}
#logo-card3 {
z-index: 3;
transform: rotate(-2deg);
position: relative;
left: -5px;
}
#logo-card4 {
z-index: 4;
transform: rotate(5deg);
margin-top: 12px;
position: relative;
left: -10px;
}
.logo-card-img {
background-color: #ffffff;
position: relative;
width: 100%;
border: 2px solid #555555;
border-radius: 5%;
-webkit-user-drag: none;
}
19 changes: 18 additions & 1 deletion game4/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,25 @@ div {
}
#start-page {
z-index: 2;
background-color: lawngreen;
justify-content: center;
align-content: center;
text-align: center;
background-color: #F4F1EC;
position: absolute;
width: 100%;
height: 100%;
display: grid;
place-items: center;
min-height: 100vh;
}
#game-logo {
justify-content: center;
align-content: center;
margin-left: 25%;
margin-right: 25%;
margin-bottom: 5vh;
}
#rule-box {
justify-content: center;
align-content: center;
}
24 changes: 24 additions & 0 deletions game4/css/text.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,33 @@
p {
margin: 0px;

}
label {

}
#message {
position: absolute;
}
#game-name {
font-weight: bolder;
margin-bottom: 7vh;
}
#rule-box-label {
position: relative;
top: 18px;
z-index: 4;
font-weight: bold;
background-color: #ffffff;
padding: 3px 10px;
border: 3px solid #8A8885;
border-radius: 1em;
}
#rule {
background-color: #F8F7F5;
border: 3px dashed #8A8885;
border-radius: 1em;
padding: 1.5em 5em;
align-self: center;
justify-items: center;
width: fit-content;
}
32 changes: 28 additions & 4 deletions game4/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,34 @@
<link rel="stylesheet" href="./css/text.css">
</head>
<body>
<div id="start-page">
<!-- 시작 화면을 꾸며주세요! -->
<p>시작화면입니다</p>
<button id="start-button-main" onclick="gameManager.start()">start</button>
<div id="start-page" class='container-fluid'>
<h1 id="game-name">카드 짝 맞추기 게임</h1>
<div id="game-logo" class='row'>
<div onclick='' id='logo-card1' class='logo-card col-3 col-lg-1'>
<img class='logo-card-img' src="./img/back_img.png" alt='카드'>
</div>
<div onclick='' id='logo-card2' class='logo-card col-3 col-lg-1'>
<img class='logo-card-img' src="./img/img_4.png" alt='카드'>
</div>
<div onclick='' id='logo-card3' class='logo-card col-3 col-lg-1'>
<img class='logo-card-img' src="./img/back_img.png" alt='카드'>
</div>
<div onclick='' id='logo-card4' class='logo-card col-3 col-lg-1'>
<img class='logo-card-img' src="./img/img_2.png" alt='카드'>
</div>
</div>
<div id="rule-box-label">
<p>게임방법</p>
</div>
<div id="rule-box" class='row'>
<p id="rule">
24장(12쌍)의 카드를 뒤집어, 같은 동물이 그려진 카드를 찾아주세요!
<br>제한 시간은 1분 30초입니다.
<br>카드 한 쌍을 맞출 때마다 +100점
<br>모든 카드를 맞춘 경우, 남은 시간 * 5점의 점수가 추가로 부여됩니다.
</p>
</div>
<button id="start-button-main" onclick="gameManager.start()">게임 시작 >></button>
</div>
<div id="main" class="container">
<div id="game" class="row">
Expand Down