Skip to content

Commit

Permalink
Se han corregido errores de estilo y añadido botones al menú
Browse files Browse the repository at this point in the history
  • Loading branch information
CANCI0 committed Mar 12, 2024
1 parent 58359a1 commit b615189
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 18 deletions.
9 changes: 9 additions & 0 deletions webapp/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,12 @@ a:hover {
-webkit-box-shadow: 0 0 0 0 #000, 0 0 0 2px var(--shadow);
box-shadow: 0 0 0 0 #000, 0 0 0 2px var(--shadow);
}

.logo {
font-family: oswald, sans-serif;
width: 100%;
font-size: 3rem;
font-weight: 700;
margin: 0;
text-shadow: 4px 4px 0 var(--shadow);
}
4 changes: 4 additions & 0 deletions webapp/src/components/Login/Login.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.main .logo{
margin-top: 3rem;
}

.login-container {
display: grid;
grid-template-columns: 1fr;
Expand Down
2 changes: 2 additions & 0 deletions webapp/src/components/Login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ const Login = () => {
) : (
<>
<h1 className="login-header">Identifícate</h1>
<label for="login-username">Introduce tu nombre:</label>
<input
className="login-input"
type="text"
placeholder="Username"
value={username}
onChange={(e) => setUsername(e.target.value)}
/>
<label for="login-password">Introduce tu contraseña:</label>
<input
className="login-input"
type="password"
Expand Down
9 changes: 2 additions & 7 deletions webapp/src/components/Nav/Nav.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
.logo {
font-family: oswald, sans-serif;
width: 100%;
font-size: 3rem;
font-weight: 700;
margin: 0;
text-shadow: 4px 4px 0 var(--shadow);
nav .logo{
margin-left: 3rem;
}

nav {
Expand Down
4 changes: 4 additions & 0 deletions webapp/src/components/Nav/Nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const Nav = () => {
<Link to="/home">Home</Link>
<Link to="/sobre">Sobre nosotros</Link>
<Link to="/stats">Stats</Link>
<Link to="/ranking">Ránking</Link>
</div>
<div className="rightItems">
<input
Expand All @@ -39,6 +40,9 @@ const Nav = () => {
<button className="profile">
Perfil
</button>
<button className="profile">
Opciones
</button>
<button className="disconnect" onClick={() => Logout()}>
Desconectarse
</button>
Expand Down
20 changes: 10 additions & 10 deletions webapp/src/pages/WrongRoute/WrongRoute.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
transform: translateY(50%);
height: 160px;
width: 10rem;
background-color: orange
background-color: var(--shadow)
}

@keyframes drop {
Expand Down Expand Up @@ -92,7 +92,7 @@
font-size: 188px;
font-weight: 700;
margin: 0;
text-shadow: 4px 4px 0 orange;
text-shadow: 4px 4px 0 var(--shadow);
}

.notfound h2 {
Expand All @@ -117,17 +117,17 @@
display: inline-block;
font-weight: 400;
text-transform: uppercase;
-webkit-box-shadow: 0 0 0 2px #000,2px 2px 0 2px orange;
box-shadow: 0 0 0 2px #000,2px 2px 0 2px orange;
-webkit-box-shadow: 0 0 0 2px #000,2px 2px 0 2px var(--shadow);
box-shadow: 0 0 0 2px #000,2px 2px 0 2px var(--shadow);
text-decoration: none;
-webkit-transition: .2s all;
transition: .2s all
}

.notfound a:hover {
background-color: orange;
-webkit-box-shadow: 0 0 0 0 #000,0 0 0 2px orange;
box-shadow: 0 0 0 0 #000,0 0 0 2px orange;
background-color: var(--shadow);
-webkit-box-shadow: 0 0 0 0 #000,0 0 0 2px var(--shadow);
box-shadow: 0 0 0 0 #000,0 0 0 2px var(--shadow);
}

.notfound-social {
Expand All @@ -143,9 +143,9 @@
}

.notfound-social>a:hover {
background-color: orange;
-webkit-box-shadow: 0 0 0 0 #000,0 0 0 2px orange;
box-shadow: 0 0 0 0 #000,0 0 0 2px orange;
background-color: var(--shadow);
-webkit-box-shadow: 0 0 0 0 #000,0 0 0 2px var(--shadow);
box-shadow: 0 0 0 0 #000,0 0 0 2px var(--shadow);
}

@media only screen and (max-width: 480px) {
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/pages/WrongRoute/WrongRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const WrongRoute = () => {
<p>
La página que estabas buscando no está disponible
</p>
<Link to="/login">Página principal</Link>
<Link to="/home">Página principal</Link>
</div>
</div>
);
Expand Down

0 comments on commit b615189

Please sign in to comment.