-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jan-jaap
committed
Jun 6, 2024
1 parent
42872e2
commit c08bc3e
Showing
18 changed files
with
286 additions
and
265 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
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
<template> | ||
<v-container class="ma-0 pa-0" fluid> | ||
<slot></slot> | ||
</v-container> | ||
</template> | ||
<script> | ||
export default {}; | ||
</script> |
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,20 @@ | ||
<template> | ||
<v-container v-if="auth"> | ||
<pre><slot></slot></pre> | ||
</v-container> | ||
</template> | ||
<script> | ||
import PageSection from "@/components/layout/sections/PageSection.vue"; | ||
export default { | ||
name: "DebugSection", | ||
components: { PageSection }, | ||
}; | ||
</script> | ||
<style scoped> | ||
pre { | ||
border: solid 1px red; | ||
padding: 1rem; | ||
margin: 2rem 0; | ||
} | ||
</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 |
---|---|---|
@@ -1,27 +1,33 @@ | ||
<template> | ||
<v-container class="ma-0 pa-0" fluid> | ||
<div class="bg-primary text-white"> | ||
<v-container class="pt-16 pb-12"> | ||
<h1 class="text-h3">{{ ucTitle }}</h1> | ||
</v-container> | ||
<v-parallax src="/images/parently_light.jpg" color="primary" height="600px"> | ||
<div class="py-16 d-flex flex-column align-center justify-center flex-grow-1 h-100"> | ||
<img class="main-image pa-4" alt="Parently" src="/images/logo.svg"> | ||
<h1 class="text-center text-primary text-h3 mb-8">Share care together</h1> | ||
<div class="py-4 d-flex justify-center"> | ||
<template v-if="!user"> | ||
<v-btn class="mx-2" size="large" color="primary" :to="{name: 'login'}">{{ $t('guest.login') }}</v-btn> | ||
<v-btn class="mx-2" size="large" color="warning" href="/register">{{ $t('guest.register') }}</v-btn> | ||
</template> | ||
<template v-if="user"> | ||
<v-btn class="mx-2" size="large" color="warning" :to="{name: 'dashboard'}">{{ $t('portal.title') }}</v-btn> | ||
</template> | ||
</div> | ||
</div> | ||
<slot></slot> | ||
</v-container> | ||
</v-parallax> | ||
|
||
</template> | ||
<script> | ||
import { computed } from "vue"; | ||
import {mapActions, mapState} from "pinia"; | ||
import {useAuthStore} from "@/stores/auth/index.js"; | ||
export default { | ||
props: { | ||
section: Object, | ||
}, | ||
name: 'HeroSection', | ||
computed: { | ||
ucTitle() { | ||
return ( | ||
this.section.title && | ||
this.section.title[0].toUpperCase() + this.section.title.slice(1) | ||
); | ||
}, | ||
...mapState(useAuthStore, ['user']), | ||
}, | ||
}; | ||
methods: { | ||
...mapActions(useAuthStore, ['logout']) | ||
} | ||
} | ||
</script> |
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
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
2 changes: 1 addition & 1 deletion
2
...iews/Public/Home/Sections/TextSection.vue → ...omponents/layout/sections/TextSection.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
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,27 @@ | ||
<template> | ||
<v-container class="ma-0 pa-0" fluid> | ||
<div class="bg-primary text-white"> | ||
<v-container class="pt-16 pb-12"> | ||
<h1 class="text-h3">{{ ucTitle }}</h1> | ||
</v-container> | ||
</div> | ||
<slot></slot> | ||
</v-container> | ||
</template> | ||
<script> | ||
import { computed } from "vue"; | ||
export default { | ||
props: { | ||
section: Object, | ||
}, | ||
computed: { | ||
ucTitle() { | ||
return ( | ||
this.section.title && | ||
this.section.title[0].toUpperCase() + this.section.title.slice(1) | ||
); | ||
}, | ||
}, | ||
}; | ||
</script> |
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
Oops, something went wrong.