diff --git a/content/_index.md b/content/_index.md
index 0500f89..1bd9e90 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -8,32 +8,27 @@ showTitle: false
Teens For Christ Connection (TFC) is a rural ministry reaching out to the mission field of teenagers in rural communities across Northwest Kansas and Southwest Nebraska. In rural communities where youth ministry programs and resources are limited, TFC desires to partner with churches to meet this need. Whether this is through providing community youth groups, coaching those already working with youth, or supplying resources and extra curricular activities for area ministries, TFC desires to connect teens with the truth of Jesus Christ and equip them to live out the Great Commission.
-
-
-
-
-
-
+
-
+{{< spacing height=h-4 >}}
-> If you need to fill out a health form, please do so [here](/health-form).
->
-> Please also fill out the:
-> - [parent reference form](/mt-parent-form)
-> - [teacher reference form](/mt-teacher-form)
-> - [church reference form](/mt-church-form)
+> If you need to fill out a camp health form, please do so [here](/camp-health-form).
-{{< pt src="https://videos.tfcconnection.org/videos/embed/c92fc5dd-ebfd-4d13-b486-d08d281868f2" >}}
+{{< pt src="https://videos.tfcconnection.org/videos/embed/757dc0dd-9bdc-4d79-8f81-754249ff23d2" >}}
## Our Vision
Our vision is to change the world from the heart of America by providing disciple making opportunities that serve communities where student ministries are limited.
diff --git a/content/camp-form.md b/content/camp-form.md
index f7909b5..27de843 100644
--- a/content/camp-form.md
+++ b/content/camp-form.md
@@ -6,29 +6,29 @@ sharingLinks: false
---
-We are currently working on updating the form!! Check back soon to get signed up for camp!!
+
-
-
+{{< floating-button icon="chevron-down" text="To the form!" link="#form" >}}
+{{< pt src="https://videos.tfcconnection.org/videos/embed/757dc0dd-9bdc-4d79-8f81-754249ff23d2" width="700" height="576">}}
-
+We hope you are as excited about camp as we are! If there is anything we can do to answer your questions and help you to get signed up for camp, please let us know! You can email any of us by going to the [contact page](/contact).
-
-
-
+## Dates
+- Week 1 - July 22 - July 26
+- Week 2 - July 29 - Aug 2
-
-
-
-
-
+## Cost
+We have an early bird registration, so if you register by certain dates, you'll save some money!
+- By May 8: $65 with registration plus $100 due at camp and a free t shirt!
+- By June 28: $85 with registration plus $100 due at camp and a free t shirt!
+- After June 28: $85 with registration plus $100 due at camp... _NO FREE T SHIRT!!!_
-
-
+## Location
+Camp Joy in Republican City, NE
-
-
+[70790 Corp Rd 23, Republican City, NE 68971](https://maps.google.com/maps?z=16&q=70790%2Bcorp%2Brd%2B23%2Brepublican%2Bcity%2C%2Bne%2B68971)
+
-
+{{< map mapName="campmap_888075" >}}
-
+{{< camp-form >}}
diff --git a/justfile b/justfile
index 980a05b..9c5a727 100644
--- a/justfile
+++ b/justfile
@@ -6,6 +6,8 @@ server:
hugo server --noHTTPCache --disableFastRender
dev:
NODE_ENV=development ./themes/blowfish/node_modules/tailwindcss/lib/cli.js -c ./themes/blowfish/tailwind.config.js -i ./themes/blowfish/assets/css/main.css -o ./assets/css/compiled/main.css --jit -w
+api:
+ cargo build
clean:
cargo clean
rm -rf bld/
diff --git a/layouts/shortcodes/camp-form.html b/layouts/shortcodes/camp-form.html
index 13c6fa4..79ed948 100644
--- a/layouts/shortcodes/camp-form.html
+++ b/layouts/shortcodes/camp-form.html
@@ -23,13 +23,17 @@
document.getElementById('warning-email').style.margin = '0';
}
- var xhr = new XMLHttpRequest();
- xhr.onreadystatechange = function() {
- if (this.readyState == 4 && this.status == 200) {
+ let base = "http://localhost:4242/camp-form";
+ /* let base = "https://api.tfcconnection.org/camp-form"; */
+
+ fetch(base, {
+ method: "POST",
+ body: data
+ }).then((res) => {
+ console.log(res);
+ if (res.ok) {
let payment = data.get('registration');
- console.log(payment);
let health = data.get('health');
- console.log(health);
if (health === 'later') {
if (payment === 'now')
window.location.href = 'https://secure.myvanco.com/L-Z772/campaign/C-13JPJ';
@@ -39,20 +43,10 @@
window.location.href = '/thankyou/';
}
else {
- if (payment === 'later')
- window.location.href = '/thankyou/';
- else
- window.location.href = '/camp-health-form?registration=' + payment;
+ window.location.href = '/camp-health-form?registration=' + payment;
}
-
}
- };
- /* xhr.open("POST", "https://n8n.tfcconnection.org/webhook/mt-application"); */
- xhr.open("POST", "https://api.tfcconnection.org/camp-form");
- xhr.send(data);
- console.log(data);
- console.log("Hallo!");
- /* return false; */
+ });
}
function calculate_age(dob) {
@@ -168,8 +162,8 @@
@@ -218,7 +212,7 @@