Algunos cambios de diseño

This commit is contained in:
David 2021-03-23 14:08:35 +01:00
parent 0f933acd52
commit 36b07bc4dd
5 changed files with 17 additions and 8 deletions

View file

@ -10,7 +10,7 @@
.navbar a.navbar-brand { .navbar a.navbar-brand {
background: url("../images/Logo Cheapy2.png") -1px -1px no-repeat; background: url("../images/Logo Cheapy2.png") -1px -1px no-repeat;
margin: 12px 0 6px; margin: 12px 0 6px;
width: 55px; width: 70px;
height: 55px; height: 55px;
display: inline-block; display: inline-block;
text-decoration: none; text-decoration: none;

View file

@ -213,6 +213,7 @@ img.img-responsive{
.img-home{ .img-home{
display: table; display: table;
margin: 0 auto; margin: 0 auto;
padding: 20px;
} }
.btn-home{ .btn-home{
@ -221,7 +222,7 @@ img.img-responsive{
} }
.btn-home button { .btn-home button {
background-color: rgb(0, 64, 128); /* Green background */ background-color: rgb(0, 64, 128);
border: 1px solid rgb(0, 0, 160); border: 1px solid rgb(0, 0, 160);
color: white; color: white;
padding: 10px 24px; padding: 10px 24px;

View file

@ -9,10 +9,10 @@
.navbar a.navbar-brand { .navbar a.navbar-brand {
display: block; display: block;
margin: 0 auto 0 auto; margin: 0 auto 0 auto;
width: 148px; width: 50px;
height: 50px; height: 50px;
float: none; float: none;
background: url("../images/spring-logo-dataflow-mobile.png") 0 center no-repeat; background: url("../images/Logo Cheapy2.png") 0 center no-repeat;
} }
.homepage-billboard .homepage-subtitle { .homepage-billboard .homepage-subtitle {

View file

@ -2,10 +2,11 @@
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="petclinic" tagdir="/WEB-INF/tags" %> <%@ taglib prefix="petclinic" tagdir="/WEB-INF/tags" %>
<link href='https://fonts.googleapis.com/css?family=Lobster' rel='stylesheet'>
<!-- %@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %--> <!-- %@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %-->
<petclinic:layout pageName="home"> <petclinic:layout pageName="home">
<h2 class="text-center"><fmt:message key="welcome"/></h2> <h2 class="text-center" style="font-family: 'Lobster'; font-size: 50px; color: rgb(0, 64, 128); padding:20px"><fmt:message key="welcome"/></h2>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="img-home"> <div class="img-home">
@ -13,7 +14,8 @@
<img class="img-responsive" src="${cheapyImage}"/> <img class="img-responsive" src="${cheapyImage}"/>
</div> </div>
<div class="btn-home"> <div class="btn-home">
<button type="button">Ver Ofertas</button> <button type="button"><span class="glyphicon glyphicon-cutlery" aria-hidden="true" style="padding: 5px"></span> Ver Ofertas</button>
</div> </div>
</div> </div>
</div> </div>

View file

@ -27,10 +27,16 @@
<span class="glyphicon glyphicon-home" aria-hidden="true"></span> <span class="glyphicon glyphicon-home" aria-hidden="true"></span>
<span>Home</span> <span>Home</span>
</petclinic:menuItem> </petclinic:menuItem>
<petclinic:menuItem active="${name eq 'ofertas'}" url="/ofertas"
title="ofertas">
<span class="glyphicon glyphicon-cutlery" aria-hidden="true"></span>
<span>Ver ofertas</span>
</petclinic:menuItem>
<petclinic:menuItem active="${name eq 'contactanos'}" url="/contactanos" <petclinic:menuItem active="${name eq 'contactanos'}" url="/contactanos"
title="contactanos"> title="contactanos">
<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span> <span class="glyphicon glyphicon-earphone" aria-hidden="true"></span>
<span>Contáctanos</span> <span>Contáctanos</span>
</petclinic:menuItem> </petclinic:menuItem>