-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: MANAGER-13826 Signed-off-by: Vincent BONMARCHAND <vincent.bonmarchand.ext@corp.ovh.com>
- Loading branch information
Showing
4 changed files
with
72 additions
and
86 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
55 changes: 11 additions & 44 deletions
55
packages/manager/apps/key-management-service/src/pages/onboarding/index.tsx
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,59 +1,26 @@ | ||
import React from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
import { Card, OnboardingLayout } from '@ovhcloud/manager-components'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import { OnboardingLayout } from '@ovhcloud/manager-components'; | ||
import onboardingImgSrc from './onboarding-img.png'; | ||
import { ROUTES_URLS } from '@/routes/routes.constants'; | ||
|
||
export default function Onboarding() { | ||
const { t } = useTranslation('key-management-service/onboarding'); | ||
|
||
const tileList = [ | ||
{ | ||
id: 1, | ||
texts: { | ||
title: t('guide1Title'), | ||
description: t('guide1Description'), | ||
category: t('guideCategory'), | ||
}, | ||
href: 'https://ovh/com/link/1', | ||
}, | ||
{ | ||
id: 2, | ||
texts: { | ||
title: t('guide2Title'), | ||
description: t('guide2Description'), | ||
category: t('guideCategory'), | ||
}, | ||
href: 'https://ovh/com/link/2', | ||
}, | ||
{ | ||
id: 3, | ||
texts: { | ||
title: t('guide3Title'), | ||
description: t('guide3Description'), | ||
category: t('guideCategory'), | ||
}, | ||
href: 'https://ovh/com/link/3', | ||
}, | ||
]; | ||
|
||
const title: string = t('title'); | ||
const description: string = t('description'); | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<OnboardingLayout | ||
title={title} | ||
title={t('title')} | ||
img={{ src: onboardingImgSrc }} | ||
description={description} | ||
description={t('description')} | ||
additionalDescriptions={[t('description_secondary')]} | ||
orderButtonLabel={t('orderButtonLabel')} | ||
orderHref={t('orderButtonLink')} | ||
onOrderButtonClick={() => | ||
navigate(ROUTES_URLS.createKeyManagementService) | ||
} | ||
moreInfoButtonLabel={t('moreInfoButtonLabel')} | ||
moreInfoHref={t('moreInfoButtonLink')} | ||
> | ||
<aside className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-8 pt-12"> | ||
{tileList.map((tile) => ( | ||
<Card key={tile.id} href={tile.href} texts={tile.texts} /> | ||
))} | ||
</aside> | ||
</OnboardingLayout> | ||
></OnboardingLayout> | ||
); | ||
} |
Binary file modified
BIN
-6.88 KB
(15%)
...ges/manager/apps/key-management-service/src/pages/onboarding/onboarding-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 6 additions & 16 deletions
22
...ent-service/src/public/translations/key-management-service/onboarding/Messages_fr_FR.json
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,18 +1,8 @@ | ||
{ | ||
"title": "key-management-service", | ||
"description": "Découvrez des services de stockage managés qui s’appuient sur le système de fichiers OpenZFS. Bénéficiez en quelques clics d’espaces de stockage centralisés pour entreposer ou sauvegarder vos données et fichiers.", | ||
"orderButtonLabel": "Commander un key-management-service", | ||
"orderButtonLink": "/#/dedicated/key-management-service/order", | ||
"moreInfoButtonLabel": "En savoir plus sur key-management-service", | ||
"moreInfoButtonLink": "/#/dedicated/key-management-service/info", | ||
"guideCategory": "Tutoriel", | ||
"guide1Title": "Premiers pas avec un key-management-service", | ||
"guide1Description": "Découvrez comment gérer un NAS-HA depuis l'espace-client OVHcloud", | ||
"guide1Link": "https://help.ovhcloud.com/csm/fr-public-cloud-storage-nas-get-started?id=kb_article_view&sysparm_article=KB0046704", | ||
"guide2Title": "Monter votre NAS via un partage NFS", | ||
"guide2Description": "Découvrez comment monter un NAS via un partage NFS", | ||
"guide2Link": "https://help.ovhcloud.com/csm/fr-public-cloud-storage-nas-nfs?id=kb_article_view&sysparm_article=KB0046742", | ||
"guide3Title": "Monter votre NAS sur Windows Server via CIFS", | ||
"guide3Description": "Découvrez comment monter un NAS sur Windows Server via le protocole CIFS", | ||
"guide3Link": "https://help.ovhcloud.com/csm/fr-public-cloud-storage-nas-cifs?id=kb_article_view&sysparm_article=KB0046672" | ||
"title": "OVHcloud Key Management Service", | ||
"description": "Gardez le contrôle du chiffrement de vos données sensibles.", | ||
"description_secondary": "OVHcloud KMS est le service centralisé de chiffrement entièrement managé pour sécuriser vos données dans vos applications et vos services OVHcloud", | ||
"orderButtonLabel": "Commander un KMS", | ||
"moreInfoButtonLabel": "En savoir plus", | ||
"moreInfoButtonLink": "https://help.ovhcloud.com/csm/fr-documentation-manage-operate?id=kb_browse_cat&kb_id=3d4a8129a884a950f07829d7d5c75243" | ||
} |