Skip to content

Commit 7830311

Browse files
committed
Add industry solutions pages and contact forms (partner, demo, sales)
1 parent 34c5d98 commit 7830311

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2099
-0
lines changed

assets/js/becomepartner.js

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
"use strict";
2+
3+
const REQUEST_BECOME_PARTNER_URL = STORE_API_URL + '/become-partner/request';
4+
5+
class BecomePartner {
6+
7+
constructor(form, feedbackData, submitData) {
8+
this._form = form;
9+
this._feedbackData = feedbackData;
10+
this._submitData = submitData;
11+
}
12+
13+
request() {
14+
if (!$(this._form)[0].checkValidity()) {
15+
$(this._form).find(':input').addClass('show-invalid');
16+
this._feedbackData.errorMessage = 'Please fill in all required fields.';
17+
return;
18+
}
19+
20+
this._feedbackData.success = false;
21+
this._feedbackData.inProgress = true;
22+
this._feedbackData.errorMessage = '';
23+
$.ajax({
24+
url: REQUEST_BECOME_PARTNER_URL,
25+
type: 'POST',
26+
data: this._submitData
27+
}).done(_ => {
28+
this.onRequestSucceeded();
29+
if (this._submitData.acceptNewsletter) {
30+
subscribeToNewsletter(this._submitData.email, 7);
31+
}
32+
}).fail(xhr => {
33+
this.onRequestFailed(xhr.responseJSON?.message || 'Partner application failed.');
34+
});
35+
}
36+
37+
onRequestFailed(error) {
38+
this._feedbackData.success = false;
39+
this._feedbackData.inProgress = false;
40+
this._feedbackData.errorMessage = error;
41+
}
42+
43+
onRequestSucceeded() {
44+
this._feedbackData.success = true;
45+
this._feedbackData.inProgress = false;
46+
this._feedbackData.errorMessage = '';
47+
window.scrollTo(0, 0);
48+
}
49+
50+
}

assets/js/bookdemo.js

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
"use strict";
2+
3+
const REQUEST_BOOK_DEMO_URL = STORE_API_URL + '/book-demo/request';
4+
5+
class BookDemo {
6+
7+
constructor(form, feedbackData, submitData) {
8+
this._form = form;
9+
this._feedbackData = feedbackData;
10+
this._submitData = submitData;
11+
}
12+
13+
request() {
14+
if (!$(this._form)[0].checkValidity()) {
15+
$(this._form).find(':input').addClass('show-invalid');
16+
this._feedbackData.errorMessage = 'Please fill in all required fields.';
17+
return;
18+
}
19+
20+
this._feedbackData.success = false;
21+
this._feedbackData.inProgress = true;
22+
this._feedbackData.errorMessage = '';
23+
$.ajax({
24+
url: REQUEST_BOOK_DEMO_URL,
25+
type: 'POST',
26+
data: this._submitData
27+
}).done(_ => {
28+
this.onRequestSucceeded();
29+
if (this._submitData.acceptNewsletter) {
30+
subscribeToNewsletter(this._submitData.email, 7);
31+
}
32+
}).fail(xhr => {
33+
this.onRequestFailed(xhr.responseJSON?.message || 'Booking demo failed.');
34+
});
35+
}
36+
37+
onRequestFailed(error) {
38+
this._feedbackData.success = false;
39+
this._feedbackData.inProgress = false;
40+
this._feedbackData.errorMessage = error;
41+
}
42+
43+
onRequestSucceeded() {
44+
this._feedbackData.success = true;
45+
this._feedbackData.inProgress = false;
46+
this._feedbackData.errorMessage = '';
47+
window.scrollTo(0, 0);
48+
}
49+
50+
}

assets/js/contactsales.js

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
"use strict";
2+
3+
const REQUEST_CONTACT_SALES_URL = STORE_API_URL + '/contact-sales/request';
4+
5+
class ContactSales {
6+
7+
constructor(form, feedbackData, submitData) {
8+
this._form = form;
9+
this._feedbackData = feedbackData;
10+
this._submitData = submitData;
11+
}
12+
13+
request() {
14+
if (!$(this._form)[0].checkValidity()) {
15+
$(this._form).find(':input').addClass('show-invalid');
16+
this._feedbackData.errorMessage = 'Please fill in all required fields.';
17+
return;
18+
}
19+
20+
this._feedbackData.success = false;
21+
this._feedbackData.inProgress = true;
22+
this._feedbackData.errorMessage = '';
23+
$.ajax({
24+
url: REQUEST_CONTACT_SALES_URL,
25+
type: 'POST',
26+
data: this._submitData
27+
}).done(_ => {
28+
this.onRequestSucceeded();
29+
if (this._submitData.acceptNewsletter) {
30+
subscribeToNewsletter(this._submitData.email, 7);
31+
}
32+
}).fail(xhr => {
33+
this.onRequestFailed(xhr.responseJSON?.message || 'Contacting sales failed.');
34+
});
35+
}
36+
37+
onRequestFailed(error) {
38+
this._feedbackData.success = false;
39+
this._feedbackData.inProgress = false;
40+
this._feedbackData.errorMessage = error;
41+
}
42+
43+
onRequestSucceeded() {
44+
this._feedbackData.success = true;
45+
this._feedbackData.inProgress = false;
46+
this._feedbackData.errorMessage = '';
47+
window.scrollTo(0, 0);
48+
}
49+
50+
}

content/become-a-partner.de.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: "Partner werden"
3+
description: "Treten Sie unserem Partnerprogramm bei und helfen Sie Organisationen dabei, ihre Daten mit Cryptomators Verschlüsselungslösungen zu sichern. Lassen Sie Ihr Geschäft mit unserer bewährten Technologie wachsen."
4+
type: "become-a-partner"
5+
---

content/become-a-partner.en.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: "Become a Partner"
3+
description: "Join our partner program and help organizations secure their data with Cryptomator's encryption solutions. Grow your business with our proven technology."
4+
type: "become-a-partner"
5+
---

content/book-a-demo.de.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: "Demo buchen"
3+
description: "Vereinbaren Sie eine persönliche Demo von Cryptomator Hub und erfahren Sie, wie es die Daten Ihres Teams sichert und Ihre Cloud-Speicher-Workflows optimiert."
4+
type: book-a-demo
5+
---

content/book-a-demo.en.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: "Book a Demo"
3+
description: "Schedule a personalized demo of Cryptomator Hub to see how it can secure your team's data and streamline your cloud storage workflows."
4+
type: book-a-demo
5+
---

content/contact-sales.de.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: "Vertrieb kontaktieren"
3+
description: "Nehmen Sie Kontakt mit unserem Vertriebsteam auf, um Preise, technische Integration, Compliance-Anforderungen oder andere Fragen zu Cryptomator Hub zu besprechen."
4+
type: contact-sales
5+
---

content/contact-sales.en.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: "Contact Sales"
3+
description: "Get in touch with our sales team to discuss pricing, technical integration, compliance requirements, or any other questions about Cryptomator Hub."
4+
type: contact-sales
5+
---

content/solutions/_index.de.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: "Lösungen"
3+
type: "solutions"
4+
description: "Sehen Sie, wie Organisationen aus Bildung, Gesundheitswesen, Fertigung und anderen Branchen Cryptomator Hub nutzen, um ihre sensiblen Daten mit Zero-Knowledge-Verschlüsselung zu sichern."
5+
---

0 commit comments

Comments
 (0)