From 8d0fb87da5fcb9e9476a8a180c0f94da1160c589 Mon Sep 17 00:00:00 2001 From: kachourihassen <60717797+kachourihassen@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:52:38 +0100 Subject: [PATCH] Generate brief with AI (#593) * Generate brief with AI * wip * en api key --- .../draft-campaign-presentation.component.css | 23 +++++- ...draft-campaign-presentation.component.html | 74 ++++++++++++------- .../draft-campaign-presentation.component.ts | 28 ++++++- src/app/campaigns/facade/campaigns.facade.ts | 4 + .../services/campaign/campaign.service.ts | 15 ++++ src/assets/i18n/en.json | 3 +- src/assets/i18n/fr.json | 3 +- src/environments/environment.prod.ts | 1 + src/environments/environment.ts | 2 +- 9 files changed, 119 insertions(+), 34 deletions(-) diff --git a/src/app/campaigns/components/draft-campaign-presentation/draft-campaign-presentation.component.css b/src/app/campaigns/components/draft-campaign-presentation/draft-campaign-presentation.component.css index be16b9e97..44d86d89b 100755 --- a/src/app/campaigns/components/draft-campaign-presentation/draft-campaign-presentation.component.css +++ b/src/app/campaigns/components/draft-campaign-presentation/draft-campaign-presentation.component.css @@ -446,4 +446,25 @@ ng-deep .cropper .resize-bar { ::ng-deep.CodeMirror pre { white-space: pre !important; -} \ No newline at end of file +} +.btn-blue { + font-style: normal; + font-weight: 600; + font-size: 18px; + line-height: 48.4px; + align-items: center; + text-align: center; + letter-spacing: 0.03em; + border: none; + color: #ffff; + background: #4048ff; + box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); + border-radius: 30px; + width: 100%; + height: 48px; +} + +.btn-blue:hover:enabled { + background: linear-gradient(85.14deg, #f52079 -1.05%, #4048ff 103.39%); + box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); +} diff --git a/src/app/campaigns/components/draft-campaign-presentation/draft-campaign-presentation.component.html b/src/app/campaigns/components/draft-campaign-presentation/draft-campaign-presentation.component.html index 165371bdd..6cacdd0db 100755 --- a/src/app/campaigns/components/draft-campaign-presentation/draft-campaign-presentation.component.html +++ b/src/app/campaigns/components/draft-campaign-presentation/draft-campaign-presentation.component.html @@ -8,24 +8,52 @@ }} +