Skip to content

Commit

Permalink
60/40 grid
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai-macaneata committed Dec 22, 2020
1 parent fae6a0a commit 1e2b26d
Showing 1 changed file with 45 additions and 25 deletions.
70 changes: 45 additions & 25 deletions src/grid.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import iconA from './ColumnsBlock/icons/two-half-columns.svg';
import iconB from './ColumnsBlock/icons/one-third-left.svg';
import iconC from './ColumnsBlock/icons/one-third-right.svg';
import iconD from './ColumnsBlock/icons/three-third-columns.svg';
import iconE from './ColumnsBlock/icons/three-columns.svg';
import iconF from './ColumnsBlock/icons/four-quarter-columns.svg';
import iconG from './ColumnsBlock/icons/full-column.svg';
import iconA from "./ColumnsBlock/icons/two-half-columns.svg";
import iconB from "./ColumnsBlock/icons/one-third-left.svg";
import iconC from "./ColumnsBlock/icons/one-third-right.svg";
import iconD from "./ColumnsBlock/icons/three-third-columns.svg";
import iconE from "./ColumnsBlock/icons/three-columns.svg";
import iconF from "./ColumnsBlock/icons/four-quarter-columns.svg";
import iconG from "./ColumnsBlock/icons/full-column.svg";

export const gridSizes = {
full: {
Expand Down Expand Up @@ -52,79 +52,99 @@ export const gridSizes = {
tablet: 10,
computer: 9,
},
twoFifths: {
mobile: 12,
tablet: 10,
computer: 7,
},
threeFifths: {
mobile: 12,
tablet: 10,
computer: 5,
},
};

export const variants = [
{
icon: iconA,
defaultData: {
gridSize: 12,
gridCols: ['halfWidth', 'halfWidth'],
gridCols: ["halfWidth", "halfWidth"],
},
title: '50 / 50',
title: "50 / 50",
},
{
icon: iconB,
defaultData: {
gridSize: 12,
gridCols: ['oneFifth', 'fourFifths'],
gridCols: ["oneFifth", "fourFifths"],
},
title: '20 / 80',
title: "20 / 80",
},
{
icon: iconB,
defaultData: {
gridSize: 12,
gridCols: ['oneThird', 'twoThirds'],
gridCols: ["oneThird", "twoThirds"],
},
title: '30 / 70',
title: "30 / 70",
},
{
icon: iconC,
defaultData: {
gridSize: 12,
gridCols: ['twoThirds', 'oneThird'],
gridCols: ["twoThirds", "oneThird"],
},
title: '70 / 30',
title: "70 / 30",
},
{
icon: iconC,
defaultData: {
gridSize: 12,
gridCols: ['fourFifths', 'oneFifth'],
gridCols: ["fourFifths", "oneFifth"],
},
title: '80 / 20',
title: "80 / 20",
},
{
icon: iconD,
defaultData: {
gridSize: 12,
gridCols: ['oneThird', 'oneThird', 'oneThird'],
gridCols: ["oneThird", "oneThird", "oneThird"],
},
title: '33 / 33 / 33',
title: "33 / 33 / 33",
},
{
icon: iconE,
defaultData: {
gridSize: 12,
gridCols: ['oneThirdSmall', 'halfWidthBig', 'oneThirdSmall'],
gridCols: ["oneThirdSmall", "halfWidthBig", "oneThirdSmall"],
},
title: '25 / 50 / 25',
title: "25 / 50 / 25",
},
{
icon: iconF,
defaultData: {
gridSize: 12,
gridCols: ['oneQuarter', 'oneQuarter', 'oneQuarter', 'oneQuarter'],
gridCols: ["oneQuarter", "oneQuarter", "oneQuarter", "oneQuarter"],
},
title: '25 / 25 / 25 / 25',
title: "25 / 25 / 25 / 25",
},
{
icon: iconG,
defaultData: {
gridSize: 12,
gridCols: ['full'],
gridCols: ["full"],
},
title: '100',
title: "100",
},
{
icon: iconC,
defaultData: {
gridSize: 12,
gridCols: ["threeFifths", "twoFifths"],
},
title: "60 / 40",
},
];

iconB;

0 comments on commit 1e2b26d

Please sign in to comment.