diff --git a/public/demo/images/usercard.png b/public/demo/images/usercard.png new file mode 100644 index 000000000..a83e51abe Binary files /dev/null and b/public/demo/images/usercard.png differ diff --git a/src/AppMenu.vue b/src/AppMenu.vue index 5f7b75b56..04569ce9c 100644 --- a/src/AppMenu.vue +++ b/src/AppMenu.vue @@ -48,6 +48,7 @@
● Accordion + ● Card ● Panel ● Fieldset ● FlexGrid diff --git a/src/assets/styles/primevue.css b/src/assets/styles/primevue.css index d408856b6..4e2913686 100644 --- a/src/assets/styles/primevue.css +++ b/src/assets/styles/primevue.css @@ -1,6 +1,7 @@ @import '../../components/common/Common.css'; @import '../../components/accordion/Accordion.css'; @import '../../components/button/Button.css'; +@import '../../components/card/Card.css'; @import '../../components/checkbox/Checkbox.css'; @import '../../components/fieldset/Fieldset.css'; @import '../../components/inputtext/InputText.css'; diff --git a/src/components/card/Card.css b/src/components/card/Card.css new file mode 100644 index 000000000..2c0d223d9 --- /dev/null +++ b/src/components/card/Card.css @@ -0,0 +1,24 @@ +.p-card-header img { + width: 100%; +} + +.p-card-body { + padding: 1em; +} + +.p-card-title { + font-size: 1.5em; + font-weight: bold; + margin-bottom: .5em; +} + +.p-card-subtitle { + opacity: .7; + margin-bottom: .5em; + margin-top: -.25em; + font-weight: bold; +} + +.p-card-footer { + padding-top: 1em; +} \ No newline at end of file diff --git a/src/components/card/Card.vue b/src/components/card/Card.vue new file mode 100644 index 000000000..7c82986bf --- /dev/null +++ b/src/components/card/Card.vue @@ -0,0 +1,23 @@ + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 92a975b66..2bcca6855 100644 --- a/src/main.js +++ b/src/main.js @@ -4,6 +4,7 @@ import router from './router'; import Accordion from './components/accordion/Accordion'; import AccordionTab from './components/accordion/AccordionTab'; import Button from './components/button/Button'; +import Card from './components/card/Card'; import Checkbox from './components/checkbox/Checkbox'; import InputText from './components/inputtext/InputText'; import Fieldset from './components/fieldset/Fieldset'; @@ -26,6 +27,7 @@ Vue.config.productionTip = false; Vue.component('p-accordion', Accordion); Vue.component('p-accordionTab', AccordionTab); Vue.component('p-button', Button); +Vue.component('p-card', Card); Vue.component('p-checkbox', Checkbox); Vue.component('p-inputtext', InputText); Vue.component('p-listbox', Listbox); diff --git a/src/router.js b/src/router.js index 5cb0a486a..e8a1cba67 100644 --- a/src/router.js +++ b/src/router.js @@ -21,6 +21,11 @@ export default new Router({ name: 'button', component: () => import('./views/button/ButtonDemo.vue') }, + { + path: '/card', + name: 'card', + component: () => import('./views/card/CardDemo.vue') + }, { path: '/checkbox', name: 'checkbox', diff --git a/src/views/card/CardDemo.vue b/src/views/card/CardDemo.vue new file mode 100644 index 000000000..ec81114db --- /dev/null +++ b/src/views/card/CardDemo.vue @@ -0,0 +1,39 @@ + \ No newline at end of file