Skip to content

Commit 5d3973b

Browse files
committed
home page updates
1 parent 30efc59 commit 5d3973b

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

homeImgs/cookie.png

1.8 KB
Loading

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ <h1>Home</h1>
1414
<a href="spaceinvaders.html"><div class="box" id="spaceBox"></div></a>
1515
<a href="tictactoe.html"><div class="box" id="tictactoeBox"></div></a>
1616
<a href="platformer.html"><div class="box" id="platformerBox"></div></a>
17+
<a href="https://ilikecookie.netlify.app/"><div class="box" id="cookieBox"></div></a>
1718
</div>
1819
<script src="index.js"></script>
1920
</body>

styles.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
12
.links{
2-
display: flex;
3-
justify-content: space-evenly;
4-
column-gap: 25px;
5-
row-gap: 25px;
3+
display: grid;
4+
grid-template-columns: repeat(4, auto);
5+
width: 750px;
6+
margin: auto;
67
}
78
.box{
89
width: 150px;
@@ -13,7 +14,6 @@
1314
#dinoBox{
1415
background-image: url("homeImgs/dinosaurgame.png");
1516
background-size: contain;
16-
1717
}
1818
#spaceBox{
1919
background-image: url(homeImgs/spaceinvaders.png);
@@ -27,4 +27,8 @@
2727
#platformerBox{
2828
background-color: aqua;
2929
background-size: contain;
30+
}
31+
#cookieBox{
32+
background-image: url(homeImgs/cookie.png);
33+
background-size: contain;
3034
}

0 commit comments

Comments
 (0)