-
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
1 parent
97f1d43
commit 8019d78
Showing
7 changed files
with
283 additions
and
1 deletion.
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
87 changes: 87 additions & 0 deletions
87
src/components/section/cloud/SectionCloudAccountContent.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<!-- | ||
* This file is part of prose-web | ||
* | ||
* Copyright 2024, Prose Foundation | ||
--> | ||
|
||
<!-- ********************************************************************** | ||
TEMPLATE | ||
********************************************************************** --> | ||
|
||
<template lang="pug"> | ||
.c-section-cloud-account-content | ||
.c-section-cloud-account-content__title | ||
page-wrapper | ||
base-title( | ||
level="medium" | ||
align="center" | ||
tint="gradient" | ||
) | ||
| {{ title }} | ||
|
||
span.c-section-cloud-account-content__title-emoji( | ||
v-if="titleEmoji" | ||
) | ||
base-space( | ||
:repeat="2" | ||
) | ||
|
||
| {{ titleEmoji }} | ||
|
||
.c-section-cloud-account-content__form | ||
page-wrapper | ||
slot | ||
</template> | ||
|
||
<!-- ********************************************************************** | ||
SCRIPT | ||
********************************************************************** --> | ||
|
||
<script> | ||
export default { | ||
name: "SectionCloudAccountContent", | ||
|
||
props: { | ||
title: { | ||
type: String, | ||
required: true | ||
}, | ||
|
||
titleEmoji: { | ||
type: String, | ||
default: null | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<!-- ********************************************************************** | ||
STYLE | ||
********************************************************************** --> | ||
|
||
<style lang="scss"> | ||
$c: ".c-section-cloud-account-content"; | ||
|
||
#{$c} { | ||
display: flex; | ||
flex-direction: column; | ||
|
||
#{$c}__title { | ||
flex: 0 0 auto; | ||
|
||
#{$c}__title-emoji { | ||
user-select: none; | ||
|
||
/* Hack: disable inherited text fill color so that emoji shows up. */ | ||
@include text-fill-color(currentcolor); | ||
} | ||
} | ||
|
||
#{$c}__form { | ||
background-color: rgba($color-background-secondary, 0.5); | ||
border-top: 1px solid $color-border-tertiary; | ||
margin-top: $section-form-margin-top; | ||
flex: 1; | ||
} | ||
} | ||
</style> |
30 changes: 30 additions & 0 deletions
30
src/components/section/cloud/SectionCloudSigninAuthenticate.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!-- | ||
* This file is part of prose-web | ||
* | ||
* Copyright 2024, Prose Foundation | ||
--> | ||
|
||
<!-- ********************************************************************** | ||
TEMPLATE | ||
********************************************************************** --> | ||
|
||
<template lang="pug"> | ||
.c-section-cloud-signin-authenticate | ||
page-wrapper | ||
base-title( | ||
level="medium" | ||
align="center" | ||
tint="gradient" | ||
) | ||
| Log in to your workspace | ||
</template> | ||
|
||
<!-- ********************************************************************** | ||
SCRIPT | ||
********************************************************************** --> | ||
|
||
<script> | ||
export default { | ||
name: "SectionCloudSigninAuthenticate" | ||
}; | ||
</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,60 @@ | ||
<!-- | ||
* This file is part of prose-web | ||
* | ||
* Copyright 2024, Prose Foundation | ||
--> | ||
|
||
<!-- ********************************************************************** | ||
TEMPLATE | ||
********************************************************************** --> | ||
|
||
<template lang="pug"> | ||
.p-cloud-account-settings | ||
section-cloud-account-content( | ||
title="Your account settings" | ||
class="p-cloud-account-settings__content" | ||
) | ||
</template> | ||
|
||
<!-- ********************************************************************** | ||
SCRIPT | ||
********************************************************************** --> | ||
|
||
<script setup> | ||
definePageMeta({ | ||
layout: "embedding" | ||
}); | ||
|
||
// Disable indexing of page | ||
defineRouteRules({ | ||
robots: false | ||
}); | ||
|
||
// Set page title | ||
useHead({ | ||
title: "Your Prose account settings" | ||
}); | ||
</script> | ||
|
||
<script> | ||
export default { | ||
name: "CloudAccountSettingsPage" | ||
}; | ||
</script> | ||
|
||
<!-- ********************************************************************** | ||
STYLE | ||
********************************************************************** --> | ||
|
||
<style lang="scss"> | ||
$c: ".p-cloud-account-settings"; | ||
|
||
#{$c} { | ||
display: flex; | ||
flex-direction: column; | ||
|
||
#{$c}__content { | ||
flex: 1; | ||
} | ||
} | ||
</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,61 @@ | ||
<!-- | ||
* This file is part of prose-web | ||
* | ||
* Copyright 2024, Prose Foundation | ||
--> | ||
|
||
<!-- ********************************************************************** | ||
TEMPLATE | ||
********************************************************************** --> | ||
|
||
<template lang="pug"> | ||
.p-cloud-account-workspaces | ||
section-cloud-account-content( | ||
title="Welcome back, Valerian" | ||
title-emoji="👋" | ||
class="p-cloud-account-workspaces__content" | ||
) | ||
</template> | ||
|
||
<!-- ********************************************************************** | ||
SCRIPT | ||
********************************************************************** --> | ||
|
||
<script setup> | ||
definePageMeta({ | ||
layout: "embedding" | ||
}); | ||
|
||
// Disable indexing of page | ||
defineRouteRules({ | ||
robots: false | ||
}); | ||
|
||
// Set page title | ||
useHead({ | ||
title: "Your Prose workspaces" | ||
}); | ||
</script> | ||
|
||
<script> | ||
export default { | ||
name: "CloudAccountWorkspacesPage" | ||
}; | ||
</script> | ||
|
||
<!-- ********************************************************************** | ||
STYLE | ||
********************************************************************** --> | ||
|
||
<style lang="scss"> | ||
$c: ".p-cloud-account-workspaces"; | ||
|
||
#{$c} { | ||
display: flex; | ||
flex-direction: column; | ||
|
||
#{$c}__content { | ||
flex: 1; | ||
} | ||
} | ||
</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,40 @@ | ||
<!-- | ||
* This file is part of prose-web | ||
* | ||
* Copyright 2024, Prose Foundation | ||
--> | ||
|
||
<!-- ********************************************************************** | ||
TEMPLATE | ||
********************************************************************** --> | ||
|
||
<template lang="pug"> | ||
.p-cloud-signin | ||
section-cloud-signin-authenticate | ||
</template> | ||
|
||
<!-- ********************************************************************** | ||
SCRIPT | ||
********************************************************************** --> | ||
|
||
<script setup> | ||
definePageMeta({ | ||
layout: "embedding" | ||
}); | ||
|
||
// Disable indexing of page | ||
defineRouteRules({ | ||
robots: false | ||
}); | ||
|
||
// Set page title | ||
useHead({ | ||
title: "Sign in to Prose Cloud" | ||
}); | ||
</script> | ||
|
||
<script> | ||
export default { | ||
name: "CloudSigninPage" | ||
}; | ||
</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