-
-
Save veberle-CSD/0b9f953b81747a60fe671fdc42913110 to your computer and use it in GitHub Desktop.
FlexGridPPH
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
import Ember from 'ember'; | |
const featuredImage = {url: '//via.placeholder.com/600x400.png'}; | |
export default Ember.Controller.extend({ | |
articles: [ | |
{title: 'foobar 1', featuredImage}, | |
{title: 'foobar 2', featuredImage}, | |
{title: 'foobar 3', featuredImage}, | |
{title: 'foobar 4', featuredImage}, | |
{title: 'foobar 5', featuredImage}, | |
{title: 'foobar 6', featuredImage}, | |
{title: 'foobar 7', featuredImage}, | |
{title: 'foobar 8', featuredImage}, | |
{title: 'foobar 9', featuredImage} | |
] | |
}); |
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
.dashboard-article-grid { | |
width: 930px; | |
} | |
.dashboard-article-grid__row { | |
display: flex; | |
margin: 0; | |
} | |
.dashboard-article-grid__column { | |
width: 300px; | |
height: 200px; | |
margin: 0; | |
display: flex; | |
flex-direction: column; | |
align-content: flex-start; | |
align-items: flex-start; | |
} | |
.dashboard-article-grid__column--large { | |
width: 600px; | |
height: 420px; | |
} | |
.dashboard-article-grid__cell { | |
position: relative; | |
margin: 5px; | |
} | |
.dashboard-article-grid__column--large .dashboard-article-grid__cell { | |
margin: 0; | |
} | |
.dashboard-article-grid__image { | |
max-width: 100%; | |
max-height: 100%; | |
} | |
.dashboard-article-grid__title { | |
position: absolute; | |
left: 20px; | |
bottom: 40px; | |
} |
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
{ | |
"version": "0.12.1", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.12.0", | |
"ember-template-compiler": "2.12.0", | |
"ember-testing": "2.12.0" | |
}, | |
"addons": { | |
"ember-data": "2.12.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment