x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<div style="display: flex; flex-wrap: wrap; align-items: flex-end; gap: 3rem;"> <div class="midwest-device-frame device-iphone orientation-landscape color-black has-shadow"> <div class="midwest-device-frame-body"> <div class="midwest-device-frame-screen"> <img src="https://picsum.photos/seed/mw-lphone/1300/600" alt="" class="midwest-device-frame-image" loading="lazy"> <span class="midwest-device-frame-island" aria-hidden="true"></span> <span class="midwest-device-frame-home-indicator" aria-hidden="true"></span> </div> <span class="midwest-device-frame-btn btn-silence" aria-hidden="true"></span> <span class="midwest-device-frame-btn btn-volume-up" aria-hidden="true"></span> <span class="midwest-device-frame-btn btn-volume-down" aria-hidden="true"></span> <span class="midwest-device-frame-btn btn-power" aria-hidden="true"></span> </div> </div> <div class="midwest-device-frame device-ipad orientation-landscape color-black has-shadow"> <div class="midwest-device-frame-body"> <div class="midwest-device-frame-screen"> <img src="https://picsum.photos/seed/mw-lipad/800/600" alt="" class="midwest-device-frame-image" loading="lazy"> <span class="midwest-device-frame-camera" aria-hidden="true"></span> </div> </div> </div></div>1
2
3
4
<div style="display: flex; flex-wrap: wrap; align-items: flex-end; gap: 3rem;"> <%= midwest_device_frame(device: :iphone, orientation: :landscape, src: "https://picsum.photos/seed/mw-lphone/1300/600") %> <%= midwest_device_frame(device: :ipad, orientation: :landscape, src: "https://picsum.photos/seed/mw-lipad/800/600") %></div>Landscape
iPhone and iPad support orientation: :landscape, which rotates the
screen aspect ratio and repositions the Island / home indicator.
MacBook, Watch, and TV ignore orientation.
No params configured.
No assets to display.
Add a .js or .css file alongside the component to see it here.
Figma embed for Device Frame/landscape
Annotate a preview to embed its Figma design here:
@figma "https://figma.com/..."