Skip to content

Commit

Permalink
Add page 2
Browse files Browse the repository at this point in the history
Signed-off-by: Marco <[email protected]>
  • Loading branch information
marcoambrosini committed Oct 12, 2023
1 parent 07928d2 commit 8f47b7a
Show file tree
Hide file tree
Showing 6 changed files with 343 additions and 6 deletions.
Binary file modified .DS_Store
Binary file not shown.
289 changes: 285 additions & 4 deletions js/firstrunwizard-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/firstrunwizard-main.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<div v-if="page === 0" class="logo" :style="logoStyle" />
<Page0 v-if="page === 0" @next="goToNextPage" />
<Page1 v-if="page === 1" @next="goToNextPage" />
<Page2 v-if="page === 2" @close="close" />
</div>
</NcModal>
</template>
Expand All @@ -28,6 +29,7 @@ import { imagePath } from '@nextcloud/router'
import Page0 from './components/Page0.vue'
import Page1 from './components/Page1.vue'
import Page2 from './components/Page2.vue'
import ArrowLeft from 'vue-material-design-icons/ArrowLeft.vue'
Expand All @@ -39,6 +41,7 @@ export default {
Page1,
NcButton,
ArrowLeft,
Page2,
},
data() {
Expand Down Expand Up @@ -68,6 +71,7 @@ export default {
},
close() {
this.page = 0
this.showModal = false
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Page0.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="page-0">
<h2 class="page__heading">
{{ t('firstrunwizard', 'A collaboration platform that puts you in control.') }}
{{ t('firstrunwizard', 'A collaboration platform that puts you in control') }}
</h2>
<div class="page__wrapper">
<Card :title="t('firstrunwizard', 'Privacy')"
Expand Down
52 changes: 52 additions & 0 deletions src/components/Page2.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<template>
<div>
<h2 class="page__heading">
{{ t('firstrunwizard', 'More about Nextcloud') }}
</h2>
<div class="page__wrapper">
<Card href="https://www.nextcloud.com"
:title="t('firstrunwizard', 'Explore more apps ↗')"
:subtitle="t('firstrunwizard', 'Extend the functionality of Nextcloud with hundreds of community-developed apps.')" />
<Card href="https://www.nextcloud.com"
:title="t('firstrunwizard', 'Get involved! ↗')"
:subtitle="t('firstrunwizard', 'Be a part of the community that helps build, design, translate and promote Nextcloud!')" />
<Card href="https://www.nextcloud.com"
:title="t('firstrunwizard', 'Need help? ↗')"
:subtitle="t('firstrunwizard', 'Find out more about your Nextcloud setup with the admin, user or developer documentation.')" />
<Card href="https://www.nextcloud.com"
:title="t('firstrunwizard', 'For large organisations ↗')"
:subtitle="t('firstrunwizard', 'Get Nextcloud Enterprise for mission critical environments where advanced security and compliance are important.')" />
</div>
<NcButton type="primary"
alignment="center-reverse"
:wide="true"
@click="$emit('close')">
<template #icon>
<ArrowRight :size="20" />
</template>
{{ t('firstrunwizard', 'Get started!') }}
</NcButton>
</div>
</template>

<script>
import Card from './Card.vue'
import AppStoreBadge from './AppStoreBadge.vue'
import ArrowRight from 'vue-material-design-icons/ArrowRight.vue'
import { NcButton } from '@nextcloud/vue'
export default {
name: 'Page2',
components: {
NcButton,
ArrowRight,
Card,
AppStoreBadge,

Check failure on line 45 in src/components/Page2.vue

View workflow job for this annotation

GitHub Actions / eslint

The "AppStoreBadge" component has been registered but not used
},
}
</script>

<style lang="scss" scoped>
@import "pageStyles";
</style>

0 comments on commit 8f47b7a

Please sign in to comment.