-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christoph Wurst <[email protected]>
- Loading branch information
1 parent
6f9dac3
commit 2e9bc89
Showing
3 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<!-- | ||
- @copyright Copyright (c) 2022 Christoph Wurst <christoph@winzerhof-wurst.at> | ||
- | ||
- @author Christoph Wurst <[email protected]> | ||
- @author Richard Steinmetz <[email protected]> | ||
- | ||
- @license GNU AGPL version 3 or any later version | ||
- | ||
- This program is free software: you can redistribute it and/or modify | ||
- it under the terms of the GNU Affero General Public License as | ||
- published by the Free Software Foundation, either version 3 of the | ||
- License, or (at your option) any later version. | ||
- | ||
- This program is distributed in the hope that it will be useful, | ||
- but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
- GNU Affero General Public License for more details. | ||
- | ||
- You should have received a copy of the GNU Affero General Public License | ||
- along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
- | ||
--> | ||
<docs> | ||
### General description | ||
|
||
This components provides a wrapper around a guest page content. | ||
|
||
### Usage | ||
|
||
```vue | ||
<template> | ||
<NcGuestContent> | ||
<h2>Hello guest</h2> | ||
<span>How are you?</span> | ||
</NcGuestContent> | ||
</template> | ||
``` | ||
</docs> | ||
|
||
<template> | ||
<div id="guest-content-vue"> | ||
<slot /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
/** | ||
* Guest content container to be used for the guest content of your app | ||
*/ | ||
export default { | ||
name: 'NcGuestContent', | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
#guest-content-vue { | ||
color: var(--color-main-text); | ||
background-color: var(--color-main-background); | ||
min-width: 0; | ||
border-radius: var(--border-radius-large); | ||
box-shadow: 0 0 10px var(--color-box-shadow); | ||
height: fit-content; | ||
padding: 15px; | ||
margin: 20px auto; | ||
} | ||
</style> | ||
|
||
<style lang="scss"> | ||
#content { | ||
// Enable scrolling | ||
overflow: auto; | ||
|
||
// Fix box being cutoff at the bottom | ||
margin-bottom: 0; | ||
height: calc(var(--body-height) + var(--body-container-margin)); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* @copyright 2022 Christoph Wurst <[email protected]> | ||
* | ||
* @author 2022 Christoph Wurst <[email protected]> | ||
* | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
export { default } from './NcGuestContent.vue' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters