Skip to content

Commit 63dded1

Browse files
committed
fix: achievements
1 parent f51bd5f commit 63dded1

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

resources/views/components/frontend/achievements.blade.php

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
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-3">
3+
<div class="grid grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-3 px-3">
44
@foreach ($achievements as $item)
5-
<div class="col-6 col-md-4 col-xl-3 mb-1 px-2 align-items-center justify-content-center">
6-
<div class="px-1 bg-primary rounded">
7-
<div class="card overflow-hidden">
8-
<div class="grid grid-cols-5 gap-2 md:gap-3 h-[3.5rem] md:h-[8rem]">
9-
<img loading="lazy" class="rounded-l-sm overflow-hidden col-span-2 object-cover" style="width:100%; height:100%;"
10-
src="{{ useImage($item->image) }}" alt="">
11-
<div class="col-span-3 flex flex-col w-full items-center justify-center">
12-
<div
13-
class="font-semibold text-sm md:text-lg text-center text-primary whitespace-nowrap text-ellipsis overflow-hidden w-full">
14-
{{ $item->title }}</div>
15-
<h2 class="counter-up m-0 text-primary text-center font-bold text-lg md:text-xl">
16-
{{ $item->count }}</h2>
17-
</div>
18-
</div>
5+
<div class="p-2 h-full rounded !border !border-l-4 !border-r-4 border-l-primary border-r-primary">
6+
<div class="grid grid-cols-5 gap-2 md:gap-3 smd:h-[8rem] items-center justify-center">
7+
<img loading="lazy" class="overflow-hidden col-span-2 object-cover" style="width:100%;"
8+
src="{{ useImage($item->image) }}" alt="">
9+
<div class="col-span-3 flex flex-col w-full items-center justify-center">
10+
<div
11+
class="max-md:hidden font-semibold text-sm md:text-lg text-center text-primary whitespace-nowrap text-ellipsis overflow-hidden w-full">
12+
{{ $item->title }}</div>
13+
<h2 class="counter-up m-0 text-primary text-center font-bold text-lg md:text-xl">
14+
{{ $item->count }}</h2>
15+
</div>
16+
<div
17+
class="md:hidden col-span-full font-semibold text-sm md:text-lg text-center text-primary text-wrap">
18+
{{ $item->title }}
1919
</div>
2020
</div>
2121
</div>

tailwind.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ module.exports = {
1515
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
1616
},
1717
},
18+
colors: {
19+
primary: {
20+
DEFAULT: '#38BDF8'
21+
}
22+
}
1823
},
1924

2025
plugins: [require('@tailwindcss/forms'), require('flowbite/plugin')],

0 commit comments

Comments
 (0)