Skip to content
Merged
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
Binary file not shown.
Binary file not shown.
Binary file removed public/img/app-icon.png
Binary file not shown.
Binary file removed public/img/apple-icon-white.png
Binary file not shown.
Binary file removed public/img/apple-icon.png
Binary file not shown.
Binary file removed public/img/apple-watch-2.png
Binary file not shown.
Binary file removed public/img/bosco-shots-ZoEdO0G0xmI-unsplash.png
Binary file not shown.
Binary file removed public/img/browser-white.png
Binary file not shown.
Binary file removed public/img/browser.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/catalog/backgrounds/gradient-orbs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added public/img/catalog/devices/gamepad.png
Binary file added public/img/catalog/devices/gaming-mouse.png
Binary file added public/img/catalog/devices/handheld-console.png
Binary file added public/img/catalog/devices/mini-pc.png
Binary file added public/img/catalog/devices/usb-microphone.png
Binary file added public/img/catalog/devices/vr-headset-kit.png
Binary file added public/img/catalog/devices/webcam.png
Binary file added public/img/catalog/fashion-travel/tote-bag.png
Binary file added public/img/catalog/products/beverage-can.png
Binary file added public/img/catalog/products/headphones.png
Binary file added public/img/catalog/products/skincare-bottle.png
Binary file added public/img/catalog/products/sneaker.png
Binary file added public/img/catalog/products/travel-mug.png
Binary file added public/img/catalog/products/wireless-speaker.png
Binary file removed public/img/coffee-white.png
Diff not rendered.
Binary file removed public/img/coffee.png
Diff not rendered.
Binary file modified public/img/components/content-1.png
Binary file added public/img/components/content-10.png
Binary file added public/img/components/content-11.png
Binary file added public/img/components/content-12.png
Binary file added public/img/components/content-13.png
Binary file added public/img/components/content-14.png
Binary file added public/img/components/content-15.png
Binary file added public/img/components/content-16.png
Binary file modified public/img/components/content-2.png
Binary file modified public/img/components/content-3.png
Binary file modified public/img/components/content-4.png
Binary file modified public/img/components/content-5.png
Binary file modified public/img/components/content-6.png
Binary file modified public/img/components/content-7.png
Binary file modified public/img/components/content-8.png
Binary file modified public/img/components/content-9.png
Binary file modified public/img/components/cta-1.png
Binary file added public/img/components/cta-10.png
Binary file added public/img/components/cta-11.png
Binary file added public/img/components/cta-12.png
Binary file modified public/img/components/cta-2.png
Binary file modified public/img/components/cta-3.png
Binary file modified public/img/components/cta-4.png
Binary file modified public/img/components/cta-5.png
Binary file modified public/img/components/cta-6.png
Binary file added public/img/components/cta-7.png
Binary file added public/img/components/cta-8.png
Binary file added public/img/components/cta-9.png
Binary file modified public/img/components/ecommerce-1.png
Binary file modified public/img/components/ecommerce-2.png
Binary file modified public/img/components/ecommerce-3.png
Binary file modified public/img/components/ecommerce-4.png
Binary file modified public/img/components/ecommerce-5.png
Binary file added public/img/components/ecommerce-6.png
Binary file added public/img/components/ecommerce-7.png
Binary file modified public/img/components/feature-1.png
Binary file modified public/img/components/feature-2.png
Binary file modified public/img/components/feature-3.png
Binary file modified public/img/components/feature-4.png
Binary file modified public/img/components/feature-5.png
Binary file modified public/img/components/feature-6.png
Binary file added public/img/components/feature-7.png
Binary file added public/img/components/feature-8.png
Binary file modified public/img/components/footer-1-dark.png
Binary file modified public/img/components/footer-1-light.png
Binary file modified public/img/components/footer-2-dark.png
Binary file modified public/img/components/footer-2-light.png
Binary file modified public/img/components/footer-3-dark.png
Binary file modified public/img/components/footer-3-light.png
Binary file modified public/img/components/footer-4-dark.png
Binary file modified public/img/components/footer-4-light.png
Binary file modified public/img/components/header-1.png
Binary file added public/img/components/header-10.png
Binary file modified public/img/components/header-2.png
Binary file modified public/img/components/header-3.png
Binary file modified public/img/components/header-4.png
Binary file modified public/img/components/header-5.png
Binary file modified public/img/components/header-6.png
Binary file added public/img/components/header-7.png
Binary file added public/img/components/header-8.png
Binary file added public/img/components/header-9.png
Binary file removed public/img/components/menu-1-dark.jpg
Diff not rendered.
Binary file modified public/img/components/menu-1-dark.png
Binary file removed public/img/components/menu-1-light.jpg
Diff not rendered.
Binary file modified public/img/components/menu-1-light.png
Binary file removed public/img/components/menu-2-dark.jpg
Diff not rendered.
Binary file modified public/img/components/menu-2-dark.png
Binary file removed public/img/components/menu-2-light.jpg
Diff not rendered.
Binary file modified public/img/components/menu-2-light.png
Binary file modified public/img/components/menu-3-dark.png
Binary file modified public/img/components/menu-3-light.png
Binary file removed public/img/components/menu-4-dark.jpg
Diff not rendered.
Binary file modified public/img/components/menu-4-dark.png
Binary file removed public/img/components/menu-4-light.jpg
Diff not rendered.
Binary file modified public/img/components/menu-4-light.png
Binary file removed public/img/components/menu-5-dark.jpg
Diff not rendered.
Binary file removed public/img/components/menu-5-dark.png
Diff not rendered.
Binary file removed public/img/components/menu-5-light.jpg
Diff not rendered.
Binary file removed public/img/components/menu-5-light.png
Diff not rendered.
Binary file added public/img/components/transactional-1.png
Binary file added public/img/components/transactional-2.png
Binary file added public/img/components/transactional-3.png
Binary file added public/img/components/transactional-4.png
Binary file added public/img/components/transactional-5.png
Binary file added public/img/components/transactional-6.png
Binary file added public/img/components/transactional-7.png
Binary file added public/img/components/transactional-8.png
Binary file added public/img/components/transactional-9.png
Binary file removed public/img/development-white.png
Diff not rendered.
Binary file removed public/img/development.png
Diff not rendered.
Binary file removed public/img/diesel-watch-1x1.jpg
Diff not rendered.
Binary file removed public/img/game-controller-white.png
Diff not rendered.
Binary file removed public/img/game-controller.png
Diff not rendered.
Binary file removed public/img/iphone-angle.jpg
Diff not rendered.
Binary file removed public/img/ipod-white.png
Diff not rendered.
Binary file removed public/img/ipod.png
Diff not rendered.
Binary file removed public/img/jack-finnigan-rriAI0nhcbc-unsplash.jpg
Diff not rendered.
Binary file removed public/img/jefferson-santos-9SoCnyQmkzI-unsplash.jpg
Diff not rendered.
Diff not rendered.
Binary file removed public/img/josh-nuttall-pIwu5XNvXpk-unsplash.png
Diff not rendered.
Binary file removed public/img/juja-han-HU-uL54pfQI-unsplash.jpg
Diff not rendered.
Binary file removed public/img/mbp-13-space.png
Diff not rendered.
Binary file removed public/img/photo-1482424917728-d82d29662023.jpeg
Diff not rendered.
Binary file removed public/img/play-button-white.png
Diff not rendered.
Binary file removed public/img/ruslan-bardash-4kTbAMRAHtQ-unsplash.png
Diff not rendered.
Binary file removed public/img/service-white.png
Diff not rendered.
Binary file removed public/img/service.png
Diff not rendered.
Binary file removed public/img/simon-migaj-Yui5vfKHuzs-unsplash.jpg
Diff not rendered.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed public/img/t-shirt-1.png
Diff not rendered.
Binary file removed public/img/t-shirt-2.png
Diff not rendered.
Binary file removed public/img/t-shirt-4.png
Diff not rendered.
Binary file removed public/img/tamara-bellis-Mn1Uopx7if8-unsplash.jpg
Diff not rendered.
Binary file removed public/img/test-white.png
Diff not rendered.
Binary file removed public/img/test.png
Diff not rendered.
Binary file removed public/img/toa-heftiba-O3ymvT7Wf9U-unsplash.jpg
Diff not rendered.
2 changes: 1 addition & 1 deletion src/entities/block/block-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function createImageAtom(): ImageAtom {
return {
id: nanoid(8),
type: 'image',
src: '/img/logo-black.png',
src: '/img/system/logos/logo-black.png',
link: 'https://example.com',
alt: 'Image',
width: 120,
Expand Down
1 change: 1 addition & 0 deletions src/entities/template/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export type ComponentType
| 'footer'
| 'header'
| 'menu'
| 'transactional'

export interface CanvasBlockInstance {
id: string
Expand Down
2 changes: 2 additions & 0 deletions src/features/editor/model/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
footer,
header,
menu,
transactional,
} from '@/features/email-preview/catalog/load-blocks'

export const library = shallowRef<BlockLibraryCategory[]>([
Expand All @@ -18,6 +19,7 @@ export const library = shallowRef<BlockLibraryCategory[]>([
{ name: 'Feature', components: feature },
{ name: 'Call to Action', components: cta },
{ name: 'E-Commerce', components: ecommerce },
{ name: 'Transactional', components: transactional },
{ name: 'Footer', components: footer },
])

Expand Down
2 changes: 1 addition & 1 deletion src/features/editor/model/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const DEFAULT_MENU_IMAGE_ITEM = {
type: 'image' as const,
name: 'Icon',
link: 'https://example',
url: '/img/facebook-black.png',
url: '/img/system/social/menu/facebook-black.png',
width: 16,
height: 16,
alt: 'Icon',
Expand Down
120 changes: 95 additions & 25 deletions src/features/email-preview/catalog/blocks/content1.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,32 @@
"type": "content",
"preview": "img/components/content-1.png",
"block": {
"id": "G86LJihh",
"id": "lIQcolOZ",
"label": "Content 1",
"settings": {
"spacing": {
"padding": [
30,
24,
30,
24
44,
44,
40,
44
]
},
"backgroundColor": "#FFFFFF"
"backgroundColor": "#FFF9F3"
},
"rows": [
{
"id": "ZF7fxSqh",
"id": "ZpCshJt0",
"settings": {
"spacing": {},
"backgroundColor": "transparent",
"hiddenOnMobile": false,
"collapseOnMobile": true,
"gap": 0
},
"cells": [
{
"id": "Z69ew8wD",
"id": "h6CJDQ5x",
"settings": {
"spacing": {},
"backgroundColor": "transparent",
Expand All @@ -37,22 +39,42 @@
},
"atoms": [
{
"id": "8Br6p3rY",
"id": "h7acjiWh",
"type": "text",
"value": "<p style=\"text-align: center\"><span style=\"color: rgb(159, 163, 167); font-size: 14px\">12 July '19</span></p><p style=\"text-align: center\"><strong><span style=\"font-size: 24px\">Is There a Perfect Time of</span></strong><br><strong><span style=\"font-size: 24px\">Day to Meditate?</span></strong></p>",
"color": "#111111",
"value": "<p><strong><span style=\"color:#FF6B00;font-size:13px\">EDITOR'S NOTE / 01</span></strong></p><p><strong><span style=\"font-size:38px\">The useful part starts before the big idea.</span></strong></p><p><span style=\"color:#7A6558;font-size:17px\">A text-first opening for a point of view, announcement or thoughtful introduction.</span></p>",
"color": "#1F1712",
"spacing": {
"margin": [
"padding": [
0,
0,
0,
0
],
"margin": [
0,
0,
0,
0
]
}
},
{
"id": "SXzqGnaq",
"type": "divider",
"color": "#FFD9B8",
"height": 1,
"spacing": {
"padding": [
0,
0,
0,
0
],
"margin": [
18,
0,
18,
0
]
}
}
Expand All @@ -62,31 +84,79 @@
]
},
{
"id": "8pyLw4IG",
"id": "GPNQ8JtY",
"settings": {
"spacing": {},
"backgroundColor": "transparent",
"gap": 0
"hiddenOnMobile": false,
"collapseOnMobile": true,
"gap": 28
},
"cells": [
{
"id": "WrsH1hiL",
"id": "h37960CJ",
"settings": {
"spacing": {},
"backgroundColor": "transparent",
"link": "https://example.com",
"verticalAlign": "top",
"horizontalAlign": "left",
"borderRadius": 5,
"backgroundImage": {
"url": "img/simon-migaj-Yui5vfKHuzs-unsplash.jpg",
"position": "center",
"repeat": "no-repeat",
"size": "cover"
},
"height": 200
"width": 50
},
"atoms": [
{
"id": "F__w2E_S",
"type": "text",
"value": "<p><strong><span style=\"font-size:16px\">Start with context</span></strong></p><p><span style=\"color:#7A6558;font-size:14px\">Explain what changed and why the reader should care now.</span></p>",
"color": "#1F1712",
"spacing": {
"padding": [
0,
0,
0,
0
],
"margin": [
0,
0,
0,
0
]
}
}
],
"rows": []
},
{
"id": "-T6-tRyr",
"settings": {
"spacing": {},
"backgroundColor": "transparent",
"verticalAlign": "top",
"horizontalAlign": "left",
"width": 50
},
"atoms": [],
"atoms": [
{
"id": "9QyWJNb_",
"type": "text",
"value": "<p><strong><span style=\"font-size:16px\">End with direction</span></strong></p><p><span style=\"color:#7A6558;font-size:14px\">Give the next section a clear promise instead of another headline.</span></p>",
"color": "#1F1712",
"spacing": {
"padding": [
0,
0,
0,
0
],
"margin": [
0,
0,
0,
0
]
}
}
],
"rows": []
}
]
Expand Down
169 changes: 169 additions & 0 deletions src/features/email-preview/catalog/blocks/content10.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
{
"version": 2,
"name": "content10",
"label": "Content 10",
"type": "content",
"preview": "img/components/content-10.png",
"block": {
"id": "fe-VHQ4t",
"label": "Content 10",
"settings": {
"spacing": {
"padding": [
34,
32,
34,
32
]
},
"backgroundColor": "#FFFFFF"
},
"rows": [
{
"id": "d4bGOO3V",
"settings": {
"spacing": {},
"backgroundColor": "transparent",
"hiddenOnMobile": false,
"collapseOnMobile": true,
"gap": 0
},
"cells": [
{
"id": "f_Ia-58K",
"settings": {
"spacing": {},
"backgroundColor": "transparent",
"verticalAlign": "top",
"horizontalAlign": "center"
},
"atoms": [
{
"id": "QRJHnOME",
"type": "text",
"value": "<p style=\"text-align:center\"><strong><span style=\"color:#FF6B00;font-size:13px\">TWO PERSPECTIVES</span></strong></p><p style=\"text-align:center\"><strong><span style=\"font-size:30px\">What changed after the first week.</span></strong></p>",
"color": "#1F1712",
"spacing": {
"padding": [
0,
0,
0,
0
],
"margin": [
0,
0,
0,
0
]
}
}
],
"rows": []
}
]
},
{
"id": "cPW19YcT",
"settings": {
"spacing": {
"padding": [
18,
0,
0,
0
]
},
"backgroundColor": "transparent",
"hiddenOnMobile": false,
"collapseOnMobile": true,
"gap": 16
},
"cells": [
{
"id": "kAZN277F",
"settings": {
"spacing": {
"padding": [
22,
20,
22,
20
]
},
"backgroundColor": "#FFF3E6",
"verticalAlign": "top",
"horizontalAlign": "left",
"borderRadius": 16,
"width": 50
},
"atoms": [
{
"id": "TMYC-8cT",
"type": "text",
"value": "<p><strong><span style=\"color:#FF6B00;font-size:30px\">“</span></strong></p><p><strong><span style=\"font-size:19px\">We stopped explaining the interface and started discussing the work.</span></strong></p><p><span style=\"color:#7A6558;font-size:13px\">Maya Chen · Product lead</span></p>",
"color": "#1F1712",
"spacing": {
"padding": [
0,
0,
0,
0
],
"margin": [
0,
0,
0,
0
]
}
}
],
"rows": []
},
{
"id": "P-EpauiY",
"settings": {
"spacing": {
"padding": [
22,
20,
22,
20
]
},
"backgroundColor": "#FFD9B8",
"verticalAlign": "top",
"horizontalAlign": "left",
"borderRadius": 16,
"width": 50
},
"atoms": [
{
"id": "5I6UAJuf",
"type": "text",
"value": "<p><strong><span style=\"color:#FF6B00;font-size:30px\">“</span></strong></p><p><strong><span style=\"font-size:19px\">The handoff became shorter because the structure already carried intent.</span></strong></p><p><span style=\"color:#7A6558;font-size:13px\">Noah Ellis · Design director</span></p>",
"color": "#1F1712",
"spacing": {
"padding": [
0,
0,
0,
0
],
"margin": [
0,
0,
0,
0
]
}
}
],
"rows": []
}
]
}
]
}
}
Loading