feat: added review block
This commit is contained in:
@@ -741,10 +741,88 @@ img {
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
.reviews {
|
||||
--reviews-visible: 3;
|
||||
--reviews-gap: 24px;
|
||||
background: linear-gradient(90deg, $color-surface, $color-surface-2);
|
||||
|
||||
.section__head {
|
||||
margin-bottom: 44px;
|
||||
}
|
||||
|
||||
&__slider {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
&__viewport {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&__track {
|
||||
display: flex;
|
||||
gap: var(--reviews-gap);
|
||||
transition: transform 0.45s ease;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
&__nav {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.22);
|
||||
border-radius: 12px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
color: rgba(255, 255, 255, 0.88);
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
transform: translateY(-1px);
|
||||
border-color: rgba(207, 23, 23, 0.75);
|
||||
background: rgba(207, 23, 23, 0.18);
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.35;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
&__dots {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
&__dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.28);
|
||||
cursor: pointer;
|
||||
transition: width 0.2s ease, background-color 0.2s ease;
|
||||
|
||||
&.is-active {
|
||||
width: 26px;
|
||||
background: $color-accent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.review-card {
|
||||
@include card;
|
||||
min-height: 206px;
|
||||
padding: 33px;
|
||||
flex: 0 0 calc((100% - (var(--reviews-visible) - 1) * var(--reviews-gap)) / var(--reviews-visible));
|
||||
min-height: 250px;
|
||||
padding: 30px 28px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
transition: transform 0.3s ease, border-color 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
@@ -761,16 +839,32 @@ img {
|
||||
|
||||
strong {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
margin-bottom: 10px;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
span {
|
||||
color: $color-text-muted;
|
||||
font-size: 16px;
|
||||
line-height: 1.2;
|
||||
&__meta {
|
||||
padding-top: 14px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
||||
|
||||
a {
|
||||
color: #ffd2d2;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
text-decoration-thickness: 1px;
|
||||
text-decoration-color: rgba(255, 210, 210, 0.75);
|
||||
transition: color 0.2s ease, text-decoration-color 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
color: #ffe4e4;
|
||||
text-decoration-color: #ffe4e4;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1565,6 +1659,10 @@ img {
|
||||
}
|
||||
}
|
||||
|
||||
.reviews {
|
||||
--reviews-visible: 2;
|
||||
}
|
||||
|
||||
.highlights__grid,
|
||||
.gallery__grid,
|
||||
.reviews__grid,
|
||||
@@ -1650,6 +1748,19 @@ img {
|
||||
}
|
||||
|
||||
@include respond($bp-md) {
|
||||
.reviews {
|
||||
--reviews-visible: 1;
|
||||
|
||||
&__slider {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
&__nav {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user