1
1
<section id =" counter-section" class =" px-lg-5 px-3 my-5" >
2
2
<h4 class =" text-center mb-5 fs-3" >Our Achievments</h4 >
3
- <div class =" row justify-content-center px-2 " >
3
+ <div class =" row justify-content-center px-3 " >
4
4
@foreach ($achievements as $item )
5
- <div class =" col-6 col-md-4 col-xl-3 col-xxl-2 mb-1 px-2 align-items-center justify-content-center" >
5
+ <div class =" col-sm- 6 col-md-4 col-xl-3 mb-1 px-2 align-items-center justify-content-center" >
6
6
<div class =" px-1 bg-primary rounded" >
7
- <div class =" card rounded" >
8
- <div class =" row" style =" height : 6 rem ;" >
7
+ <div class =" card rounded" >
8
+ <div class =" row" style =" height : 8 rem ;" >
9
9
<div class =" col-6 ps-2 pe-0" style =" height : 100% " >
10
10
<img loading =" lazy" class =" rounded-start ps-1" style =" width :100% ;height :100% ;"
11
- src =" {{ useImage ($item -> image ) } }" alt =" " >
11
+ src =" {{ useImage ($item -> image ) } }" alt =" " >
12
12
</div >
13
- <div class =" col-6 ps-0 pe-2" >
14
- <p class =" m-0 fw-medium mt-2 text-center text-primary" >{{ strlen ($item -> title ) > 8 ? substr ($item -> title , 0 , 7 ) . ' ...' : ' ' } } </p >
15
- <h2 class =" counter-up m-0 text-primary text-center" style =" font-size : 32px ; font-weight : 700 ;" >
16
- {{ $item -> count } } </h2 >
13
+ <div class =" col-6 ps-0 pe-2 flex items-center justify-center" >
14
+ <div >
15
+ <p
16
+ class =" m-0 fw-medium mt-2 text-center text-primary whitespace-nowrap text-ellipsis" >
17
+ {{ $item -> title } } </p >
18
+ <h2 class =" counter-up m-0 text-primary text-center"
19
+ style =" font-size : 32px ; font-weight : 700 ;" >
20
+ {{ $item -> count } } </h2 >
21
+ </div >
17
22
</div >
18
23
</div >
19
24
</div >
20
25
</div >
21
26
</div >
22
27
@endforeach
23
28
</div >
24
- </section >
29
+ </section >
0 commit comments