Skip to content

Commit

Permalink
Backups added via upload
Browse files Browse the repository at this point in the history
Adding the projects I created for FreeCodeCamp now that I'm beginning to understand github
  • Loading branch information
Bus42 authored Jun 9, 2018
1 parent be5bcb8 commit 1d6df36
Show file tree
Hide file tree
Showing 5 changed files with 406 additions and 0 deletions.
Binary file modified css/images/enterpriseBattle.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified css/images/spaceBattle.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
136 changes: 136 additions & 0 deletions css/master.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
html {
background: url('images/spaceBattle.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

body {
margin: 0;
padding: 0;
border: 0;
font-family: 'Baloo Bhaina', cursive;
color: #FE7606;
text-shadow: 1px 1px 2px black;
}
p, h3 {
margin: 0;
}
.outerWrapper{
height: 100vh;
min-height: 610px;
width: 100vw;
display: flex;
flex-flow: column nowrap;
justify-content: center;
align-items: center;
}
.choose{
display: flex;
flex-flow: column nowrap;
}
.teamPicker {
display: flex;
justify-content: space-around;
}
.innerWrapper {
width: 300px;
height: 300px;
display: none;
flex-flow: column nowrap;
}
.teamPicker > span {
font-size: 2em;
height: 2em;
width: 2em;
background-color: #666;
color: white;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
border-radius: 8px;
box-shadow: 0px 3px 0px 0px #222, inset -1px -3px 10px 1px #444;
}

.row {
height: 80px;
width: 260px;
display: flex;
}
.square {
font-size: 2.5em;
margin: 5px;
height: 70px;
width: 70px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 8px;
background-color: #dfd8d0;
box-shadow: 0px 3px 0px 0px #666, inset -1px -3px 10px 1px #bfb8b0;
color: black;
opacity: .8;
}
.square:active{
transform: scale(0.9);
}
.pickedByUser {
background-color: #2525CF;
box-shadow: 0px 3px 0px 0px #666, inset -1px -3px 10px 1px #0303AD;
}
.pickedByComputer {
background-color: #CF2525;
box-shadow: 0px 3px 0px 0px #666, inset -1px -3px 10px 1px #AD0303;
}
#output {
font-size: 2em;
line-height: 2em;
}

#messageWrapper {
display: none;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
height: 200px;
width: 400px;
max-width: 100vw;
background-color: #222;
opacity: .8;
border: black 2em;
border-radius: 8px;
}
#messageWrapper > h1 {
font-size: 2em;
position: absolute;
margin: 5px;
height: 80px;
width: 400px;
}

button {
background-color: black;
color: white;
font-family: 'Baloo Bhaina', cursive;
font-size: 1em;
border-radius: 5px;
position: absolute;
bottom: 5px;
right: 5px;
}
#reload {
position: fixed;
top: 12px;
right: 12px;
color: white;
}
#reload :hover {
transition: all .2s ease-in-out;
transform: scale(1.1);
cursor: pointer;
}
53 changes: 53 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<title>Tic-Tac-Toe</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Baloo+Bhaina" rel="stylesheet">
<link rel="stylesheet" href="css/master.css">
</head>

<body>
<div id="reload"><i class="fa fa-refresh" aria-hidden="true"></i></div>
<div class="outerWrapper">
<header>
<div class="choose">
<span id="output"><p>Choose your team:</p></span>
<div class="teamPicker"><span id='x'><i class="fa fa-empire" aria-hidden="true"></i></span><span id="o"><i class="fa fa-rebel" aria-hidden="true"></i></span></div>
</div>
</header>
<div class="innerWrapper">
<div class="row">
<div class="square notPickedYet"></div>
<div class="square notPickedYet"></div>
<div class="square notPickedYet"></div>
</div>
<div class="row">
<div class="square notPickedYet"></div>
<div class="square notPickedYet"></div>
<div class="square notPickedYet"></div>
</div>
<div class="row">
<div class="square notPickedYet"></div>
<div class="square notPickedYet"></div>
<div class="square notPickedYet"></div>
</div>
</div>
</div>

<div id="messageWrapper">
<span id="message"></span>
<span id="dismissWrapper">
<button type="button" name="dismiss" id="dismissBtn">Next Round</button>
</span>
</div>

</body>
<script type="text/javascript" src="js/script.js">

</script>
<script src="https://use.fontawesome.com/f342a15139.js"></script>

</html>
Loading

0 comments on commit 1d6df36

Please sign in to comment.