- Added testimonial section
- Lessed the hover scale effect for the project cards
This commit is contained in:
1 parent
c4b5a983de
commit
a2cfd00f19
5 files changed
+285
-7
No files matched your search
+99
-5
@@ -313,6 +313,96 @@ p {
|
|||||||
width: 5rem;
|
width: 5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Testimonial Section */
|
||||||
|
.testimonial-section {
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
transparent,
|
||||||
|
#2d54c7,
|
||||||
|
#2d54c7,
|
||||||
|
transparent
|
||||||
|
);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 5rem 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.testimonial-slider {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 2rem;
|
||||||
|
max-width: 120rem;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.testimonial-slides {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.testimonial-slide {
|
||||||
|
display: none;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
padding: 2rem;
|
||||||
|
animation: fadeIn 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.testimonial-slide.active {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeIn {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.testimonial-text {
|
||||||
|
font-style: italic;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.client-name {
|
||||||
|
font-family: "Space Grotesk", sans-serif;
|
||||||
|
font-size: 2.5rem;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.testimonial-controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.testimonial-btn {
|
||||||
|
background-color: transparent;
|
||||||
|
border: 3px solid #fff;
|
||||||
|
color: #fff;
|
||||||
|
width: 3.5rem;
|
||||||
|
height: 3.5rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
font-size: 2rem;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.testimonial-btn:hover {
|
||||||
|
background-color: #ffe642;
|
||||||
|
border-color: #ffe642;
|
||||||
|
color: #0b1532;
|
||||||
|
transform: scale(1.05);
|
||||||
|
}
|
||||||
|
|
||||||
.about-section {
|
.about-section {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -410,26 +500,30 @@ p {
|
|||||||
|
|
||||||
.project-card:hover {
|
.project-card:hover {
|
||||||
box-shadow: 0 1rem 1rem 0 #2d54c7;
|
box-shadow: 0 1rem 1rem 0 #2d54c7;
|
||||||
transform: scale(1.1);
|
transform: scale(1.02);
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-card--1 {
|
.project-card--1 {
|
||||||
background-image: linear-gradient(rgba(11, 21, 50, 0.75)),
|
background-image:
|
||||||
|
linear-gradient(rgba(11, 21, 50, 0.75)),
|
||||||
url("/img/client-img/ten8locker.jpg");
|
url("/img/client-img/ten8locker.jpg");
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-card--2 {
|
.project-card--2 {
|
||||||
background-image: linear-gradient(rgba(11, 21, 50, 0.75)),
|
background-image:
|
||||||
|
linear-gradient(rgba(11, 21, 50, 0.75)),
|
||||||
url("/img/client-img/christshands.jpg");
|
url("/img/client-img/christshands.jpg");
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-card--3 {
|
.project-card--3 {
|
||||||
background-image: linear-gradient(rgba(11, 21, 50, 0.75)),
|
background-image:
|
||||||
|
linear-gradient(rgba(11, 21, 50, 0.75)),
|
||||||
url("/img/client-img/terrytownpuppies.jpg");
|
url("/img/client-img/terrytownpuppies.jpg");
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-card--4 {
|
.project-card--4 {
|
||||||
background-image: linear-gradient(rgba(11, 21, 50, 0.75)),
|
background-image:
|
||||||
|
linear-gradient(rgba(11, 21, 50, 0.75)),
|
||||||
url("/img/client-img/hopefoodpantry.jpg");
|
url("/img/client-img/hopefoodpantry.jpg");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,50 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
class="ionicon"
|
||||||
|
viewBox="0 0 512 512"
|
||||||
|
version="1.1"
|
||||||
|
id="svg2"
|
||||||
|
sodipodi:docname="checkmark-circle-outline.svg"
|
||||||
|
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs2" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview2"
|
||||||
|
pagecolor="#505050"
|
||||||
|
bordercolor="#eeeeee"
|
||||||
|
borderopacity="1"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#505050"
|
||||||
|
inkscape:zoom="0.95117188"
|
||||||
|
inkscape:cx="255.47433"
|
||||||
|
inkscape:cy="256"
|
||||||
|
inkscape:window-width="1280"
|
||||||
|
inkscape:window-height="732"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg2" />
|
||||||
|
<path
|
||||||
|
d="M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-miterlimit="10"
|
||||||
|
stroke-width="32"
|
||||||
|
id="path1"
|
||||||
|
style="stroke:#ffffff;stroke-opacity:1" />
|
||||||
|
<path
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
stroke-width="32"
|
||||||
|
d="M352 176L217.6 336 160 272"
|
||||||
|
id="path2"
|
||||||
|
style="stroke:#ffffff;stroke-opacity:1" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,42 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
class="ionicon"
|
||||||
|
viewBox="0 0 512 512"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1"
|
||||||
|
sodipodi:docname="left-arrow.svg"
|
||||||
|
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs1" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview1"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#000000"
|
||||||
|
borderopacity="0.25"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
inkscape:zoom="1.0956717"
|
||||||
|
inkscape:cx="188.01253"
|
||||||
|
inkscape:cy="283.38781"
|
||||||
|
inkscape:window-width="1280"
|
||||||
|
inkscape:window-height="732"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg1" />
|
||||||
|
<path
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
stroke-width="48"
|
||||||
|
d="M 243.99901,112 99.999006,256 243.99901,400 m -124,-144 h 292"
|
||||||
|
id="path1"
|
||||||
|
style="stroke:#ffffff;stroke-opacity:1" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.3 KiB |
+29
-1
@@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
@@ -169,6 +169,34 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section class="testimonial-section">
|
||||||
|
<div class="testimonial-slider animate-on-scroll">
|
||||||
|
<div class="heading-wrapper">
|
||||||
|
<img
|
||||||
|
class="heading-icon"
|
||||||
|
src="img/icons/check.svg"
|
||||||
|
alt="check icon"
|
||||||
|
/>
|
||||||
|
<h2>Testimonials</h2>
|
||||||
|
</div>
|
||||||
|
<div class="testimonial-slides"></div>
|
||||||
|
<div class="testimonial-controls">
|
||||||
|
<button
|
||||||
|
class="testimonial-btn testimonial-btn--prev"
|
||||||
|
aria-label="Previous testimonial"
|
||||||
|
>
|
||||||
|
<img src="img/icons/left-arrow.svg" alt="left arrow icon" />
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="testimonial-btn testimonial-btn--next"
|
||||||
|
aria-label="Next testimonial"
|
||||||
|
>
|
||||||
|
<img src="img/icons/right-arrow.svg" alt="right arrow icon" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<section class="about-section" id="about">
|
<section class="about-section" id="about">
|
||||||
<div class="about-content">
|
<div class="about-content">
|
||||||
<div class="heading-wrapper animate-on-scroll">
|
<div class="heading-wrapper animate-on-scroll">
|
||||||
|
|||||||
@@ -16,6 +16,70 @@ navLinks.forEach((link) => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Testimonial Slider
|
||||||
|
const testimonials = [
|
||||||
|
{
|
||||||
|
text: "Working with Blake at Cosmically Creative was an incredibly valuable experience and made the process of developing a website seem very straightforward and easy-going. He provided several ideas and illustrations of what we could do for a website that would help connect the people in need and interested in what our organization is about and the services we have to offer. Blake communicated very well with us and kept us informed of the progress he was making through this process. He listens very well and works hard to understand our needs and desires for this website tool to be best for our organization. We highly recommend his services!!",
|
||||||
|
name: "‐ Christ's Hands",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Cosmically Creative built my website exactly how I envisioned it—clean, functional, and professional. They were easy to work with, quick to respond, and clearly cared about getting every detail right. The end result speaks for itself. From our first conversation, they took the time to understand my business and what I needed the site to accomplish. I never felt rushed or out of the loop—updates came regularly, and my feedback was always taken seriously. I'd recommend them to anyone looking for a web developer who actually listens.",
|
||||||
|
name: "‐ Ten8Locker",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const slidesContainer = document.querySelector(".testimonial-slides");
|
||||||
|
let currentSlide = 0;
|
||||||
|
|
||||||
|
function buildSlides() {
|
||||||
|
testimonials.forEach((testimonial, i) => {
|
||||||
|
const slide = document.createElement("div");
|
||||||
|
slide.classList.add("testimonial-slide");
|
||||||
|
if (i === 0) slide.classList.add("active");
|
||||||
|
slide.innerHTML = `
|
||||||
|
<p class="testimonial-text">“${testimonial.text}”</p>
|
||||||
|
<p class="client-name">${testimonial.name}</p>
|
||||||
|
`;
|
||||||
|
slidesContainer.appendChild(slide);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function showSlide(index) {
|
||||||
|
const slides = document.querySelectorAll(".testimonial-slide");
|
||||||
|
slides.forEach((slide) => slide.classList.remove("active"));
|
||||||
|
currentSlide = (index + slides.length) % slides.length;
|
||||||
|
slides[currentSlide].classList.add("active");
|
||||||
|
}
|
||||||
|
|
||||||
|
buildSlides();
|
||||||
|
|
||||||
|
function setSlidesHeight() {
|
||||||
|
const slides = document.querySelectorAll(".testimonial-slide");
|
||||||
|
let maxHeight = 0;
|
||||||
|
slides.forEach((slide) => {
|
||||||
|
slide.classList.add("active");
|
||||||
|
maxHeight = Math.max(maxHeight, slide.scrollHeight);
|
||||||
|
slide.classList.remove("active");
|
||||||
|
});
|
||||||
|
slidesContainer.style.minHeight = maxHeight + "px";
|
||||||
|
slides[currentSlide].classList.add("active");
|
||||||
|
}
|
||||||
|
|
||||||
|
setSlidesHeight();
|
||||||
|
window.addEventListener("resize", setSlidesHeight);
|
||||||
|
|
||||||
|
document
|
||||||
|
.querySelector(".testimonial-btn--prev")
|
||||||
|
.addEventListener("click", () => {
|
||||||
|
showSlide(currentSlide - 1);
|
||||||
|
});
|
||||||
|
|
||||||
|
document
|
||||||
|
.querySelector(".testimonial-btn--next")
|
||||||
|
.addEventListener("click", () => {
|
||||||
|
showSlide(currentSlide + 1);
|
||||||
|
});
|
||||||
|
|
||||||
// Scroll Animations
|
// Scroll Animations
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
const observerOptions = { root: null, rootMargin: "0px", threshold: 0.5 };
|
const observerOptions = { root: null, rootMargin: "0px", threshold: 0.5 };
|
||||||
@@ -29,7 +93,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
};
|
};
|
||||||
const observer = new IntersectionObserver(onIntersection, observerOptions);
|
const observer = new IntersectionObserver(onIntersection, observerOptions);
|
||||||
const elementsToAnimate = document.querySelectorAll(
|
const elementsToAnimate = document.querySelectorAll(
|
||||||
".animate-on-scroll, .animate-on-scroll-delay"
|
".animate-on-scroll, .animate-on-scroll-delay",
|
||||||
);
|
);
|
||||||
elementsToAnimate.forEach((el) => observer.observe(el));
|
elementsToAnimate.forEach((el) => observer.observe(el));
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user