forked from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add recommendations block with ACDL #11
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
bc902f8
Add recommendations block with ACDL2
herzog31 9f0553b
Fix array issue for product views
herzog31 c0223e8
Fix enrichment position
herzog31 1cf384c
Update recommendations context
herzog31 abd9fdc
Add schema validation for events
herzog31 b5f507a
Merge branch 'main' of github.com:hlxsites/aem-boilerplate-commerce i…
herzog31 769aa8c
Merge branch 'main' of github.com:hlxsites/aem-boilerplate-commerce i…
herzog31 c101adc
Merge branch 'main' of github.com:hlxsites/aem-boilerplate-commerce i…
herzog31 ae07731
Fix ACDL2 and product view history bugs
herzog31 774720f
Merge branch 'main' of github.com:hlxsites/aem-boilerplate-commerce i…
herzog31 f059e56
Fix CLS
herzog31 a2ca757
Merge branch 'main' of github.com:hlxsites/aem-boilerplate-commerce i…
herzog31 c6f2fb1
Use base design system
herzog31 671c4b4
Merge branch 'main' of github.com:hlxsites/aem-boilerplate-commerce i…
herzog31 a52c814
Update styles
herzog31 ec1f23b
Replace ACDL2 with mainline ACDL
herzog31 ac5c938
Add viewHistory and cartSkus
herzog31 d0554f4
Add storefront events to recommendations block
herzog31 9b97591
Optimize recommendations context
herzog31 5b50032
Merge branch 'main' of github.com:hlxsites/aem-boilerplate-commerce i…
herzog31 b47e843
Add PLP widget version that uses ACDL
herzog31 826d2ca
Add categoryContext to PLP
herzog31 3c33ebe
Remove optional category url path from PLP
herzog31 793494f
Add categoryIds filter
herzog31 3686f01
Update autocomplete widget
herzog31 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
helix-importer-ui | ||
scripts/preact.js | ||
scripts/htm.js | ||
scripts/acdl | ||
tools/picker | ||
scripts/widgets | ||
scripts/widgets |
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
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
80 changes: 80 additions & 0 deletions
80
blocks/product-recommendations/product-recommendations.css
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,80 @@ | ||
main .section>div.product-recommendations-wrapper { | ||
max-width: 100%; | ||
padding: 0; | ||
text-align: left; | ||
margin: 0 0 5rem; | ||
} | ||
|
||
.product-recommendations { | ||
overflow: hidden; | ||
min-height: 512px; | ||
} | ||
|
||
.product-recommendations .scrollable { | ||
overflow-x: scroll; | ||
scroll-snap-type: x mandatory; | ||
padding-bottom: 1rem; | ||
} | ||
|
||
.product-recommendations .product-grid { | ||
display: inline-flex; | ||
flex-wrap: nowrap; | ||
gap: 2rem; | ||
margin: 0; | ||
} | ||
|
||
.product-recommendations .product-grid-item img { | ||
width: 100%; | ||
} | ||
|
||
.product-recommendations .product-grid .product-grid-item a { | ||
text-decoration: none; | ||
} | ||
|
||
.product-recommendations .product-grid .product-grid-item a:hover, | ||
.product-recommendations .product-grid .product-grid-item a:focus { | ||
text-decoration: underline; | ||
} | ||
|
||
.product-recommendations .product-grid .product-grid-item span { | ||
overflow: hidden; | ||
box-sizing: border-box; | ||
margin: 0; | ||
padding: .5rem 1rem 0 0; | ||
display: inline-block; | ||
} | ||
|
||
.product-recommendations .product-grid picture { | ||
background: none; | ||
display: block; | ||
width: 300px; | ||
aspect-ratio: 1 / 1.25; | ||
} | ||
|
||
.product-recommendations .product-grid img { | ||
display: inline-block; | ||
vertical-align: middle; | ||
width: 100%; | ||
object-fit: contain; | ||
background: none; | ||
} | ||
|
||
.product-recommendations .product-grid .placeholder { | ||
background-color: var(--color-neutral-500); | ||
scroll-snap-align: start; | ||
} | ||
|
||
.product-recommendations .product-grid .placeholder img { | ||
display: none; | ||
} | ||
|
||
.product-recommendations .product-grid-item { | ||
margin: 0; | ||
scroll-snap-align: start; | ||
} | ||
|
||
@media (width >= 900px) { | ||
.product-recommendations { | ||
min-height: 534px; | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you already know what "updated" means, cool, but maybe you could add a specific version or ticket here.