Browse Source

commit

master
Cristobal Bernal Mayordomo 1 year ago
parent
commit
c11c761afd
3 changed files with 51 additions and 1 deletions
  1. +4
    -1
      src/main/java/com/cristobalbernal/foro/controlador/Controlador.java
  2. +30
    -0
      src/main/resources/static/css/style.css
  3. +17
    -0
      src/main/resources/templates/miperfil/miperfil.html

+ 4
- 1
src/main/java/com/cristobalbernal/foro/controlador/Controlador.java View File

@ -16,10 +16,13 @@ public class Controlador {
private ServicioRespuestas servicioRespuestas;
@GetMapping("/miperfil")
public String miPerfil(){
return "miperfil/miperfil";
}
@GetMapping("/login")
public String login(){
return "login/login";
}
@GetMapping({"","/home","/"})
public String indice(Model model){
model.addAttribute("listaRespuestas",servicioRespuestas.findAll());


+ 30
- 0
src/main/resources/static/css/style.css View File

@ -2332,3 +2332,33 @@ button:active {
#respuesta{
display: none;
}
.miperfil{
text-align: center;
height: 300px;
padding: 12px;
}
.avatarPerfil{
width: 200px;
height: 200px;
border-radius: 50%;
}
.user-name{
font-size: 18pt;
margin-top: 14px;
}
.socials{
list-style: none;
text-align: center;
padding: 0;
}
.socials li{
display: inline-block;
margin: 5px;
}
.colorCorreo{
text-decoration: none;
color: #ad0000;
}
a:hover{
color: #dd1919;
}

+ 17
- 0
src/main/resources/templates/miperfil/miperfil.html View File

@ -0,0 +1,17 @@
<header th:replace="menu/menu :: mimenu"></header>
<link rel="stylesheet" th:href="@{/css/bootstrap.css}">
<link rel="stylesheet" th:href="@{/css/style.css}">
<link rel="stylesheet" th:href="@{/css/font-awesome.min.css}">
<div class="miperfil">
<img class="avatarPerfil" src="">
<h1 class="user-name">Felipe Minguet Moncho</h1>
</div>
<ul class="socials">
<li>
<a class="colorCorreo" href="mailto:[email protected]">[email protected]</a>
</li>
</ul>
<form th:action="@{/logout}" method="post">
<input class="" type="submit" value="Cerrar Sesion"/>
</form>

Loading…
Cancel
Save