Angular Material Design: Responsive card grid list - responsive-design

is it possible to create a grid list, which only consits out of card elements (images with a title) and has a different amount of columns based on the width.
(Example).
I am using the Material Design with Angular-Cli 5.2.0.

Related

MapBox - how to create the UK's “National Ordnance Survey Grid” using layers

I started using MapBox this morning and I already have a pretty useful set of layers for a project at work. Our project requires that we are able to configure a visible overlay of the UK's National OS Grid, which looks like this...
The actual proper definition of this grid is available from the Ordnance Survey organisation in various formats and at various zoom levels.
Not being familiar with MapBox, how would I (as a developer of both the MapBox "Style" design and the web pages that will access it) go about adding such a grid to the Style design?
I want to allow a different scale of the OS grid at different zoom levels (by setting each of the different scaled grids to have it's own Layer in the Style design). But I don't know how to get this grid data in vector format into the Style design in the first place.

How do I Draw a Chessboard using XAML?

I am working on a project that requires me to develop an application using the Universal Windows Platform (UWP). I have no prior knowledge of developing UWP apps and XAML is completely new to me. Thankfully however, I am competent at writing in C#.
The project I am working on involves recreating the Tafl Board games - Hnefatafl, Brandubh, Tablut, etc.
Now, while I'm fairly confident in my ability to create the underlying logic for the game, I find myself bamboozled when it comes to creating the interface using XAML.
Several different chessboards will need to be rendered: 7x7, 9x9 and 11x11.
So my question is two-fold.
How do I create a chessboard in XAML that will scale appropriately to different window/display sizes and be able to be backed by a grid behind the scenes (i.e. The application can detect which square of the board is touched, etc)
How do I go about rendering a different board depending on the game type selected?
Apologies if this is a terrible question but googling hasn't helped me a whole lot and StackOverflow has always been a great source of information.
You might want to try out the RelativePanel control and use different coloured rectangles for the tiles. This would resize for different screen sizes.
I hope you finally got an answer to this that led you in the right direction. If you didn't here are some ideas that might narrow your research terms and get your going. I'd give you working samples but youd did mention it is for a school project :).
Using a listbox and manupulating the base style can be a relatively
good way to go, and very reusable. This also fulfills your
requirement of knowing the tile currently selected as the listbox
already handles that. I used this technique for a Sudoku board that
had alternating colors for the different regions.
Create a UserControl with properties for the number of columns and
rows you need for your board and then dynamically add the rows and
columns to the grid. If your game model has a list of tiles and
each tile has a column and row property that can be mapped to the
column and row indices of the grid, you could potentially bind to it
quite easily.
Create a custom control that handles the columns,
rows and other aspects of the board itself in c# and the rendering
in XAML. I personally shy away from this just because the existing
controls are already so flexible that with enough ingenuity you can
create what you need with out of the box controls.

Long image list in forms application

I am trying to populate a large horizontal list with small images.
There may be thousands of these images that need to be scrolled through.
I want to avoid pagination as the non-fluid motion can make distinguishing your position in the list tricky.
I know iOS, Android and Flex have "List Renderer" patterns. How is the best way to accomplish this in Windows Forms?
The list items aren't going to be of uniform sizes. But the size is predicatable without loading the control.
Ie. I can dictate how wide the whole list is going to be, without loading the entire list.

How to make tables (with pictures) responsive?

I'm a newbie and I'm working on a friend's ecommerce website. Her products are shown in tables and we'd like to make it responsive. Everything is responsive now, except for the catalog list. How do we work on it without creating super small product images?
Data tables can be quite wide, and necessarily so. A single row of
data needs to be kept together to make any sense in a table. Tables
can flex in width, but they can only get so narrow before they start
wrapping cells contents uncomfortably or just plain can't get any
narrower.
Responsive design is all about adjusting designs to accomodate screens of different sizes. So what happens when a screen is narrower than the minimum width of a data table? You can zoom out and see the whole table, but the text size will be too small to read. Or you can zoom in to the point of readability, but browsing the table will require both vertical and (sad face) horizontal scrolling.
At some point you will have to hide the images or colums, but there is not too much that you can do about it. There is a good CSS Tricks article about responsive datatables.

responsive web design grid system implementation

I'm about to create a responsive web design this few weeks. I've read a lot about responsive web design, and one of the method is about grid system. There are 978 grid system, or 12 column grid system, etc. I'm just not so sure what it is use for, and how to implement with the files which is already provided from the website. Example for the website: http://960.gs/
And could you please explain to me what is the different between 24 column grid, 12 column grid, 16 column grid, and many more?
Thanks for the advice.
I'm a front end web developer and while I've designed some layouts, I don't claim to be an "expert designer" by any means. But I do have lots of experience actually building responsive designs in HTML, CSS3 and Javascript so that's where my experience/comments below stem from:
I've briefly read the grid systems too and while they can be useful, I don't really use them - the basic idea behind responsive design is to just build layouts that don't require a fixed size and then combine that with media queries ("snap states"). For a web page I typically have 3 layouts: a mobile/small version, medium, and large. Each one can scale about 250px in width (content can dynamically expand within its container, images scale up, etc.) and then when you get too big you "snap" to the next bigger layout. For example:
small layout: 250px to 450px (1 column)
medium layout: 450px to 800px (2 columns)
large layout: 800px to 1300px (3 columns)
That way no column ever is less than about 250px and never is bigger than 450px so each column has to be able to stretch about 200px.
Personally I'd just start with something simple like that and then after you've played around with it some, then read some more and maybe try incorporating the grid system.
And if you're trying to actually build the front end in HTML/CSS3, I'd just start by using CSS3 flexbox layouts (you can also use "float" with percentages if you want to support IE and older browsers but it's a little more difficult):
http://www.html5rocks.com/en/tutorials/flexbox/quick/

Resources