Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 114 additions & 0 deletions blocks/layout/monterrey/match/match-products.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
alias: MatchProducts
description: Sample products to match against possible templates
blocks:
-
class: stream/value.py:Constant
constant:
value:
-
-
product_tags: [product, image]
inject_values:
file: assets/store/grey/products/sanitary-towels.png
-
product_tags: [product, price]
inject_values:
content: "19"
-
product_tags: [product, price_cents]
inject_values:
content: "90"
-
product_tags: [product, price_modifier]
inject_values:
content: "c/u"
-
product_tags: [product, name]
inject_values:
content: "Kotex"
-
product_tags: [product, description]
inject_values:
content: "variedad de \n toallas femeninas"
-
product_tags: [product, reference]
inject_values:
content: "1032195 - 1018249"

-
-
product_tags: [product, image]
inject_values:
file: assets/store/grey/products/lipsalve.png
-
product_tags: [product, price]
inject_values:
content: "33"
-
product_tags: [product, price_modifier]
inject_values:
content: "c/u"
-
product_tags: [product, description]
inject_values:
content: "Toda la linea \n Labello"
-
product_tags: [product, reference]
inject_values:
content: "1032195 - 1018249"

-
-
product_tags: [product, image]
inject_values:
file: assets/store/grey/products/makeup.png
-
product_tags: [product, quantity]
inject_values:
content: "2x"
-
product_tags: [product, price]
inject_values:
content: "349"
# -
# product_tags: [product, discount]
# inject_values:
# content: "20"
-
product_tags: [product, name]
inject_values:
content: "Revlon"
-
product_tags: [product, description]
inject_values:
content: "variedad de cosméticos"
-
product_tags: [product, reference]
inject_values:
content: "1032195 - 1018249"

-
-
product_tags: [product, image]
inject_values:
file: assets/store/grey/products/toothbrushes.png
-
product_tags: [product, discount]
inject_values:
content: "20"
-
product_tags: [product, name]
inject_values:
content: "Oral B"
-
product_tags: [product, description]
inject_values:
content: "cepillos dentales"
-
product_tags: [product, reference]
inject_values:
content: "1032195 - 1018249"




20 changes: 20 additions & 0 deletions blocks/layout/monterrey/match/match-render.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# Copyright (c) 2018, creative.ai
#

alias: LayoutRendering

parameters:
-
name: document
type: Document

blocks:
-
# Rendering pipeline done in multiple sequential steps.
incoming:
chain: $document
sequence:
- visual/passes/image.py:LoadImages
- visual/layout.py:LayoutElements
- visual/convert.py:ConvertToSVG
196 changes: 196 additions & 0 deletions blocks/layout/monterrey/match/match-structure.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
#
# Copyright (c) 2018, creative.ai
#

alias: MatchStructure

blocks:
-
class: stream/value.py:Constant
constant:
value:
# -
root:
layout:
width: 600px
height: 600px

children:


# Body
-
type: group

layout:
top: 13px
left: 13px
width: 574px
height: 702px

children:

# Cells
-
type: group

layout:
top: 0px
left: 0px
width: 100%
height: 398px

children:

# Cell 1
-
type: group

layout:
position: relative
top: 0px
left: 0px
width: 283px
height: 188px

children:
# Cell background
-
type: rectangle
layout:
position: absolute
top: 0%
left: 0%
width: 100%
height: 100%
style:
fill: '#c2e0f7'
rx: 10

# Cell padding
-
type: group

layout:
position: relative
top: 20px
left: 20px
width: 243px
height: 148px

cell_tags: [cell, single]


# Cell 2
-
type: group

layout:
position: relative
top: 0px
left: 292px
width: 283px
height: 188px

children:
# Cell background
-
type: rectangle
layout:
position: absolute
top: 0%
left: 0%
width: 100%
height: 100%
style:
fill: '#f6d3e2'
rx: 10

# Cell padding
-
type: group

layout:
position: relative
top: 20px
left: 20px
width: 243px
height: 148px

cell_tags: [cell, single]

# Cell 3
-
type: group

layout:
position: relative
top: 210px
left: 0px
width: 283px
height: 188px

children:
# Cell background
-
type: rectangle
layout:
position: absolute
top: 0%
left: 0%
width: 100%
height: 100%
style:
fill: '#f6d3e2'
rx: 10

# Cell padding
-
type: group

layout:
position: relative
top: 20px
left: 20px
width: 243px
height: 148px

cell_tags: [cell, single]

# Cell 4
-
type: group

layout:
position: relative
top: 210px
left: 292px
width: 283px
height: 188px

children:
# Cell background
-
type: rectangle
layout:
position: absolute
top: 0%
left: 0%
width: 100%
height: 100%
style:
fill: '#c2e0f7'
rx: 10

# Cell padding
-
type: group

layout:
position: relative
top: 20px
left: 20px
width: 243px
height: 148px

cell_tags: [cell, single]
Loading