Closed tatsvc closed 9 years ago
@tatsvc awesome! I just added logic so those new classes are applied based on a page's front matter.
For example, by default all examples will be dark and horizontal.
device: white
to a page's front matter, then you'll get the white frame.rotation: vertical
to a page's front matter, then you'll get a vertical frame.Likewise, you can add device: white
and rotation: vertical
in the front matter to get a white and vertical frame.
Just noting ideas for new examples:
Handling rotation Specifying center and zoom level
Shouldn't this be in the first example? Because this is something you will probably need for every map?
@tatsvc that's a good point! Without the rotation and center/zoom level, the example images don't reflect the code. We should make sure these sync up.
Tracking progress:
Final check:
:heart_eyes: :heart_eyes: :heart_eyes:
@katydecorah I added css for both a light and a dark iphone frame:
The setup for an image looks like this now:
You can make a device white by adding the
.device-white
class:If you would need a vertical device you can change
.device-phone-h
to.device-phone-v