1
1
< style >
2
- .intro {
3
- height : 40vh ;
2
+ .intro {
3
+ animation : backgroundTransition 50s infinite;
4
+ height : 40vh ;
5
+ }
6
+
7
+ .intro ::before {
8
+ content : "" ;
9
+ position : absolute;
10
+ top : 0 ;
11
+ left : 0 ;
12
+ right : 0 ;
13
+ bottom : 0 ;
14
+ background-color : rgba (0 , 0 , 0 , 0.5 );
15
+ z-index : -1 ;
16
+ }
17
+
18
+ @keyframes backgroundTransition {
19
+ 0% {
20
+ background : var (--white ) url ('../img/header.jfif' ) no-repeat center top/cover;
21
+ }
22
+
23
+ 45% {
24
+ background : var (--white ) url ('../img/header.jfif' ) no-repeat center top/cover;
25
+ }
26
+
27
+ 55% {
28
+ background : var (--white ) url ('../img/17.jpg' ) no-repeat center top/cover;
29
+ }
30
+
31
+ 70% {
32
+ background : var (--white ) url ('../img/17.jpg' ) no-repeat center top/cover;
4
33
}
5
-
6
- @media screen and (max-width : 438px ) {
7
- .intro {
8
- height : 40vh ;
9
- }
34
+
35
+ 100% {
36
+ background : var (--blue ) url ('../img/17.jpg' ) no-repeat center top/cover;
10
37
}
38
+ }
39
+
40
+
41
+
42
+ @media screen and (max-width : 438px ) {
43
+ .intro {
44
+ height : 40vh ;
45
+ }
46
+ }
11
47
</ style >
12
48
13
49
< main >
14
- <!---=========INTRO BEGIN========-->
15
- < section class ="intro mb-0 ft-upper position-relative " style ="background: url({{sermons.[0].image_url}}); background-size: cover; background-repeat: no-repeat; display: flex; align-items: flex-end; ">
16
- < div class ="media-top " >
17
- < div class ="row justify-content-center ">
18
- < div class ="col-md-8 justify-content-center " >
19
- < div class ="d-grid justify-content-center latest_media ">
20
- < h4 class ="text-center fs-6 fw-bold "> Latest Sermon</ h4 >
21
- < h2 class ="text-center "> {{sermons.[0].title}}</ h2 >
22
- < div class ="d-flex justify-content-center ">
23
- < a href ="{{sermons.[0].audio_url}} "> < img src ="img/icon/download.png " width ="200 " alt ="download "> </ a >
24
- </ div >
25
- </ div >
26
- </ div >
50
+ <!---=========INTRO BEGIN========-->
51
+ < section class ="intro mb-0 ft-upper position-relative "
52
+ style ="background: url({{sermons.[0].image_url}}); background-size: cover; background-repeat: no-repeat; display: flex; align-items: flex-end; ">
53
+ < div class ="media-top ">
54
+ < div class ="row justify-content-center ">
55
+ < div class ="col-md-8 justify-content-center ">
56
+ < div class ="d-grid justify-content-center latest_media ">
57
+ < h4 class ="text-center fs-6 fw-bold "> Latest Sermon</ h4 >
58
+ < h2 class ="text-center "> {{sermons.[0].title}}</ h2 >
59
+ < div class ="d-flex justify-content-center ">
60
+ < a href ="{{sermons.[0].audio_url}} "> < img src ="img/icon/download.png " width ="200 " alt ="download "> </ a >
27
61
</ div >
28
-
62
+ </ div >
29
63
</ div >
30
- < div class ="ellipse_media "> </ div >
31
- </ section >
32
-
33
-
34
- <!---=========INTRO END========-->
35
-
36
-
37
- < section class =" mb-5 ">
38
- < div class ="container mt-5 ">
39
-
40
- < div class ="row justify-content-start align-items-center ">
41
-
42
- {{#each sermons}}
43
- < div class ="col-lg-3 p-3 col-md-4 col-sm-6 col mb-4 ">
44
- < div class ="" style ="height: 300px; ">
45
- < img class ="rounded-4 " style ="object-fit: cover; height: 100%; width: 100%; " src ="{{this.image_url}} " alt ="{{this.title}} ">
46
- </ div >
47
- < div class ="d-flex justify-content-between mx-3 mx-auto mt-1 px-5 text-secondary container text-center ft-upper fs-6 ">
48
- < a href ="{{this.audio_url}} " class ="download-link "> < img src ="img/icon/download1.png " width ="25 " alt =""> </ a >
49
- < a href ="{{this.audio_url}} "> < img src ="img/icon/listen1.png " width ="25 " alt =""> </ a >
50
- <!--<a href="{{this.video_url}}"><img src="img/icon/stream.png" width="25" alt=""></a>-->
51
- < a href ="/media/sermon/{{this.id}} " class ="download-link nav-link text-secondary "> < i class ="fa-solid fa-eye " style ="font-size: 20px; "> </ i > </ a >
52
- </ div >
53
- </ div >
54
- {{/each}}
55
- </ div >
64
+ </ div >
56
65
57
- < div class ="d-flex justify-content-center ">
58
- < nav aria-label ="Page navigation ">
59
- < ul class ="pagination ">
60
- {{#if (gt currentPage 1)}}
61
- < li class ="page-item ">
62
- < a class ="page-link " href ="?page={{subtract currentPage 1}} "> Previous</ a >
63
- </ li >
64
- {{else}}
65
- < li class ="page-item disabled ">
66
- < a class ="page-link "> Previous</ a >
67
- </ li >
68
- {{/if}}
69
-
70
- {{#each (range 1 totalPages)}}
71
- < li class ="page-item {{#if (eq this ../currentPage)}}active{{/if}} ">
72
- < a class ="page-link " href ="?page={{this}} "> {{this}}</ a >
73
- </ li >
74
- {{/each}}
75
-
76
- {{#if (lt currentPage totalPages)}}
77
- < li class ="page-item ">
78
- < a class ="page-link " href ="?page={{add currentPage 1}} "> Next</ a >
79
- </ li >
80
- {{else}}
81
- < li class ="page-item disabled ">
82
- < a class ="page-link "> Next</ a >
83
- </ li >
84
- {{/if}}
85
- </ ul >
86
- </ nav >
87
- </ div >
66
+ </ div >
67
+ < div class ="ellipse_media "> </ div >
68
+ </ section >
69
+
70
+
71
+ <!---=========INTRO END========-->
72
+
73
+
74
+ < section class =" mb-5 ">
75
+ < div class ="container mt-5 ">
76
+
77
+ < div class ="row justify-content-start align-items-center ">
78
+
79
+ {{#each sermons}}
80
+ < div class ="col-lg-3 p-3 col-md-4 col-sm-6 col mb-4 ">
81
+ < div class ="" style ="height: 300px; ">
82
+ < img class ="rounded-4 " style ="object-fit: cover; height: 100%; width: 100%; " src ="{{this.image_url}} "
83
+ alt ="{{this.title}} ">
84
+ </ div >
85
+ < div
86
+ class ="d-flex justify-content-between mx-3 mx-auto mt-1 px-5 text-secondary container text-center ft-upper fs-6 ">
87
+ < a href ="{{this.audio_url}} " class ="download-link "> < img src ="img/icon/download1.png " width ="25 " alt =""> </ a >
88
+ < a href ="{{this.audio_url}} "> < img src ="img/icon/listen1.png " width ="25 " alt =""> </ a >
89
+ <!--<a href="{{this.video_url}}"><img src="img/icon/stream.png" width="25" alt=""></a>-->
90
+ < a href ="/media/sermon/{{this.id}} " class ="download-link nav-link text-secondary "> < i class ="fa-solid fa-eye "
91
+ style ="font-size: 20px; "> </ i > </ a >
92
+ </ div >
88
93
</ div >
89
- </ section >
90
-
94
+ {{/each}}
95
+ </ div >
96
+
97
+ < div class ="d-flex justify-content-center ">
98
+ < nav aria-label ="Page navigation ">
99
+ < ul class ="pagination ">
100
+ {{#if (gt currentPage 1)}}
101
+ < li class ="page-item ">
102
+ < a class ="page-link " href ="?page={{subtract currentPage 1}} "> Previous</ a >
103
+ </ li >
104
+ {{else}}
105
+ < li class ="page-item disabled ">
106
+ < a class ="page-link "> Previous</ a >
107
+ </ li >
108
+ {{/if}}
109
+
110
+ {{#each (range 1 totalPages)}}
111
+ < li class ="page-item {{#if (eq this ../currentPage)}}active{{/if}} ">
112
+ < a class ="page-link " href ="?page={{this}} "> {{this}}</ a >
113
+ </ li >
114
+ {{/each}}
115
+
116
+ {{#if (lt currentPage totalPages)}}
117
+ < li class ="page-item ">
118
+ < a class ="page-link " href ="?page={{add currentPage 1}} "> Next</ a >
119
+ </ li >
120
+ {{else}}
121
+ < li class ="page-item disabled ">
122
+ < a class ="page-link "> Next</ a >
123
+ </ li >
124
+ {{/if}}
125
+ </ ul >
126
+ </ nav >
127
+ </ div >
128
+ </ div >
129
+ </ section >
130
+
91
131
</ main >
0 commit comments