Skip to content

Commit a540691

Browse files
committed
fix:acheivement section
1 parent 6bd20a4 commit a540691

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
<section id="counter-section" class="px-lg-5 px-3 my-5">
22
<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">
44
@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">
66
<div class="px-1 bg-primary rounded">
7-
<div class="card rounded" >
8-
<div class="row" style="height: 6rem;">
7+
<div class="card rounded">
8+
<div class="row" style="height: 8rem;">
99
<div class="col-6 ps-2 pe-0" style="height: 100%">
1010
<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="">
1212
</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>
1722
</div>
1823
</div>
1924
</div>
2025
</div>
2126
</div>
2227
@endforeach
2328
</div>
24-
</section>
29+
</section>

0 commit comments

Comments
 (0)