Create Shop component and add to homepage

This commit is contained in:
2021-09-29 23:38:34 +02:00
parent 0ba0ab1f60
commit 3ec6dbda16
10 changed files with 151 additions and 25 deletions

View File

@@ -0,0 +1,61 @@
.shop {
overflow: hidden;
background: #fff;
color: $color-text;
border-radius: 12px;
.content {
display: grid;
grid-template-columns: 40% 1fr;
grid-template-rows: 1fr;
// grid-auto-rows: minmax(min-content, max-content);
height: 100%;
}
// Image
&__image {
position: relative;
overflow: hidden;
img {
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
}
// Info
&__info {
display: flex;
flex-direction: column;
padding: 64px 72px 40px 64px;
border-radius: 12px;
.button {
margin-right: auto;
}
}
// Title
.title-medium {
color: $color-lightpurple;
margin-bottom: 8px;
}
p {
font-weight: 300;
margin-bottom: 28px;
}
.detail {
margin: auto 0 0;
padding-top: 24px;
color: $color-gray;
line-height: 1.4;
font-size: rem(14px);
}
}