diff --git a/CSS/2048.css b/CSS/2048.css new file mode 100644 index 00000000..5efbb93c --- /dev/null +++ b/CSS/2048.css @@ -0,0 +1,210 @@ +/* MAIN CONTAINERS */ +.overflow-container { + overflow-x: auto; +} + +.game-container, .dashboard { + width: 540px; + margin: 50px auto; + border: 8px outset white; + display: flex; + color: white; +} + +.game-container { + height: 540px; + margin-top: 20px; +} + +.dashboard { + height: 50px; + margin-bottom: 10px; + justify-content: space-around; + align-items: center; + font-size: 24px; + font-weight: bold; +} + +.reset { + font-size: 24px; + height: 36px; + border: 2px outset black; +} + +.reset:hover { + color: white; + background-color: black; + border-style: inset; +} +/* ********** */ + +/* GRID */ +.grid, .grid-row { + display: flex; + flex-wrap: wrap; +} + +.grid { + flex-direction: column; +} + +.grid-row { + border-bottom: 8px solid white; +} + +.grid-row:last-child { + border-bottom: none; +} + +.grid-block { + width: 129px; + height: 129px; + border-right: 8px solid white; + background-color: black; +} + +.grid-block:last-child { + border-right: none; +} +/* ********** */ + + +/*POSITIONS*/ + +.pos-1-1 { + transform: translate(0, 0); +} + +.pos-1-2 { + transform: translate(137px, 0); +} + +.pos-1-3 { + transform: translate(274px, 0); +} + +.pos-1-4 { + transform: translate(411px, 0); +} + +.pos-2-1 { + transform: translate(0, 137px); +} + +.pos-2-2 { + transform: translate(137px, 137px); +} + +.pos-2-3 { + transform: translate(274px, 137px); +} + +.pos-2-4 { + transform: translate(411px, 137px); +} + +.pos-3-1 { + transform: translate(0, 274px); +} + +.pos-3-2 { + transform: translate(137px, 274px); +} + +.pos-3-3 { + transform: translate(274px, 274px); +} + +.pos-3-4 { + transform: translate(411px, 274px); +} + +.pos-4-1 { + transform: translate(0, 411px); +} + +.pos-4-2 { + transform: translate(137px, 411px); +} + +.pos-4-3 { + transform: translate(274px, 411px); +} + +.pos-4-4 { + transform: translate(411px, 411px); +} +/* ********** */ + +/* TILES */ +.tile-container { + position: absolute; + width: 540px; + height: 540px; +} + +@keyframes tile-pop { + 50% {transform: scale(1.1);} + 100% {transform: scale(1);} +} + +@keyframes tile-grow { + 0% {transform: scale(0.1);} + 100% {transform: scale(1);} +} + +.tile { + line-height: 129px; + font-size: 48px; + text-align: center; + position: absolute; + width: 129px; + height: 129px; + transition: all 0.25s; +} + +.inner-tile { + color: white; + background-color: #33B5FF; + animation-duration: 0.25s; + animation-timing-function:ease-in; +} +/* ********** */ + +/*MESSAGES*/ + +@keyframes fadeIn { + 0% {opacity: 0%;} + 100% {opacity: 90%;} +} + +.win-message, .lose-message { + position: absolute; + font-weight: bold; + width: 540px; + height: 540px; + opacity: 0%; + font-size: 48px; + margin-top: auto; + display: flex; + justify-content: center; + align-items: center; +} + +.win-message { + color: black; + background-color: gold; +} + +.lose-message { + color: white; + background-color: black; + text-align: center; +} + +.fade-in-animation { + opacity: 90%; + animation-name: fadeIn; + animation-duration: 2s; +} +/* ********** */ \ No newline at end of file diff --git a/CSS/main.css b/CSS/main.css index 0f680cf6..fc1f6bd0 100644 --- a/CSS/main.css +++ b/CSS/main.css @@ -1,32 +1,31 @@ +/* GENERAL */ body { font-family: Raleway, Arial, Helvetica, sans-serif; background-color: black; - /*min-width: 1080px;*/ } a { color: white; text-decoration: none; } +/* ********** */ +/* HEADER */ header { background-color: black; color: white; display: flex; - /*justify-content: flex-start;*/ justify-content: space-between; align-items: center; align-content: center; flex-wrap: wrap; - padding: 45px 9.5%;/*10.25%;*/ + padding: 45px 9.5%; padding-bottom: 30px; } h1 { font-size: 48px; font-weight: bold; - /*margin-right: auto; - margin-left: auto;*/ margin-bottom: 15px; padding: 6px 10px; border: 6px double white; @@ -38,8 +37,6 @@ h1 { .nav-bar { margin: auto 0; - /*margin-left: auto;*/ - /*margin-left: 20px;*/ } header ul { @@ -61,13 +58,15 @@ header li a:hover { header li:hover { transform: scale(1.1); } +/* ********** */ +/* PROFILE */ .profile { background-color: black; color: white; display: flex; flex-direction: column; - padding: 50px 9.5%;/*10.25%;*/ + padding: 50px 9.5%; padding-top: 25px; padding-bottom: 45px; } @@ -83,14 +82,11 @@ header li:hover { .profile-intro { font-size: 24px; font-weight: 400; - text-align: center; - /*width: 50%;*/ - /*width: 600px;*/ + text-align: left; width: 572.5px; min-width: 300px; margin-right: 5%; flex: 1; - /*margin-right: auto;*/ margin-bottom: 25px; } @@ -99,20 +95,13 @@ header li:hover { } .img-holder { - /*width: 45%;*/ flex: 1; min-height: 190px; min-width: 200px; - /*width: 450px; - height: 200px;*/ border: 2px solid white; background: url("../Graphics/field_view.jpeg"); background-size: cover; background-position: center; - /*background-size: 120%; - background-position-x: -100px; - background-position-y: -270px; - background-repeat: no-repeat;*/ } .profile-row-2 { @@ -133,13 +122,15 @@ dt { font-weight: bold; margin-right: 10px; } +/* ********** */ +/* PORTFOLIO */ .portfolio { background-color: white; color: black; display: flex; flex-direction: column; - padding: 25px 9.5%;/*10.25%;*/ + padding: 25px 9.5%; } .portfolio h2 { @@ -183,7 +174,9 @@ dt { .project p, .club p { font-size: 18px; } +/* ********** */ +/* FOOTER */ footer { color: white; background-color: black; @@ -191,9 +184,10 @@ footer { padding: 10px 0; text-align: center; } +/* ********** */ -/* FOR GAME MENU */ +/* GAME MENU */ .games { background-color: white; @@ -223,6 +217,7 @@ footer { font-weight: bold; color: black; } +/* ********** */ /* Rework project format */ .rework { diff --git a/CSS/minesweeper.css b/CSS/minesweeper.css index 06c44b07..b05b496c 100644 --- a/CSS/minesweeper.css +++ b/CSS/minesweeper.css @@ -7,14 +7,15 @@ body { overflow-x: auto; } +/*DASHBOARD*/ .dash-board { width: 960px; height: 50px; border: 8px outset white; - /*border-radius: 5px;*/ padding: 2px; - margin: 10px auto; + margin: 20px auto; margin-top: 50px; + font-weight: bold; display: flex; justify-content: space-evenly; align-items: center; @@ -55,13 +56,14 @@ body { font-size: 24px; color: white; } +/* ********** */ +/*GAME CONTAINER AND OBJECTS*/ .game-container { background-color:black; height: 512px; width: 960px; border: 8px outset white; - /*border-radius: 5px;*/ padding: 2px; margin: 75px auto; margin-top: 10px; @@ -73,10 +75,6 @@ body { color: white; } -.rotated { - transform: rotate(90deg); -} - .block { background-color: white; border: 2px outset black; @@ -97,4 +95,5 @@ body { .flagged { background-color: green; -} \ No newline at end of file +} +/* ********** */ \ No newline at end of file diff --git a/CSS/snake.css b/CSS/snake.css index 36edfdf9..f8644dc2 100644 --- a/CSS/snake.css +++ b/CSS/snake.css @@ -1,7 +1,8 @@ +/* MAIN CONTAINERS */ .total-container { display: flex; flex-direction: column; - overflow-x:auto; + overflow-x: auto; } .row-1, .row-2 { @@ -17,12 +18,12 @@ margin: 10px auto; margin-bottom: 50px; } +/* ********** */ +/* DASHBOARD */ .dashboard { background-color: black; border: 8px outset white; - /*margin: 50px auto; - margin-bottom: 10px;*/ width: 540px; height: 50px; display: flex; @@ -32,16 +33,15 @@ .score-window, .board-size, .snake-speed { font-size: 24px; - /*height: 36px;*/ + font-weight: bold; color: white - /*background-color: white; - border: 2px outset black;*/ } .board-change, .speed-change { font-size: 24px; background-color: white; color: black; + border: 2px outset black; } #play-button { @@ -59,18 +59,15 @@ color: black; border-color: black; } +/* ********** */ +/* GAME CONTAINER */ .game-container { - /*margin: 50px auto; - margin-top: 10px;*/ width: 540px; height: 540px; border: 8px outset white; - /*border-radius: 4px;*/ display: flex; flex-wrap: wrap; - /*justify-content: center; - align-items: center;*/ } .empty-space { @@ -82,21 +79,22 @@ background-color: white; width: 30px; height: 30px; - /*position: relative; - transition: background-color 0.1s;*/ transition-timing-function: linear } .apple { background-color: red; } +/* ********** */ +/* COLOR MENU */ .colors { width: 134px; height: 520px; border: 8px outset white; color: white; font-size: 24px; + font-weight: bold; text-align: center; padding-top: 10px; padding-bottom: 10px; @@ -110,4 +108,5 @@ .color { width: 80px; height: 40px; -} \ No newline at end of file +} +/* ********** */ \ No newline at end of file diff --git a/Games/2048.html b/Games/2048.html index 38d3fdb9..b03c02c1 100644 --- a/Games/2048.html +++ b/Games/2048.html @@ -6,11 +6,11 @@ - + - - Minesweeper + + 2048
@@ -35,8 +35,20 @@

Minesweeper

2048

-
- +
+
+
Score: 0
+
Moves Made: 0
+ +
+
+
+
+
+
+
Congratulations!
Click to continue
+
Game Over!
Click "Restart" to play again
+