-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
373 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const Section = { | ||
|
||
// load: (section) => { | ||
// }, | ||
|
||
// unload: (section) => { | ||
// }, | ||
|
||
// select: (section) => { | ||
// }, | ||
|
||
// deselect: (section) => { | ||
// }, | ||
|
||
// reorder: (section) => { | ||
// }, | ||
|
||
// blockSelect: (section, block) => { | ||
// }, | ||
|
||
// blockDeSelect: (section, block) => { | ||
// } | ||
|
||
} | ||
|
||
export default Section; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
flex-direction: column; | ||
|
||
img { | ||
margin: 1rem 0; | ||
margin: 2rem 0; | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
.section-features { | ||
position: relative; | ||
background: #fff; | ||
padding: 4rem 0; | ||
|
||
.feature-list { | ||
display: flex; | ||
justify-content: space-around; | ||
margin-top: 5rem; | ||
} | ||
|
||
.feature-item { | ||
margin: 0 4rem; | ||
|
||
&-inner { | ||
padding: 4rem 2rem; | ||
position: relative; | ||
|
||
&:before { | ||
content: ''; | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
bottom: 0; | ||
left: 0; | ||
box-shadow: 0 16px 48px #E3E7EB; | ||
mix-blend-mode: multiply; | ||
} | ||
} | ||
|
||
&-icon { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 4rem; | ||
height: 4rem; | ||
margin: 0 auto; | ||
background: #1D7AC8; | ||
border-radius: 2px; | ||
|
||
i { | ||
color: #fff; | ||
font-size: 2rem; | ||
} | ||
} | ||
|
||
.title { | ||
margin-top: 2rem; | ||
} | ||
|
||
&-dots { | ||
margin-top: 2rem; | ||
|
||
span { | ||
display: inline-block; | ||
width: 8px; | ||
height: 8px; | ||
margin: 0 2px; | ||
background: #1D7AC8; | ||
border-radius: 2px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
// Mobile & Tablet | ||
@include until($desktop) { | ||
|
||
.section-features { | ||
|
||
.feature-list { | ||
flex-direction: column; | ||
justify-content: space-around; | ||
margin-top: 3rem; | ||
} | ||
|
||
.feature-item { | ||
margin: 0 3rem; | ||
} | ||
|
||
.feature-item-inner { | ||
margin: 2rem 0; | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
--- | ||
{ | ||
"name": "Features", | ||
"class": "section-features has-top-divider", | ||
"icon": "list", | ||
"keep_name": true, | ||
"keep_icon": true, | ||
"blocks_label": "List of features", | ||
"settings": [ | ||
{ | ||
"label": "Title", | ||
"id": "title", | ||
"type": "text" | ||
} | ||
], | ||
"blocks": [ | ||
{ | ||
"name": "Feature", | ||
"type": "feature", | ||
"settings": [ | ||
{ | ||
"label": "Title", | ||
"id": "title", | ||
"type": "text" | ||
}, | ||
{ | ||
"label": "Description", | ||
"id": "description", | ||
"type": "text" | ||
}, | ||
{ | ||
"label": "Icon", | ||
"id": "icon", | ||
"type": "select", | ||
"options": [ | ||
{ | ||
"label": "Download", | ||
"value": "fa fa-cloud-download" | ||
}, | ||
{ | ||
"label": "Paint", | ||
"value": "fa fa-paint-brush" | ||
}, | ||
{ | ||
"label": "Diamond", | ||
"value": "fa fa-diamond" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"dropzone_presets": [ | ||
{ | ||
"name": "Features", | ||
"category": "Category 1", | ||
"settings": { | ||
"title": "Hello world" | ||
}, | ||
"blocks": [ | ||
{ | ||
"type": "list_item", | ||
"settings": { | ||
"title": "Item #1", | ||
"description": "Description #1", | ||
"icon": "fa fa-diamond" | ||
} | ||
}, | ||
{ | ||
"type": "list_item", | ||
"settings": { | ||
"title": "Item #2", | ||
"description": "Description #2", | ||
"icon": "fa fa-diamond" | ||
} | ||
}, | ||
{ | ||
"type": "list_item", | ||
"settings": { | ||
"title": "Item #3", | ||
"description": "Description #3", | ||
"icon": "fa fa-diamond" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
--- | ||
<div class="container has-text-centered"> | ||
<h2 class="title is-size-2">{{ section.settings.title }}</h2> | ||
|
||
<div class="feature-list"> | ||
{% for block in section.blocks %} | ||
<div class="feature-item" {{ block.locomotive_attributes }}> | ||
<div class="feature-item-inner"> | ||
<div class="feature-item-icon"> | ||
<i class="{{ block.settings.icon }}"></i> | ||
</div> | ||
<h3 class="title is-size-4">{{ block.settings.title }}</h3> | ||
<div class="feature-item-description is-size-5 has-text-grey"> | ||
{{ block.settings.description }} | ||
</div> | ||
<div class="feature-item-dots"> | ||
{% for num in (1..forloop.index) %} | ||
<span></span> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> |
Oops, something went wrong.