Skip to content

Commit 0af0c42

Browse files
committed
Card Demo - Added Mobile Orientation showcase and documentation
1 parent e27c997 commit 0af0c42

File tree

1 file changed

+22
-1
lines changed
  • src/main/java/gwt/material/design/demo/client/application/components/cards

1 file changed

+22
-1
lines changed

src/main/java/gwt/material/design/demo/client/application/components/cards/CardsView.ui.xml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,28 @@
259259
&lt;/m:MaterialColumn><br/>
260260
</demo:PrettyPre>
261261
</m:MaterialRow>
262-
262+
263+
<m:MaterialRow addStyleNames="code">
264+
<m:MaterialTitle title="Mobile" description="Open this card on a mobile device to test." />
265+
<m:MaterialColumn grid="l6 m6 s12">
266+
<m:MaterialCard backgroundColor="WHITE" axis="HORIZONTAL" detectOrientation="true">
267+
<m:MaterialCardImage waves="LIGHT">
268+
<m:MaterialImage url="http://assets.materialup.com/uploads/b6992fb2-7bf4-401d-a233-e34a486b9337/gif.gif"/>
269+
</m:MaterialCardImage>
270+
271+
<m:MaterialCardContent textColor="BLACK">
272+
<m:MaterialLabel text="Title of your card" fontSize="1.5em" addStyleNames="truncate"/>
273+
<m:MaterialLabel text="Lorem ipsum dolor sit amet, consectetur adipiscing elit" addStyleNames="truncate"/>
274+
</m:MaterialCardContent>
275+
276+
<m:MaterialCardAction>
277+
<m:MaterialLink iconType="SHARE" textColor="BLACK" />
278+
<m:MaterialLink iconType="LOCATION_ON" textColor="RED" />
279+
</m:MaterialCardAction>
280+
</m:MaterialCard>
281+
</m:MaterialColumn>
282+
</m:MaterialRow>
283+
263284
<m:MaterialRow addStyleNames="code">
264285
<m:MaterialRow>
265286
<m:MaterialTitle title="Card Reveal" />

0 commit comments

Comments
 (0)