61 lines
2.0 KiB
Vue
61 lines
2.0 KiB
Vue
|
<template>
|
||
|
<div>
|
||
|
<div class="content-section introduction">
|
||
|
<div class="feature-intro">
|
||
|
<h1>Card</h1>
|
||
|
<p>Card is a flexible container component.</p>
|
||
|
</div>
|
||
|
<AppDemoActions />
|
||
|
</div>
|
||
|
|
||
|
<div class="content-section implementation">
|
||
|
<Card style="width: 25rem; margin-bottom: 2em">
|
||
|
<template #title> Simple Card </template>
|
||
|
<template #content>
|
||
|
<p>
|
||
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque
|
||
|
quas!
|
||
|
</p>
|
||
|
</template>
|
||
|
</Card>
|
||
|
|
||
|
<Card style="width: 25em">
|
||
|
<template #header>
|
||
|
<img alt="user header" src="demo/images/usercard.png" />
|
||
|
</template>
|
||
|
<template #title> Advanced Card </template>
|
||
|
<template #subtitle> Card subtitle </template>
|
||
|
<template #content>
|
||
|
<p>
|
||
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque
|
||
|
quas!
|
||
|
</p>
|
||
|
</template>
|
||
|
<template #footer>
|
||
|
<Button icon="pi pi-check" label="Save" />
|
||
|
<Button icon="pi pi-times" label="Cancel" class="p-button-secondary" style="margin-left: 0.5em" />
|
||
|
</template>
|
||
|
</Card>
|
||
|
</div>
|
||
|
|
||
|
<CardDoc />
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import CardDoc from './CardDoc';
|
||
|
|
||
|
export default {
|
||
|
components: {
|
||
|
CardDoc: CardDoc
|
||
|
}
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss" scoped>
|
||
|
p {
|
||
|
line-height: 1.5;
|
||
|
margin: 0;
|
||
|
}
|
||
|
</style>
|