-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): Page for Terms and Conditions (#3116)
# Motivation We need a Terms and Condition page for OISY. The text was approved by Legal team. So, in this PR, we define the component to be used. https://github.com/user-attachments/assets/f457db63-d6e8-48d8-9982-f93f71376baf --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
331e55a
commit c766ba2
Showing
4 changed files
with
82 additions
and
2 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
src/frontend/src/lib/components/terms-and-conditions/TermsAndConditions.svelte
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,33 @@ | ||
<script lang="ts"> | ||
import { Html } from '@dfinity/gix-components'; | ||
import { i18n } from '$lib/stores/i18n.store.js'; | ||
import { replaceOisyPlaceholders } from '$lib/utils/i18n.utils.js'; | ||
let termsList: string[]; | ||
$: termsList = [ | ||
$i18n.terms_and_conditions.text.paragraph_1, | ||
$i18n.terms_and_conditions.text.paragraph_2, | ||
$i18n.terms_and_conditions.text.paragraph_3, | ||
$i18n.terms_and_conditions.text.limited_license, | ||
$i18n.terms_and_conditions.text.restrictions, | ||
$i18n.terms_and_conditions.text.applicable_laws, | ||
$i18n.terms_and_conditions.text.reservation_rights, | ||
$i18n.terms_and_conditions.text.feedback, | ||
$i18n.terms_and_conditions.text.termination, | ||
$i18n.terms_and_conditions.text.warranty_liability, | ||
$i18n.terms_and_conditions.text.indemnity, | ||
$i18n.terms_and_conditions.text.governing_law, | ||
$i18n.terms_and_conditions.text.entire_agreement, | ||
$i18n.terms_and_conditions.text.assignment, | ||
$i18n.terms_and_conditions.text.no_waiver, | ||
$i18n.terms_and_conditions.text.english_version | ||
]; | ||
</script> | ||
|
||
<h1 class="text-5xl">{replaceOisyPlaceholders($i18n.terms_and_conditions.text.title)}</h1> | ||
|
||
<section class="mt-12"> | ||
{#each termsList as terms} | ||
<p><Html text={replaceOisyPlaceholders(terms)} /></p> | ||
{/each} | ||
</section> |
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
7 changes: 5 additions & 2 deletions
7
src/frontend/src/routes/(public)/terms-and-conditions/+page.svelte
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,2 +1,5 @@ | ||
<!--TODO: Add Terms and Conditions content here--> | ||
<slot /> | ||
<script lang="ts"> | ||
import TermsAndConditions from '$lib/components/terms-and-conditions/TermsAndConditions.svelte'; | ||
</script> | ||
|
||
<TermsAndConditions /> |