diff --git a/docs/_assets/demos/dog.png b/docs/_assets/demos/dog.png new file mode 100644 index 00000000..07743e51 Binary files /dev/null and b/docs/_assets/demos/dog.png differ diff --git a/docs/_assets/demos/image_card.jpg b/docs/_assets/demos/image_card.jpg new file mode 100644 index 00000000..23a5822f Binary files /dev/null and b/docs/_assets/demos/image_card.jpg differ diff --git a/docs/_assets/demos/welcome_card.jpg b/docs/_assets/demos/welcome_card.jpg new file mode 100644 index 00000000..af7f15f3 Binary files /dev/null and b/docs/_assets/demos/welcome_card.jpg differ diff --git a/docs/_pages/components.md b/docs/_pages/components.md index 29825c72..53ea7798 100644 --- a/docs/_pages/components.md +++ b/docs/_pages/components.md @@ -61,6 +61,18 @@ categories: components: - name: card class: mdl-card + snippets: + - snippet_group: + - caption: Wide + file: wide.html + - snippet_group: + - caption: Square + file: square.html + - snippet_group: + - caption: Image + file: image.html + - caption: Event + file: event.html - name: layout title: Layout description: Building blocks for constructing a page layout. diff --git a/src/card/demo.css b/src/card/demo.css deleted file mode 100644 index 1bcef4bb..00000000 --- a/src/card/demo.css +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -.demo-page--card .mdl-card { - margin: 20px; -} - -.demo-card--wide { - width: 600px; -} diff --git a/src/card/demo.html b/src/card/demo.html deleted file mode 100644 index 3a47dad8..00000000 --- a/src/card/demo.html +++ /dev/null @@ -1,68 +0,0 @@ -
-
-
-

Integer lectus lacus, condimentum vitae lectus vitae

-
-
- March 24th, 2014 -
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sagittis pellentesque lacus eleifend lacinia. Donec ut risus suscipit, convallis diam et, mattis urna. Phasellus sit amet ipsum nisl. Aliquam sed dictum neque. Vestibulum tempus at lacus et volutpat. Mauris molestie vel mauris id scelerisque. -
- -
-
-
-

Integer lectus lacus, condimentum vitae lectus vitae

-
-
- March 24th, 2014 -
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sagittis pellentesque lacus eleifend lacinia. Donec ut risus suscipit, convallis diam et, mattis urna. Phasellus sit amet ipsum nisl. Aliquam sed dictum neque. Vestibulum tempus at lacus et volutpat. Mauris molestie vel mauris id scelerisque. -
- -
-
-
-

Integer lectus lacus, condimentum vitae lectus vitae

-
-
- March 24th, 2014 -
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sagittis pellentesque lacus eleifend lacinia. Donec ut risus suscipit, convallis diam et, mattis urna. Phasellus sit amet ipsum nisl. Aliquam sed dictum neque. Vestibulum tempus at lacus et volutpat. Mauris molestie vel mauris id scelerisque. -
- -
-
-
-

Integer lectus lacus, condimentum vitae lectus vitae

-
-
- March 24th, 2014 -
-
- Lorem ipsum dolor sit amet. -
- -
- -
    - - - -
-
-
-
diff --git a/src/card/snippets/event.html b/src/card/snippets/event.html new file mode 100644 index 00000000..02353eba --- /dev/null +++ b/src/card/snippets/event.html @@ -0,0 +1,29 @@ + + +
+
+

+ Featured event:
+ May 24, 2016
+ 7-11pm +

+
+
+ + Add to Calendar + +
+
diff --git a/src/card/snippets/image.html b/src/card/snippets/image.html new file mode 100644 index 00000000..78e67448 --- /dev/null +++ b/src/card/snippets/image.html @@ -0,0 +1,22 @@ + + +
+
+
+ Image.jpg +
+
diff --git a/src/card/snippets/square.html b/src/card/snippets/square.html new file mode 100644 index 00000000..b5c0894c --- /dev/null +++ b/src/card/snippets/square.html @@ -0,0 +1,26 @@ + + +
+
+

Update

+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Aenan convallis. +
+
+ + View Updates + +
+
diff --git a/src/card/snippets/wide.html b/src/card/snippets/wide.html new file mode 100644 index 00000000..7fafe3a6 --- /dev/null +++ b/src/card/snippets/wide.html @@ -0,0 +1,33 @@ + + +
+
+

Welcome

+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Mauris sagittis pellentesque lacus eleifend lacinia... +
+
+ + Get Started + +
+
+ +
+