add estilos para cards

This commit is contained in:
Mariela Bonilla 2021-07-24 15:05:28 -06:00
parent 973aea76fe
commit c4bc0d2d9a
5 changed files with 130 additions and 9 deletions

View File

@ -78,7 +78,7 @@
</div>
<div
class="ds-list--entity"
class="ds-list--entity card-encuesta lift"
*ngFor="let encuesta of encuestas; trackBy: trackId"
(dblclick)="openSurvey($event)"
(click)="selectSurvey($event)"

View File

@ -6,7 +6,7 @@
><img src="http://datasurvey.org/content/img_datasurvey/datasurvey-logo-text-black.svg" width="300" alt=""
/></a>
<div class="col-6">
<div class="col-6" style="text-align: end">
<a href="#">
<button class="ds-btn ds-btn--primary fw-500 ms-lg-4">Encuestas</button>
</a>
@ -34,7 +34,7 @@
<h5 class="page-header-ui-text">
Somos su mejor aliado para la recolección de información, a través de nuestra plataforma.
</h5>
<div class="row">
<div class="row" [hidden]="!notAccount">
<div class="col">
<a routerLink="/login">
<button class="ds-btn ds-btn--primary fw-500 ms-lg-4">Comenzar</button>
@ -95,7 +95,12 @@
<h1 class="text-center mb-4">Encuestas</h1>
<div class="row gx-5" *ngIf="encuestas && encuestas.length > 0">
<div class="col-xl-4 col-lg-4 col-md-6 mb-5" *ngFor="let encuesta of encuestasMostradas; trackBy: trackId">
<div class="card lift h-100" (dblclick)="openSurvey($event)" (click)="selectSurvey($event)" [attr.data-id]="encuesta.id">
<div
class="card-encuesta lift h-100"
(dblclick)="openSurvey($event)"
(click)="selectSurvey($event)"
[attr.data-id]="encuesta.id"
>
<div class="card-body p-3">
<div class="card-title mb-0">{{ encuesta.nombre }}</div>
<div class="entity-body--row m-2">

View File

@ -155,7 +155,7 @@ Main page styles
box-shadow: 0 0.125rem 0.25rem 0 rgba(33, 40, 50, 0.2);
}
.card.lift {
/*.card.lift {
text-decoration: none;
color: inherit;
}
@ -194,7 +194,7 @@ Main page styles
border-bottom-right-radius: 0.25rem;
top: 0.5rem;
left: 0;
}
}*/
.border-cyan {
border-color: #00cfd5 !important;
@ -268,7 +268,7 @@ Main page styles
background-image: linear-gradient(135deg, #1c44b2 0%, #00b88d 100%) !important;
}
.card .entity-icon--star {
/*.card .entity-icon--star {
color: #ffcc47;
margin-right: 0.2rem;
}
@ -293,7 +293,7 @@ Main page styles
.card .btn-card {
padding: 11px 10px !important;
}
}*/
.accordion-button {
position: relative;

View File

@ -1,5 +1,8 @@
<div #footer class="footer">
<div>
<p>Copyright © Derechos reservados - Desarrollado por Quantum</p>
<p>
Copyright © Derechos reservados - Desarrollado por
<a style="color: #00b88d" href="http://pablobonilla.io/quantum" target="_blank">Quantum</a>
</p>
</div>
</div>

View File

@ -131,3 +131,116 @@
background-color: #e8f0fe !important;
}
}
/**
Cards
**/
.lift {
box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.15);
transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.lift:hover {
transform: translateY(-0.3333333333rem);
box-shadow: 0 0.5rem 2rem 0 rgba(33, 40, 50, 0.25);
}
.lift:active {
transform: none;
box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.15);
}
.lift-sm {
box-shadow: 0 0.125rem 0.25rem 0 rgba(33, 40, 50, 0.2);
}
.lift-sm:hover {
transform: translateY(-0.1666666667rem);
box-shadow: 0 0.25rem 1rem 0 rgba(33, 40, 50, 0.25);
}
.lift-sm:active {
transform: none;
box-shadow: 0 0.125rem 0.25rem 0 rgba(33, 40, 50, 0.2);
}
.card-encuesta {
border-radius: 12px;
background-color: #ffffff;
margin-bottom: 20px;
position: relative;
border: 0 none;
}
.card-encuesta.lift {
text-decoration: none;
color: inherit;
}
.card-flag {
position: absolute;
font-size: 0.7rem;
padding: 0.3rem 0.5rem;
line-height: 1;
}
.card-flag-dark {
background-color: rgba(33, 40, 50, 0.7);
color: #fff;
}
.card-flag-light {
background-color: rgba(255, 255, 255, 0.7);
color: #69707a;
}
.card-flag-lg {
font-size: 0.9rem;
padding: 0.5rem 0.65rem;
}
.card-flag-top-right {
border-top-left-radius: 0.25rem;
border-bottom-left-radius: 0.25rem;
top: 0.5rem;
right: 0;
}
.card-flag-top-left {
border-top-right-radius: 0.25rem;
border-bottom-right-radius: 0.25rem;
top: 0.5rem;
left: 0;
}
.card-encuesta .entity-icon--star {
color: #ffcc47;
margin-right: 0.2rem;
}
.card-encuesta .card-title {
font-size: 2em;
}
.card-encuesta .tag {
font-size: 0.8rem;
color: #f8f8f8;
margin-top: 0.5rem;
padding: 0.2rem 1.5rem;
background-color: #2962ff94;
border-radius: 15px;
}
.card-encuesta .subtitle {
color: rgba(0, 0, 0, 0.54);
font-size: 0.9rem;
}
.card-encuesta .btn-card {
padding: 11px 10px !important;
}
.border-cyan {
border-color: #00cfd5 !important;
}
.py-10 {
padding-top: 6rem !important;
padding-bottom: 6rem !important;
}