Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
philyawj committed Jan 28, 2019
0 parents commit 12148b5
Show file tree
Hide file tree
Showing 110 changed files with 29,947 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
152 changes: 152 additions & 0 deletions App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
body {
font-family: "Share Tech Mono", monospace;
color: red; }

body,
html,
#root {
height: 100% !important;
background-image: linear-gradient(to top, #fbc2eb 0%, #a6c1ee 100%); }

h2 {
text-transform: uppercase;
font-size: 32px; }

h2,
h5 {
margin: 0;
cursor: default; }

p {
cursor: default; }

h5 {
font-size: 20px; }

.avatar {
width: 100px;
height: 100px; }

#enemy-container .oval {
top: 80px;
left: -13px; }

#hero-container .oval {
top: 72px;
left: -10px; }

#hero-container .avatar-box {
left: 7px; }

#battle-container {
max-width: 500px;
min-width: 280px;
height: 400px;
outline: 5px double black;
background-image: linear-gradient(-225deg, #e3fdf5 0%, #ffe6fa 100%);
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box; }

#enemy-container {
position: relative;
top: 15px;
display: flex;
height: 100px;
justify-content: space-between; }

#enemy-info-box {
background-color: white;
width: 55%;
height: 85px;
border: 5px solid #2f4f4f;
padding: 5px;
border-radius: 14px 7px 14px 7px;
letter-spacing: -2px; }

#hero-info-box {
background-color: white;
width: 55%;
height: 100px;
border: 5px solid #2f4f4f;
padding: 5px;
border-radius: 14px 7px 14px 7px;
letter-spacing: -2px; }

.avatar-box {
position: relative;
z-index: 0; }

.oval {
width: 120px;
height: 60px;
background: #ccbaa1;
border-radius: 50%;
position: absolute;
z-index: -1; }

.both-progress {
position: relative;
width: 100%; }

#hero-container {
justify-content: space-between;
position: relative;
top: 90px;
display: flex;
height: 100px; }

#hero-name,
#enemy-name {
letter-spacing: -4px; }

#text-box {
background-color: #4b4f53;
position: relative;
top: 100px;
height: 100px;
margin-left: -8px;
margin-right: -8px;
padding: 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box; }

#text-box-content {
background-color: #5381b6;
height: 80px;
border-radius: 5px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box; }

.attack-container {
width: 50%;
display: inline-block;
height: 40px;
line-height: 40px;
text-align: center; }

.move-pointer {
cursor: pointer;
padding: 2px 5px;
font-size: 18px;
color: white; }

@media screen and (min-width: 540px) {
.move-pointer:hover,
#play-again-text:hover {
color: #c9def8; } }
.battle-text-content {
padding: 12px 13px 0px 13px;
font-size: 18px;
color: white; }

.progress-bar {
border-radius: 8px; }

#play-again-text {
cursor: pointer; }

.fade-out.aos-animate {
opacity: 0; }
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## React Pokemon Battle

To install:
npm install
npm build
Loading

0 comments on commit 12148b5

Please sign in to comment.