Berkarar/themes/berkarar/assets/css/components/3-page/home.scss

883 lines
18 KiB
SCSS
Raw Normal View History

2022-08-28 19:50:26 +00:00
// Hero ==========================
.hero {
&_slider {
position: relative;
}
&_item {
2023-07-26 11:44:12 +00:00
height: calc(100vh - 160px);
2022-08-28 19:50:26 +00:00
width: 100%;
position: relative;
2022-09-22 10:35:44 +00:00
&.slick-active {
.hero_item-link {
opacity: 1;
}
}
2022-08-28 19:50:26 +00:00
&-photo {
2023-07-26 11:44:12 +00:00
height: calc(100vh - 160px);
2022-08-28 19:50:26 +00:00
width: 100%;
img {
@include ImgCov;
}
}
&-link {
position: absolute;
right: 80px;
bottom: 60px;
display: flex;
align-items: center;
padding: 15px 25px;
background: rgba(0, 0, 0, .6);
border-radius: 10px;
font-weight: 700;
font-size: 14px;
line-height: 17px;
color: #FFFFFF;
letter-spacing: .8px;
@include transition;
2022-09-22 10:35:44 +00:00
opacity: 0;
2022-08-28 19:50:26 +00:00
&:hover {
color: #000;
background: $yellow;
span {
path {
fill: #000;
}
}
}
span {
display: block;
position: relative;
margin-left: 10px;
width: 25px;
height: 15px;
svg {
@include ImgCon;
path {
@include transition;
}
}
}
}
}
.slider {
&__counter {
position: absolute;
left: 80px;
bottom: 60px;
padding: 10px 0;
width: 215px;
background: rgba(0, 0, 0, .6);
border-radius: 10px;
color: #fff;
font-weight: 700;
font-size: 20px;
line-height: 24px;
display: flex;
align-items: center;
justify-content: center;
}
}
}
// Hero end ======================
// Shops ==========================
.shops {
padding: 80px 0;
&_tab {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 50px;
&-link {
padding: 10px 25px;
margin-right: 10px;
font-weight: 700;
font-size: 18px;
line-height: 22px;
text-transform: uppercase;
color: rgba(23, 23, 23, 0.5);
display: block;
position: relative;
cursor: pointer;
border-radius: 10px;
@include transition;
&:last-child {
margin-right: 0;
}
&.active {
background: $black;
color: #fff;
&:hover {
background: $black;
color: #fff;
}
}
&:hover {
background: $yellow;
color: $black;
}
}
}
&_block {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: -5px auto;
max-width: 1440px;
&.active {
display: flex !important;
.shops_item {
2022-09-22 10:35:44 +00:00
animation: fadeInUp .5s linear;
2022-08-28 19:50:26 +00:00
&:nth-child(2) {
animation-delay: .1s;
}
&:nth-child(3) {
animation-delay: .15s;
}
&:nth-child(4) {
animation-delay: .2s;
}
&:nth-child(5) {
animation-delay: .25s;
}
&:nth-child(6) {
animation-delay: .3s;
}
&:nth-child(7) {
animation-delay: .35s;
}
&:nth-child(8) {
animation-delay: .4s;
}
&:nth-child(9) {
animation-delay: .45s;
}
}
}
}
&_item {
width: calc(33.33% - 10px);
max-width: 480px;
height: 480px;
margin: 5px;
position: relative;
display: block;
&:hover {
.shops_item {
&-info {
max-height: 100%;
// transition: all 650ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
// transform-origin: left;
// animation: shop-item 2s linear;
opacity: 1;
}
// &-name {
// max-width: 100%;
// overflow: visible;
// }
}
}
&-photo {
width: 100%;
height: 100%;
position: relative;
z-index: -1;
&::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .5);
}
img {
@include ImgCov;
}
}
&-label {
font-weight: 700;
font-size: 14px;
line-height: 17px;
text-transform: uppercase;
color: $black;
padding: 10px 20px;
background: $yellow;
border-radius: 10px;
position: absolute;
top: 30px;
left: 30px;
}
&-info {
position: absolute;
top: 30px;
right: 30px;
// transition: all 650ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
transform-origin: right;
@include transition;
2022-09-26 04:58:01 +00:00
max-width: 130px;
2022-08-28 19:50:26 +00:00
max-height: 0;
overflow: hidden;
opacity: 0;
2022-09-26 04:58:01 +00:00
text-align: center;
2022-08-28 19:50:26 +00:00
}
&-name {
font-weight: 700;
2022-09-26 04:58:01 +00:00
font-size: 18px;
line-height: 1.3;
2022-08-28 19:50:26 +00:00
text-transform: lowercase;
color: $black;
background: #fff;
padding: 25px 20px;
border-radius: 10px 10px 0 0;
display: flex;
align-items: center;
justify-content: center;
// max-height: 0;
// overflow: hidden;
// @include transition;
}
&-floor {
font-weight: 700;
font-size: 40px;
line-height: 1.4;
text-align: center;
text-transform: lowercase;
color: $black;
background: $yellow;
padding: 15px 35px;
border-radius: 0 0 10px 10px;
display: flex;
align-items: center;
justify-content: center;
span {
display: inline-block;
font-weight: 700;
font-size: 18px;
line-height: 1.4;
text-align: center;
text-transform: lowercase;
color: $black;
writing-mode: vertical-rl;
transform: rotate(180deg);
margin-left: 5px;
}
}
&-content {
position: absolute;
bottom: 30px;
left: 30px;
width: calc(100% - 60px);
p {
font-weight: 400;
font-size: 14px;
line-height: 17px;
color: rgba(255, 255, 255, 0.7);
display: flex;
align-items: center;
margin-bottom: 10px;
span {
display: inline-block;
margin-right: 10px;
width: 15px;
height: 15px;
img {
@include ImgCon;
}
}
}
&-txt {
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 1.4;
color: #fff;
2023-07-26 11:44:12 +00:00
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
2022-08-28 19:50:26 +00:00
}
}
}
}
// @keyframes shop-info {
// 0% {
// opacity: 0;
// }
// 100% {
// opacity: 1;
// }
// }
2022-09-22 10:35:44 +00:00
@-webkit-keyframes fadeInUp {
2022-08-28 19:50:26 +00:00
0% {
2022-09-22 10:35:44 +00:00
opacity: 0;
-webkit-transform: translateY(20px);
transform: translateY(20px);
2022-08-28 19:50:26 +00:00
}
100% {
opacity: 1;
2022-09-22 10:35:44 +00:00
-webkit-transform: translateY(0);
transform: translateY(0);
2022-08-28 19:50:26 +00:00
}
}
2022-09-22 10:35:44 +00:00
@keyframes fadeInUp {
2022-08-28 19:50:26 +00:00
0% {
2022-09-22 10:35:44 +00:00
opacity: 0;
-webkit-transform: translateY(20px);
-ms-transform: translateY(20px);
transform: translateY(20px);
2022-08-28 19:50:26 +00:00
}
100% {
opacity: 1;
2022-09-22 10:35:44 +00:00
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0);
2022-08-28 19:50:26 +00:00
}
}
// Shops end ======================
// Movie ==========================
.movie {
padding: 80px 0;
background: url("../images/movie-bg.png") no-repeat center;
background-size: cover;
animation: movie-bg 40s infinite ease-in-out;
&_wrap {
overflow: hidden;
}
&_row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 30px;
}
.slick {
&-track {
display: flex !important;
}
&-slide {
height: unset !important;
}
}
&_logo {
display: flex;
align-items: center;
font-weight: 700;
font-size: 24px;
line-height: 29px;
color: #FFFFFF;
span {
width: 75px;
height: 75px;
margin-right: 30px;
display: block;
img {
@include ImgCon;
}
}
}
&_link {
display: flex;
align-items: center;
font-weight: 700;
font-size: 18px;
line-height: 22px;
text-decoration-line: underline;
color: $yellow;
span {
display: block;
width: 20px;
height: 20px;
margin-right: 15px;
svg {
@include ImgCon;
}
}
}
&_slider {
display: flex;
margin: 0 -10px;
}
&_item {
display: flex !important;
flex-direction: column;
justify-content: space-between;
position: relative;
width: calc(16.66% - 20px);
margin: 0 10px;
&-photo {
height: 360px;
width: 100%;
img {
2023-07-26 11:44:12 +00:00
@include ImgCon;
2022-08-28 19:50:26 +00:00
}
}
&-title {
margin: 15px 0 8px;
font-weight: 700;
font-size: 20px;
line-height: 1.4;
color: $yellow;
}
&-genre {
font-weight: 400;
font-size: 16px;
line-height: 1.3;
color: #FFFFFF;
}
&-link {
margin-top: 30px;
background: $yellow;
color: $black;
display: flex;
align-items: center;
justify-content: center;
padding: 15px 10px;
width: calc(100% - 20px);
border-radius: 10px;
font-weight: 700;
font-size: 12px;
line-height: 15px;
cursor: pointer;
@include transition;
&:hover {
background: $black;
color: $yellow;
span {
path {
fill: $yellow;
;
}
}
}
span {
width: 15px;
height: 15px;
margin-left: 15px;
svg {
@include ImgCon;
}
}
}
}
&_all {
display: flex;
align-items: center;
justify-content: center;
a {
display: flex;
align-items: center;
background: $yellow;
color: $black;
padding: 15px 25px;
cursor: pointer;
font-weight: 700;
font-size: 12px;
line-height: 15px;
border-radius: 10px;
margin-top: 140px;
span {
width: 15px;
height: 15px;
display: block;
margin-left: 10px;
svg {
@include ImgCon;
path {
@include transition;
}
}
}
}
}
}
@keyframes movie-bg {
0% {
background-position: 0 0;
}
50% {
background-position: 100% 100%;
}
100% {
background-position: 0 0;
}
}
@-webkit-keyframes movie-bg {
0% {
background-position: 0 0;
}
50% {
background-position: 100% 100%;
}
100% {
background-position: 0 0;
}
}
// Movie end ======================
// Restaurant ==========================
.rest {
padding: 80px 0;
background: url("../images/restaurant-bg.png") no-repeat center;
background-size: cover;
&.page {
background: #fff;
.rest {
2022-09-22 10:35:44 +00:00
&_block {
max-width: unset;
}
2022-08-28 19:50:26 +00:00
&_item {
width: calc(25% - 28px);
margin: 15px 12px;
}
}
}
&_tabs {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 50px;
&-link {
display: block;
position: relative;
padding: 12px 25px;
border-radius: 10px;
@include transition;
cursor: pointer;
margin-right: 10px;
color: rgba(23, 23, 23, 0.5);
font-weight: 700;
font-size: 18px;
line-height: 1.3;
text-transform: uppercase;
&:last-child {
margin-right: 0;
}
&.active {
background: $black;
color: #fff;
&:hover {
background: $black;
color: #fff;
}
}
&:hover {
background: $yellow;
color: $black;
}
}
}
&_block {
display: flex;
2022-09-22 10:35:44 +00:00
// justify-content: center;
2022-08-28 19:50:26 +00:00
flex-wrap: wrap;
2022-09-22 10:35:44 +00:00
max-width: 1350px;
margin: 0 auto;
2022-08-28 19:50:26 +00:00
&.active {
display: flex !important;
}
}
&_item {
width: calc(33.33% - 54px);
2022-09-22 10:35:44 +00:00
// max-width: 400px;
2022-08-28 19:50:26 +00:00
margin: 25px;
border: 2px solid rgba(41, 41, 41, 0.5);
border-radius: 5px 5px 0px 0px;
background: #fff;
@include transition;
// max-height: 0;
// overflow: hidden;
&-photo {
2023-07-26 11:44:12 +00:00
width: 100%;
height: 290px;
2022-08-28 19:50:26 +00:00
img {
2023-07-26 11:44:12 +00:00
@include ImgCov;
2022-08-28 19:50:26 +00:00
}
}
&-info {
background: $black;
padding: 25px 20px;
}
&-title {
font-weight: 700;
font-size: 18px;
line-height: 1.3;
text-transform: uppercase;
color: #FFFFFF;
2023-08-11 10:31:54 +00:00
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
2022-08-28 19:50:26 +00:00
}
&-txt {
font-weight: 400;
font-size: 14px;
line-height: 1.2;
color: #FFFFFF;
margin: 10px 0 25px;
2023-08-11 10:31:54 +00:00
min-height: 34px;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
2022-08-28 19:50:26 +00:00
}
&-row {
display: flex;
align-items: center;
justify-content: space-between;
}
&-floor {
padding: 10px 15px;
background: $yellow;
color: $black;
2022-09-22 10:35:44 +00:00
font-size: 15px;
2022-08-28 19:50:26 +00:00
font-weight: 700;
line-height: 1.2;
border-radius: 5px;
text-transform: uppercase;
}
&-link {
font-weight: 700;
2022-09-22 10:35:44 +00:00
font-size: 15px;
line-height: 1.2;
color: $gray;
background: $yellow;
padding: 10px;
border-radius: 4px;
2022-08-28 19:50:26 +00:00
display: flex;
align-items: center;
2022-09-22 10:35:44 +00:00
@include transition;
border: 1px solid transparent;
&:hover {
background: transparent;
border-color: $yellow;
color: $yellow;
path,
rect {
stroke: $yellow;
}
}
2022-08-28 19:50:26 +00:00
span {
display: block;
2022-09-22 10:35:44 +00:00
margin-left: 7px;
width: 16px;
height: 16px;
2022-08-28 19:50:26 +00:00
svg {
@include ImgCon;
2022-09-22 10:35:44 +00:00
path,
rect {
@include transition;
stroke: $gray;
}
2022-08-28 19:50:26 +00:00
}
}
}
}
}
2022-09-22 10:35:44 +00:00
.pag {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 50px;
&_group {
display: flex;
align-items: center;
input {
font-weight: 700;
font-size: 18px;
line-height: 25px;
text-align: center;
color: #1C1717;
width: 90px;
margin: 0 7px;
}
}
&_btn {
display: block;
width: 45px;
height: 45px;
svg {
@include ImgCon;
}
}
&_txt {
font-weight: 400;
font-size: 18px;
line-height: 25px;
color: #7D7D7D;
}
}
2022-08-28 19:50:26 +00:00
// Restaurant end ======================
.tabItem {
display: none;
2022-09-22 10:35:44 +00:00
&.active {
display: block;
}
}
.tabInfo {
display: none;
&.active {
display: block;
}
}
.heroItem {
display: none;
2022-08-28 19:50:26 +00:00
&.active {
display: block;
}
}