forked from estefaniacn/contador-de-clics-freecodecamp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9b34dc
commit 7fc5fce
Showing
11 changed files
with
123 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,41 @@ | ||
.App { | ||
text-align: center; | ||
* { | ||
padding: 0; | ||
margin: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
.App-logo { | ||
height: 40vmin; | ||
pointer-events: none; | ||
html, | ||
body { | ||
background-color: #1b1b32; | ||
} | ||
|
||
@media (prefers-reduced-motion: no-preference) { | ||
.App-logo { | ||
animation: App-logo-spin infinite 20s linear; | ||
} | ||
.App { | ||
display: flex; | ||
flex-wrap: wrap; | ||
align-items: center; | ||
justify-content: center; | ||
padding-top: 15px; | ||
font-family: Lato, sans-serif; | ||
} | ||
|
||
.App-header { | ||
background-color: #282c34; | ||
min-height: 100vh; | ||
.freecodecamp-logo-contenedor { | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: calc(10px + 2vmin); | ||
color: white; | ||
margin: 20px; | ||
} | ||
|
||
.App-link { | ||
color: #61dafb; | ||
.freecodecamp-logo { | ||
height: 50px; | ||
} | ||
|
||
@keyframes App-logo-spin { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
.contenedor-principal { | ||
height: 550px; | ||
min-width: 600px; | ||
display: flex; | ||
flex-wrap: wrap; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
import '../hojas-de-estilo/Boton.css'; | ||
|
||
function Boton({ texto, esBotonDeClic, manejarClic }) { | ||
return ( | ||
<button | ||
className={esBotonDeClic ? 'boton-clic' : 'boton-reiniciar'} | ||
onClick={manejarClic}> | ||
{texto} | ||
</button> | ||
); | ||
} | ||
|
||
export default Boton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import '../hojas-de-estilo/Contador.css'; | ||
|
||
function Contador({ numClics }) { | ||
return ( | ||
<div className='contador'> | ||
{numClics} | ||
</div> | ||
); | ||
} | ||
|
||
export default Contador; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
button { | ||
width: 250px; | ||
height: 80px; | ||
font-size: 35px; | ||
font-family: Roboto, sans-serif; | ||
font-weight: bold; | ||
color: white; | ||
border: 2px solid white; | ||
border-radius: 15px; | ||
margin: 5px; | ||
cursor: pointer; | ||
} | ||
|
||
button:hover { | ||
background-color: #00471b; | ||
} | ||
|
||
.boton-clic { | ||
background-color: #002ead; | ||
} | ||
|
||
.boton-reiniciar { | ||
background-color: #5a01a7; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.contador { | ||
min-width: 300px; | ||
height: 300px; | ||
font-size: 160px; | ||
padding: 25px; | ||
color: white; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
border: 8px solid white; | ||
margin-bottom: 15px; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.