Create Shop component and add to homepage
This commit is contained in:
61
src/style/organisms/_shop.scss
Normal file
61
src/style/organisms/_shop.scss
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user