Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only load CAPTCHA and token when required, add a loading icon when sending a message #106

Merged
merged 4 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/phpmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ name: PHPMD

on:
push:
branches: [ "main" ]
branches: [ "main", "dev/*" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
branches: [ "main", "dev/*" ]
schedule:
- cron: '42 20 * * 5'

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ name: Psalm Security Scan

on:
push:
branches: [ "main" ]
branches: [ "main", "dev/*" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
branches: [ "main", "dev/*" ]
schedule:
- cron: '28 7 * * 2'

Expand Down
53 changes: 52 additions & 1 deletion dist/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ nav {
opacity 400ms ease-in-out;
}

.active-panel {
opacity: 1;
z-index: 1;
}

.panel3 {
background-color: white;
}
Expand All @@ -155,7 +160,12 @@ footer {
margin-block-end: 1.2rem;
}

.navbar-nav .text-danger {
.navbar-nav .nav-link {
color: black;
}

.navbar-nav .nav-link-highlighted {
color: var(--capanda-red);
text-shadow:
-0.05ex 0 currentColor,
0.05ex 0 currentColor;
Expand Down Expand Up @@ -231,6 +241,47 @@ h2 {
}
}

/* Loading icon */
.lds-ring,
.lds-ring div {
box-sizing: border-box;
}
.lds-ring {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-ring div {
box-sizing: border-box;
display: block;
position: absolute;
width: 64px;
height: 64px;
margin: 8px;
border: 8px solid currentColor;
border-radius: 50%;
animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: currentColor transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
animation-delay: -0.15s;
}
@keyframes lds-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}

/* #### Media Queries ##### */

/* Top panel text and image adjustments */
Expand Down
11 changes: 7 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
</a>
<div class="collapse navbar-collapse" id="navbarNav">
<div class="navbar-nav">
<a class="nav-link text-dark fs-5" href="#value">Value</a>
<a class="nav-link text-dark fs-5" href="#leadership">Leadership</a>
<a class="nav-link text-dark fs-5 " href="#dedication">Dedication</a>
<a class="nav-link text-dark fs-5" href="#focus">Focus</a>
<a class="nav-link fs-5" href="#value">Value</a>
<a class="nav-link fs-5" href="#leadership">Leadership</a>
<a class="nav-link fs-5 " href="#dedication">Dedication</a>
<a class="nav-link fs-5" href="#focus">Focus</a>
</div>
</div>
<div id="phoneandemail" class="d-flex flex-column flex-grow-1 align-items-end me-2">
Expand Down Expand Up @@ -265,6 +265,9 @@ <h3 class="modal-title" id="contactModalLabel">Contact Us</h3>
<div id="message-alert" class="alert alert-danger" role="alert"></div>
</div>
<div class="modal-footer">
<div id="sendmessage-loading" style="display:none;">
<div class="lds-ring"><div></div><div></div><div></div><div></div></div>
</div>
<button type="button" class="btn-capanda btn-capanda-blue" id="sendmessage">Send Message</button>
</div>
</div>
Expand Down
Loading
Loading