testimonials
Kamran Ahmed 2 months ago
parent 03cd25b6c0
commit 12950051d6
  1. 4
      src/components/SQLCourse/ReviewsSection.tsx
  2. 6
      src/styles/global.css

@ -88,7 +88,7 @@ export function ReviewsSection() {
})}
>
<div
className={`ma-x-3xl grid grid-cols-3 gap-4 ${!isExpanded ? 'relative' : ''}`}
className={`ma-x-3xl grid grid-cols-2 gap-4 lg:grid-cols-3 ${!isExpanded ? 'relative' : ''}`}
>
{visibleReviews.map((review, index) => (
<div
@ -134,7 +134,7 @@ export function ReviewsSection() {
<div className="absolute bottom-0 left-1/2 -translate-x-1/2 translate-y-1/2">
<button
onClick={() => setIsExpanded(!isExpanded)}
className="flex items-center gap-2 rounded-full border border-zinc-800 bg-[#121212] px-6 py-2 text-sm font-medium text-zinc-300 transition-all hover:border-zinc-700 hover:bg-zinc-900 hover:text-zinc-100"
className="flex items-center gap-2 rounded-full bg-zinc-800 px-6 py-2 text-sm font-medium text-zinc-300 transition-all hover:bg-zinc-700 hover:text-zinc-100"
>
{isExpanded ? 'Show Less' : 'Show More Reviews'}
<ChevronDownIcon

@ -159,3 +159,9 @@ a > code:before {
.scrollbar-none::-webkit-scrollbar {
display: none;
}
.highlight-yellow {
background: url(https://s2.svgbox.net/pen-brushes.svg?ic=brush-5&color=ffff43);
margin: -2px -4px;
padding: 2px 4px;
}

Loading…
Cancel
Save