From d42a12e554bf44c046099707be11261886c81bb3 Mon Sep 17 00:00:00 2001 From: kusowl Date: Thu, 8 Jan 2026 11:30:23 +0530 Subject: [PATCH] refactor: card component and heading - add default style of h2 heading - make card component for consistent style --- resources/css/app.css | 8 ++++++-- resources/views/components/card.blade.php | 3 +++ resources/views/components/why-dealhub.blade.php | 15 ++++++++------- 3 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 resources/views/components/card.blade.php diff --git a/resources/css/app.css b/resources/css/app.css index 8e565d6..c691ffa 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -21,7 +21,11 @@ @layer components{ @apply px-4 md:px-12 } - .card { - @apply bg-white rounded-lg p-4 + +} + +@layer base{ + h2 { + @apply text-5xl font-black text-center } } diff --git a/resources/views/components/card.blade.php b/resources/views/components/card.blade.php new file mode 100644 index 0000000..c8824eb --- /dev/null +++ b/resources/views/components/card.blade.php @@ -0,0 +1,3 @@ +
+ {{$slot}} +
diff --git a/resources/views/components/why-dealhub.blade.php b/resources/views/components/why-dealhub.blade.php index 090d0d7..780f2a4 100644 --- a/resources/views/components/why-dealhub.blade.php +++ b/resources/views/components/why-dealhub.blade.php @@ -1,33 +1,34 @@
-

Why Choose {{config('app.name')}}?

+

Why Choose {{config('app.name')}}?

A trusted platform connecting you with verified experts who share the best deals,
services, and opportunities in your area.

-
+

Verified Brokers

All brokers are verified and vetted to ensure trustworthy recommendations and deals

-
+ -
+

Verified Brokers

All brokers are verified and vetted to ensure trustworthy recommendations and deals

-
+ -
+

Verified Brokers

All brokers are verified and vetted to ensure trustworthy recommendations and deals

-
+ +