From 5d9a7367e9f0bcd566a7667342f05fa7220ce6a9 Mon Sep 17 00:00:00 2001 From: Dan Funk Date: Fri, 13 Sep 2024 14:23:44 -0400 Subject: [PATCH] Add hubspot form. --- README.md | 2 +- src/app/training/training.component.html | 14 +++++++++++++- src/app/training/training.component.ts | 12 ++++++++++++ src/index.html | 2 ++ 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ffa073a..eec4b89 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protrac You can re-deploy our website if you have permission to contribute to this repository. ```bash ng build --configuration production --base-href https://sartography.com/ -ngh --dir=dist/sartography-website/ --cname=sartography.com +ngh --dir=dist/sartography-website/browser --cname=sartography.com ``` ## Further help diff --git a/src/app/training/training.component.html b/src/app/training/training.component.html index f17b761..eb91eee 100644 --- a/src/app/training/training.component.html +++ b/src/app/training/training.component.html @@ -81,7 +81,19 @@ courses, you'll be equipped to accomplish highly complex tasks and improve collaboration across your organization.

- Enroll in Training Today +
+

Complete the form below, and we'll get your class scheduled!

+
+
+
+ + diff --git a/src/app/training/training.component.ts b/src/app/training/training.component.ts index 4c82cab..7eb2fbe 100644 --- a/src/app/training/training.component.ts +++ b/src/app/training/training.component.ts @@ -3,6 +3,8 @@ import {isEven} from '../util'; import {NgIf} from '@angular/common'; import {InlineSVGModule} from 'ng-inline-svg-2'; +declare var hbspt: any + @Component({ selector: 'app-training', standalone: true, @@ -16,4 +18,14 @@ import {InlineSVGModule} from 'ng-inline-svg-2'; export class TrainingComponent { protected readonly isEven = isEven; + + + ngAfterContentInit() { + hbspt.forms.create({ + region: "na1", + portalId: "42562038", + formId: "86fbeaf0-3ec2-4827-9555-5002d57bdce3", + target: "#hubspotForm" + }); + } } diff --git a/src/index.html b/src/index.html index 730f4c3..b76f85a 100644 --- a/src/index.html +++ b/src/index.html @@ -9,6 +9,8 @@ + +