Adjust structure of page, add background image
This commit is contained in:
parent
c2cd07a005
commit
45239a9254
6 changed files with 42 additions and 14 deletions
BIN
images/certificate-154169_640.png
Normal file
BIN
images/certificate-154169_640.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 171 KiB |
BIN
images/paper-5985445_1920.jpg
Normal file
BIN
images/paper-5985445_1920.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 430 KiB |
BIN
images/rocks-576653_640.png
Normal file
BIN
images/rocks-576653_640.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 75 KiB |
BIN
images/school-1555907_640.png
Normal file
BIN
images/school-1555907_640.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 117 KiB |
11
index.html
11
index.html
|
|
@ -7,9 +7,9 @@
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Rock Paper Scissors</h1>
|
<header><h1>Rock Paper Scissors</h1></header>
|
||||||
|
|
||||||
|
|
||||||
|
<main>
|
||||||
<div class = "buttons">
|
<div class = "buttons">
|
||||||
<button class = "button" id = "rock">Rock</button>
|
<button class = "button" id = "rock">Rock</button>
|
||||||
<button class = "button" id = "paper">Paper</button>
|
<button class = "button" id = "paper">Paper</button>
|
||||||
|
|
@ -25,6 +25,13 @@
|
||||||
<div class="count">Rounds Played: <span id = "rounds">0</span></div>
|
<div class="count">Rounds Played: <span id = "rounds">0</span></div>
|
||||||
|
|
||||||
<div id = "msg"></div>
|
<div id = "msg"></div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
Created by <a href="https://andrindie.com" target="_blank" rel="noreferrer">Octavia Nichols</a>
|
||||||
|
for <a href="https://www.theodinproject.com/lessons/foundations-rock-paper-scissors" target="_blank" rel="noreferrer">The Odin Project</a>.
|
||||||
|
Check out the code on <a href="https://github.com/Lolabird/odin-rock-paper-scissors" target="_blank" rel="noreferrer">GitHub</a>.
|
||||||
|
</footer>
|
||||||
|
|
||||||
<script src="script.js"></script>
|
<script src="script.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
23
style.css
23
style.css
|
|
@ -1,13 +1,30 @@
|
||||||
body {
|
body {
|
||||||
background: rgb(221, 125, 104);
|
background-image: url("./images/paper-5985445_1920.jpg");
|
||||||
|
background-size: cover;
|
||||||
|
background-color: rgb(221, 125, 104);
|
||||||
color: #eee;
|
color: #eee;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
flex: 0 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1{
|
h1{
|
||||||
font-size: 50px;
|
font-size: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
.buttons {
|
.buttons {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
@ -41,3 +58,7 @@ h1{
|
||||||
#msg .button {
|
#msg .button {
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue