layouts.js
77 lines
| 1 | import { __ } from '@wordpress/i18n'; |
| 2 | |
| 3 | export const layouts = [ |
| 4 | { |
| 5 | id: 'one-column', |
| 6 | label: __( 'One Column', 'generateblocks' ), |
| 7 | layout: '1fr', |
| 8 | divs: 1, |
| 9 | }, |
| 10 | { |
| 11 | id: 'two-column', |
| 12 | label: __( 'Two Columns', 'generateblocks' ), |
| 13 | layout: 'repeat(2, minmax(0, 1fr))', |
| 14 | divs: 2, |
| 15 | }, |
| 16 | { |
| 17 | id: 'three-column', |
| 18 | label: __( 'Three Columns', 'generateblocks' ), |
| 19 | layout: 'repeat(3, minmax(0, 1fr))', |
| 20 | divs: 3, |
| 21 | }, |
| 22 | { |
| 23 | id: 'four-column', |
| 24 | label: __( 'Four Columns', 'generateblocks' ), |
| 25 | layout: 'repeat(4, minmax(0, 1fr))', |
| 26 | divs: 4, |
| 27 | }, |
| 28 | { |
| 29 | id: 'two-column-1-3', |
| 30 | label: __( 'Two Columns (1/3)', 'generateblocks' ), |
| 31 | layout: '1fr 3fr', |
| 32 | divs: 2, |
| 33 | }, |
| 34 | { |
| 35 | id: 'two-column-3-1', |
| 36 | label: __( 'Two Columns (3/1)', 'generateblocks' ), |
| 37 | layout: '3fr 1fr', |
| 38 | divs: 2, |
| 39 | }, |
| 40 | { |
| 41 | id: 'three-column-1-1-2', |
| 42 | label: __( 'Three Columns (1/1/2)', 'generateblocks' ), |
| 43 | layout: '1fr 1fr 2fr', |
| 44 | divs: 3, |
| 45 | }, |
| 46 | { |
| 47 | id: 'three-column-1-2-1', |
| 48 | label: __( 'Three Columns (1/2/1)', 'generateblocks' ), |
| 49 | layout: '1fr 2fr 1fr', |
| 50 | divs: 3, |
| 51 | }, |
| 52 | { |
| 53 | id: 'three-column-2-1-1', |
| 54 | label: __( 'Three Columns (2/1/1)', 'generateblocks' ), |
| 55 | layout: '2fr 1fr 1fr', |
| 56 | divs: 3, |
| 57 | }, |
| 58 | { |
| 59 | id: 'three-column-20-60-20', |
| 60 | label: __( 'Three Columns (20/60/20)', 'generateblocks' ), |
| 61 | layout: '1fr 3fr 1fr', |
| 62 | divs: 3, |
| 63 | }, |
| 64 | { |
| 65 | id: 'five-column', |
| 66 | label: __( 'Five Columns', 'generateblocks' ), |
| 67 | layout: 'repeat(5, minmax(0, 1fr))', |
| 68 | divs: 5, |
| 69 | }, |
| 70 | { |
| 71 | id: 'six-column', |
| 72 | label: __( 'Six Columns', 'generateblocks' ), |
| 73 | layout: 'repeat(6, minmax(0, 1fr))', |
| 74 | divs: 6, |
| 75 | }, |
| 76 | ]; |
| 77 |