Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit 3362016

Browse files
authored
Merge pull request #35 from paiindustries/feature/testimonial
Feature/testimonial
2 parents f40e848 + 9aed1fd commit 3362016

9 files changed

Lines changed: 953 additions & 118 deletions

File tree

app/models/Blog.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ component extends="app.Models.Model" {
4848
}
4949

5050
// Fetch all latest blog posts with corresponding users
51-
public function getAll() {
51+
public function getTenLatest() {
5252
var blogs = findAll(
5353
where='statusid <> 1',
5454
include="User",

app/views/web/HomeController/index.cfm

Lines changed: 292 additions & 93 deletions
Large diffs are not rendered by default.

public/images/community.png

-95 KB
Loading

public/images/homeBg.png

190 KB
Loading

public/images/testi.png

102 KB
Loading

public/javascripts/custom.js

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,30 @@ var swiper = new Swiper(".blogSwiper", {
2020
},
2121
});
2222

23-
var contributorsSwiper = new Swiper(".contributorsSwiper", {
23+
var contributorsSwiperThumb = new Swiper(".contributorsSwiperThumb", {
24+
spaceBetween: 0,
25+
slidesPerView: 8,
2426
freeMode: true,
25-
slidesPerView: 7,
26-
initialSlide: 0,
27-
loop: true,
28-
speed: 2000,
29-
autoplay: {
30-
delay: 0,
31-
disableOnInteraction: false,
27+
watchSlidesProgress: true,
28+
navigation: {
29+
nextEl: ".swiper-button-next",
30+
prevEl: ".swiper-button-prev",
3231
},
33-
breakpoints: {
34-
640: {
35-
slidesPerView: 1,
36-
spaceBetween: 10,
37-
},
38-
768: {
39-
slidesPerView: 2,
40-
spaceBetween: 20,
41-
},
42-
1024: {
43-
slidesPerView: 7,
44-
spaceBetween: 30,
45-
},
32+
});
33+
34+
var contributorsSwiper = new Swiper(".contributorsSwiper", {
35+
spaceBetween: 30,
36+
thumbs: {
37+
swiper: contributorsSwiperThumb,
38+
},
39+
});
40+
41+
var contributorsSwiper = new Swiper(".testimonialsSwiper", {
42+
spaceBetween: 30,
43+
44+
pagination: {
45+
el: ".swiper-pagination",
46+
clickable: true,
4647
},
4748
});
4849

public/stylesheets/color.css

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,74 @@
1-
:root{--primary:#ef3b2d;--primary-rgb:239,59,45;--secondary:#0c1620;--secondary-rgb:rgba(12, 22, 32, 1);--body:#f9f9f9;--iris:#5454d4;--lightGray:#9d9d9d}.text--primary{color:var(--primary)}.bg--primary{background-color:var(--primary)}.bg--primary\/10{background-color:rgba(var(--primary-rgb),.1)}.border--primary{border:1px solid var(--primary)}.text--secondary{color:var(--secondary)}.text--secondary\/70{color:rgba(var(--secondary-rgb),.7)}.bg--secondary{background-color:var(--secondary)}.text--lightGray{color:var(--lightGray)}.bg--iris{background-color:var(--iris)}.border--iris{border:1px solid var(--iris)}.text--iris{color:var(--iris)}.fill--iris{fill:var(--iris)}.table--iris{--bs-table-bg:var(--iris)}.table--primary{--bs-table-bg:var(--primary)}.bg-white\/10{background-color:rgba(255,255,255,.1)}
1+
:root {
2+
--primary: #ef3b2d;
3+
--primary-rgb: 239, 59, 45;
4+
--secondary: #0c1620;
5+
--secondary-rgb: rgba(12, 22, 32, 1);
6+
--body: #f9f9f9;
7+
--iris: #5454d4;
8+
--lightGray: #9d9d9d;
9+
--success: #6BE89D;
10+
}
11+
12+
.text--primary {
13+
color: var(--primary)
14+
}
15+
16+
.bg--primary {
17+
background-color: var(--primary)
18+
}
19+
20+
.bg--primary\/10 {
21+
background-color: rgba(var(--primary-rgb), .1)
22+
}
23+
24+
.border--primary {
25+
border: 1px solid var(--primary)
26+
}
27+
28+
.text--secondary {
29+
color: var(--secondary)
30+
}
31+
32+
.text--secondary\/70 {
33+
color: rgba(var(--secondary-rgb), .7)
34+
}
35+
36+
.bg--secondary {
37+
background-color: var(--secondary)
38+
}
39+
40+
.text--lightGray {
41+
color: var(--lightGray)
42+
}
43+
44+
.bg--iris {
45+
background-color: var(--iris)
46+
}
47+
48+
.border--iris {
49+
border: 1px solid var(--iris)
50+
}
51+
52+
.text--iris {
53+
color: var(--iris)
54+
}
55+
56+
.fill--iris {
57+
fill: var(--iris)
58+
}
59+
60+
.table--iris {
61+
--bs-table-bg: var(--iris)
62+
}
63+
64+
.table--primary {
65+
--bs-table-bg: var(--primary)
66+
}
67+
68+
.bg-white\/10 {
69+
background-color: rgba(255, 255, 255, .1)
70+
}
71+
72+
.bg--success{
73+
background-color: var(--success);
74+
}

0 commit comments

Comments
 (0)