Skip to content

Commit 5a6cc72

Browse files
committed
Merge branch 'mvp' into refactor-forms-jinja-partials-mvp
2 parents 2feaef0 + fbe391f commit 5a6cc72

File tree

7 files changed

+330
-89
lines changed

7 files changed

+330
-89
lines changed

static/css/style.css

Lines changed: 111 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/js/app-form-admin.js

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
document.addEventListener("DOMContentLoaded", function () {
2+
const learnMoreWrappers = document.querySelectorAll(".learn-more-wrapper");
3+
4+
learnMoreWrappers.forEach((wrapper) => {
5+
const title = wrapper.querySelector(".learn-more-title");
6+
const content = wrapper.querySelector(".learn-more-content");
7+
const toggleIcon = wrapper.querySelector(".toggle-icon");
8+
9+
toggleIcon.style.cursor = "pointer";
10+
11+
toggleIcon.querySelector(".toggle-icon-plus").style.display = "inline";
12+
toggleIcon.querySelector(".toggle-icon-minus").style.display = "none";
13+
content.style.display = "none";
14+
15+
let isExpanded = false;
16+
17+
title.addEventListener("click", () => {
18+
if (!isExpanded) {
19+
content.style.display = "block";
20+
toggleIcon.querySelector(".toggle-icon-plus").style.display = "none";
21+
toggleIcon.querySelector(".toggle-icon-minus").style.display = "inline";
22+
title.setAttribute("aria-expanded", true);
23+
} else {
24+
content.style.display = "none";
25+
toggleIcon.querySelector(".toggle-icon-plus").style.display = "inline";
26+
toggleIcon.querySelector(".toggle-icon-minus").style.display = "none";
27+
title.setAttribute("aria-expanded", false);
28+
}
29+
30+
isExpanded = !isExpanded;
31+
});
32+
});
33+
});
34+
35+
function validateForm() {
36+
const form = document.getElementById("app-form-6");
37+
const requiredFields = form.querySelectorAll("[required]");
38+
let allValid = true;
39+
40+
requiredFields.forEach((field) => {
41+
const parentElement = field.parentNode;
42+
parentElement.style.border = "";
43+
44+
if (
45+
(field.type === "radio" || field.type === "checkbox") &&
46+
!form.querySelector(`[name="${field.name}"]:checked`)
47+
) {
48+
allValid = false;
49+
parentElement.style.border = "2px solid red";
50+
}
51+
});
52+
53+
if (!allValid) {
54+
alert("Please fill out the missing field(s).");
55+
} else {
56+
window.location.href = "/app-additional";
57+
}
58+
}

static/sass/style.scss

Lines changed: 117 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,79 @@ button {
7878
align-items: center;
7979
}
8080

81+
.top-testimonials {
82+
display: flex;
83+
justify-content: center;
84+
flex-wrap: wrap;
85+
gap: 1.5rem;
86+
padding: 2rem;
87+
}
88+
89+
.testimonial-post {
90+
width: 40%;
91+
background-color: #0093b5;
92+
margin: 0;
93+
padding: 4rem;
94+
padding-top: 2rem;
95+
padding-bottom: 1.5rem;
96+
overflow-clip-margin: content-box;
97+
overflow: clip;
98+
border-radius: 2px;
99+
transition: transform 0.3s ease;
100+
}
101+
102+
.testimonial-post:hover {
103+
transform: translateY(-5px);
104+
}
105+
106+
.testimonial-post .post-content {
107+
padding: 1rem;
108+
padding-left: 0rem;
109+
padding-right: 2rem;
110+
width: 100%;
111+
background-color: #fafafa;
112+
border-radius: 1px;
113+
}
114+
115+
.testimonial-text {
116+
font-size: 14px;
117+
line-height: 1.6em;
118+
color: #333;
119+
padding: 1rem;
120+
padding-top: 1rem;
121+
padding-bottom: 1rem;
122+
}
123+
124+
@media (min-width: 768px) {
125+
.testimonial-post {
126+
width: calc(50% - 1.5rem);
127+
}
128+
}
129+
130+
@media (min-width: 1024px) {
131+
.testimonial-post {
132+
width: calc(33.333% - 1.5rem);
133+
}
134+
}
135+
136+
@media (max-width: 767px) {
137+
.testimonial-post {
138+
padding: 1.5rem;
139+
}
140+
141+
.testimonial-post .post-content {
142+
padding: 1rem;
143+
padding-left: 0.5rem;
144+
padding-right: 1.5rem;
145+
}
146+
147+
.testimonial-text {
148+
font-size: 13px;
149+
line-height: 1.5em;
150+
padding: 1rem;
151+
}
152+
}
153+
81154
.staff-team {
82155
align-items: flex-start;
83156
}
@@ -209,10 +282,7 @@ button {
209282
/* Main content areas */
210283

211284
.mc-closeModal {
212-
text-shadow:
213-
-1px -1px 0 #000,
214-
1px -1px 0 #000,
215-
-1px 1px 0 #000,
285+
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
216286
1px 1px 0 #000;
217287
}
218288

@@ -673,12 +743,54 @@ p.press-release-bold {
673743
padding: 0;
674744
}
675745

746+
#apple-pay-button {
747+
height: 48px;
748+
width: 100%;
749+
display: inline-block;
750+
-webkit-appearance: -apple-pay-button;
751+
-apple-pay-button-type: plain;
752+
-apple-pay-button-style: black;
753+
}
754+
755+
/* Fix for contact link visibility on job form page */
756+
#payment-page p a {
757+
color: #ffffff !important;
758+
text-decoration: underline;
759+
font-weight: bold;
760+
}
761+
762+
#payment-page p a:hover {
763+
color: #16c1f3 !important;
764+
text-decoration: underline;
765+
}
766+
767+
#fast-checkout {
768+
background: #fafafa;
769+
color: black;
770+
}
771+
772+
#fast-checkout h3 {
773+
color: $main-blue;
774+
}
775+
776+
#fast-checkout input {
777+
border-radius: 6px;
778+
position: relative;
779+
}
780+
781+
#fast-checkout .wrapper {
782+
position: relative;
783+
}
784+
785+
#fast-checkout button {
786+
width: 100%;
787+
}
788+
676789
/* Sponsor page styling */
677790

678791
.sponsor-benefit-table {
679792
margin-right: auto;
680793
margin-left: auto;
681-
width: 100%;
682794
}
683795

684796
.sponsor-benefit-table,

0 commit comments

Comments
 (0)