Skip to content

Commit

Permalink
deploy: 1f8b9ce
Browse files Browse the repository at this point in the history
  • Loading branch information
ColumbiaValleyWebDesigns committed Apr 22, 2024
1 parent 08dfe0d commit 3aab02f
Show file tree
Hide file tree
Showing 29 changed files with 136 additions and 100 deletions.
9 changes: 5 additions & 4 deletions admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ collections:
slug: '{{memberName}}'
fields:
- { label: 'Member Name', name: 'memberName', widget: 'string', required: true }
- { label: 'Member Title', name: 'memberTitle', widget: 'string', required: false }
- { label: 'Member Education', name: 'memberEducation', widget: 'string', required: false }
- { label: 'Member Date', name: 'memberDate', widget: 'string', required: false }
- { label: 'Member Bio', name: 'memberBio', widget: 'string', required: true }
- { label: 'Tags', name: 'tags', widget: 'list', required: true}
- { label: 'Tags', name: 'tags', widget: 'list', default: ['Current'], required: true}
- { label: 'Linkedin', name: 'linkedin', widget: 'string', required: false }
- { label: 'Email', name: 'email', widget: 'string', required: false }
- { label: 'Github', name: 'github', widget: 'string', required: false }
- { label: 'Link', name: 'link', widget: 'string', required: false }
- { label: 'Resume', name: 'resume', widget: 'string', required: false }
- { label: 'Resume', name: 'resume', widget: 'file', required: false, media_folder: '/src/assets/documents/our-team', public_folder: '/assets/documents/our-team' }
- { label: 'Member Image', name: 'image', widget: 'image', required: false }
- { label: 'Image Alt', name: 'imageAlt', widget: 'string', required: false }
- { label: 'Order', name: 'order', widget: 'number', required: false }
Expand All @@ -48,8 +49,8 @@ collections:
fields:
- { label: 'Publication Title', name: 'publicationTitle', widget: 'markdown', required: true }
- { label: 'Author', name: 'publicationAuthor', widget: 'string', required: false }
- { label: 'Date', name: 'publicationDate', widget: 'string', required: false }
- { label: 'Type', name: 'publicationType', widget: 'string', required: false }
- { label: 'Year', name: 'publicationDate', widget: 'string', required: false }
- { label: 'Journal Name', name: 'publicationType', widget: 'string', required: false }
- { label: 'Abstract', name: 'publicationAbstract', widget: 'markdown', required: true }
- { label: 'Keywords', name: 'tags', widget: 'list', required: true }
- { label: 'Image', name: 'image', widget: 'image', required: false }
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
72 changes: 50 additions & 22 deletions assets/js/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var CSbody = document.querySelector("body");
const CSnavbarMenu = document.querySelector("#cs-navigation");
const CShamburgerMenu = document.querySelector("#cs-navigation .cs-toggle");

CShamburgerMenu.addEventListener('click', function() {
CShamburgerMenu.addEventListener('click', function () {
CShamburgerMenu.classList.toggle("cs-active");
CSnavbarMenu.classList.toggle("cs-active");
CSbody.classList.toggle("cs-open");
Expand Down Expand Up @@ -50,7 +50,7 @@ img.forEach((img) => {
img.src = '../assets/images/placeholder-image.png';
}

img.onerror = function() {
img.onerror = function () {
// this.parentElement.querySelector('source').srcset = '../assets/images/placeholder-image.png';
this.parentElement.querySelectorAll('source').forEach((source) => {
source.srcset = '../assets/images/placeholder-image.png';
Expand All @@ -69,33 +69,52 @@ captionSliders.forEach((slider) => {
const captions = Array.from(slider.querySelectorAll(".cs-text-caption"));
const selectors = Array.from(slider.querySelectorAll(".cs-image-selector"));
let currentIndex = 0;
let timer = null;

function updateContent() {
const newSrcset = captions[currentIndex].dataset.srcset;
const newCaption = captions[currentIndex].innerHTML;

images.forEach((img) => {
img.srcset = newSrcset;
// Update srcset for lazy-loaded images
if (img.tagName === 'SOURCE') {
img.srcset = newSrcset; // Update only if the tag is <source>
} else {
img.src = newSrcset; // Update <img> src if necessary
}
});

captions.forEach((caption, index) => {
caption.style.display = index === currentIndex ? "block" : "none";
if (index === currentIndex) {
caption.style.display = "block";
caption.innerHTML = newCaption;
} else {
caption.style.display = "none";
}
});

selectors.forEach((selector, index) => {
if (index === currentIndex) {
selector.classList.add("active");
} else {
selector.classList.remove("active");
}
selector.classList.toggle("active", index === currentIndex);
});
}

function resetTimer() {
clearTimeout(timer);
timer = setTimeout(() => {
moveRight();
}, 10000);
}

function moveRight() {
if (currentIndex === selectors.length - 1) {
currentIndex = 0;
} else {
currentIndex++;
}
updateContent();
if (slider.classList.contains("timer-slider")) {
resetTimer();
}
}

if (leftArrow && rightArrow) {
leftArrow.addEventListener("click", () => {
if (currentIndex === 0) {
Expand All @@ -104,24 +123,33 @@ captionSliders.forEach((slider) => {
currentIndex--;
}
updateContent();
if (slider.classList.contains("timer-slider")) {
resetTimer();
}
});

rightArrow.addEventListener("click", () => {
if (currentIndex === selectors.length - 1) {
currentIndex = 0;
} else {
currentIndex++;
moveRight();
if (slider.classList.contains("timer-slider")) {
resetTimer();
}
updateContent();
});
} else {
selectors.forEach((selector, index) => {
selector.addEventListener("click", () => {
currentIndex = index;
updateContent();
});
}

// Apply event listeners for direct selection
selectors.forEach((selector, index) => {
selector.addEventListener("click", () => {
currentIndex = index;
updateContent();
if (slider.classList.contains("timer-slider")) {
resetTimer();
}
});
});

// Initialize the timer only if 'timer-slider' class is present
if (slider.classList.contains("timer-slider")) {
resetTimer();
}
});

Expand Down
2 changes: 0 additions & 2 deletions collaborators/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,6 @@ <h1 class="cs-title">Collaborators</h1>
<footer id="footer">
<div aria-hidden="true" class="line footer"></div>
<div class="container">

<div class="full-section">
<a class="logo" href="/">

Expand All @@ -466,7 +465,6 @@ <h1 class="cs-title">Collaborators</h1>
<a href="https://columbiavalleywebdesigns.com/" target="_blank" rel="noopener">columbia valley web designs</a>
</div>
</div>

</div>
</footer>

Expand Down
2 changes: 0 additions & 2 deletions conferences/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,6 @@ <h6 class="cs-title">Years</h6>
<footer id="footer">
<div aria-hidden="true" class="line footer"></div>
<div class="container">

<div class="full-section">
<a class="logo" href="/">

Expand All @@ -546,7 +545,6 @@ <h6 class="cs-title">Years</h6>
<a href="https://columbiavalleywebdesigns.com/" target="_blank" rel="noopener">columbia valley web designs</a>
</div>
</div>

</div>
</footer>

Expand Down
2 changes: 0 additions & 2 deletions contact/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ <h2 class="cs-title">Contact</h2>
<footer id="footer">
<div aria-hidden="true" class="line footer"></div>
<div class="container">

<div class="full-section">
<a class="logo" href="/">

Expand All @@ -327,7 +326,6 @@ <h2 class="cs-title">Contact</h2>
<a href="https://columbiavalleywebdesigns.com/" target="_blank" rel="noopener">columbia valley web designs</a>
</div>
</div>

</div>
</footer>

Expand Down
12 changes: 7 additions & 5 deletions css/news.css
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,18 @@
margin: 0;
}
#dropdown-cards .cs-dropdown-content ul {
list-style-position: inside;
padding-left: 20px;
}
#dropdown-cards .cs-dropdown-content ul li {
text-align: left;
padding-left: 0;
}
#dropdown-cards .cs-dropdown-content ul ul {
padding-left: 2rem;
}
#dropdown-cards .cs-dropdown-content ul ::marker {
margin: 0;
}
#dropdown-cards .cs-dropdown-content > .cs-text {
border-bottom: 2px solid #8B8B8B;
padding: 0.5rem 0;
Expand Down Expand Up @@ -340,10 +346,6 @@
}
#dropdown-cards .cs-flex-group {
cursor: pointer;
max-height: 5.625rem;
}
#dropdown-cards .cs-flex-group.is-active {
max-height: 500px;
}
#dropdown-cards .cs-dropdown-content .teaching-table {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion css/our-resources.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
border-radius: 100%;
}
#sbsr-579 .cs-image-slider .cs-image-selector.active {
background-color: var(--lineColor);
background-color: var(--bodyTextColor);
}
#sbsr-579 .cs-picture-caption .cs-picture {
display: block;
Expand Down
3 changes: 2 additions & 1 deletion css/publications.css
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
overflow: hidden;
display: block;
position: relative;
border-bottom: 1px solid var(--bodyTextColor);
}
#meet-team-547 .cs-picture img {
position: absolute;
Expand All @@ -246,7 +247,7 @@
height: 100%;
width: 100%;
/* makes image behave like a background image */
object-fit: cover;
object-fit: contain;
/* places top of the image at the top of the box */
object-position: center;
transition: transform 0.6s;
Expand Down
2 changes: 0 additions & 2 deletions grants/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ <h6 class="cs-title">Grant providers</h6>
<footer id="footer">
<div aria-hidden="true" class="line footer"></div>
<div class="container">

<div class="full-section">
<a class="logo" href="/">

Expand All @@ -313,7 +312,6 @@ <h6 class="cs-title">Grant providers</h6>
<a href="https://columbiavalleywebdesigns.com/" target="_blank" rel="noopener">columbia valley web designs</a>
</div>
</div>

</div>
</footer>

Expand Down
15 changes: 6 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ <h3 class="cs-title">At the University of Arizona</h3>
</div>
</div>
</div>
<div class="cs-picture-caption">
<div class="cs-picture-caption timer-slider">
<picture class="cs-picture">
<source media="(max-width: 600px)" srcset="/assets/images/landing-m.webp">
<source media="(min-width: 601px)" srcset="/assets/images/landing.webp">
Expand Down Expand Up @@ -327,16 +327,18 @@ <h3 class="cs-title">At the University of Arizona</h3>
</div>
</div>
</section>
</main>

<script>

</script></main>
<!-- ============================================ -->
<!-- Footer -->
<!-- ============================================ -->

<footer id="footer">
<div aria-hidden="true" class="line footer"></div>
<div class="container">

<div class="left-section">
<div class="full-section">
<a class="logo" href="/">


Expand All @@ -346,16 +348,11 @@ <h3 class="cs-title">At the University of Arizona</h3>


</a>
<div aria-hidden="true" class="line line-full"></div>
<div class="credit">
<span>Designed and hand coded by</span>
<a href="https://columbiavalleywebdesigns.com/" target="_blank" rel="noopener">columbia valley web designs</a>
</div>
</div>
<div class="right-section">
<script type="text/javascript" id="clustrmaps" src="//cdn.clustrmaps.com/map_v2.js?u=OyIN&d=ipkSndE8_XFxOZZl00Ta_2fSaEztt1OMQcXl1Lh2LTQ"></script>
</div>

</div>
</footer>

Expand Down
2 changes: 0 additions & 2 deletions join-us/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,6 @@ <h5 class="cs-title">Graduate students</h5>
<footer id="footer">
<div aria-hidden="true" class="line footer"></div>
<div class="container">

<div class="full-section">
<a class="logo" href="/">

Expand All @@ -367,7 +366,6 @@ <h5 class="cs-title">Graduate students</h5>
<a href="https://columbiavalleywebdesigns.com/" target="_blank" rel="noopener">columbia valley web designs</a>
</div>
</div>

</div>
</footer>

Expand Down
2 changes: 0 additions & 2 deletions lab-ops/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ <h3 class="cs-title">Second title</h3>
<footer id="footer">
<div aria-hidden="true" class="line footer"></div>
<div class="container">

<div class="full-section">
<a class="logo" href="/">

Expand All @@ -326,7 +325,6 @@ <h3 class="cs-title">Second title</h3>
<a href="https://columbiavalleywebdesigns.com/" target="_blank" rel="noopener">columbia valley web designs</a>
</div>
</div>

</div>
</footer>

Expand Down
2 changes: 0 additions & 2 deletions lab-policies/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ <h1 class="cs-title">Lab policies</h1>
<footer id="footer">
<div aria-hidden="true" class="line footer"></div>
<div class="container">

<div class="full-section">
<a class="logo" href="/">

Expand All @@ -310,7 +309,6 @@ <h1 class="cs-title">Lab policies</h1>
<a href="https://columbiavalleywebdesigns.com/" target="_blank" rel="noopener">columbia valley web designs</a>
</div>
</div>

</div>
</footer>

Expand Down
2 changes: 0 additions & 2 deletions ms-advising/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ <h3 class="cs-title">Second title</h3>
<footer id="footer">
<div aria-hidden="true" class="line footer"></div>
<div class="container">

<div class="full-section">
<a class="logo" href="/">

Expand All @@ -326,7 +325,6 @@ <h3 class="cs-title">Second title</h3>
<a href="https://columbiavalleywebdesigns.com/" target="_blank" rel="noopener">columbia valley web designs</a>
</div>
</div>

</div>
</footer>

Expand Down
Loading

0 comments on commit 3aab02f

Please sign in to comment.