Compare commits

...

4 Commits

Author SHA1 Message Date
9bfe2fc700 fix: google review text styling 2025-03-10 23:25:27 +07:00
ad39804e06 Merge branch 'main' into dev 2025-03-10 23:09:36 +07:00
Val
f3d8e30046 feat: request consultation button 2025-03-10 18:51:11 +07:00
25c8e4f125 Merge pull request 'dev' (#12) from dev into main
Reviewed-on: #12
2025-03-06 05:00:36 +00:00
6 changed files with 33 additions and 19 deletions

View File

@ -173,7 +173,7 @@ Primary use: Multipurpose Template
--full-wrapper-margin-x: 30px;
--container-width: 1350px;
--section-padding-y: 50px;
--menu-bar-height: 85px;
--menu-bar-height: 130px;
--menu-bar-height-scrolled: 65px;
--color-dark-1: #010101;
--color-dark-2: #171717;

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 B

View File

@ -32,9 +32,9 @@ export function GoogleReviews({ data }: GoogleReviewProps) {
<div className="flex justify-center items-center space-x-2">
<h2 className="text-xl text-center font-bol mt-[15px]">{data.ratingValue}</h2>
<div className="mt-1">
<StarRating size={20} value={data.ratingValue} />
<StarRating size={30} value={data.ratingValue} />
</div>
<div className="text-xs font-medium">Over {data.totalRating} Reviews</div>
<div className="font-medium">Over {data.totalRating} Reviews</div>
</div>
<div className="mt-20 relative">

View File

@ -5,14 +5,14 @@ import { navMenuData } from "@/data/menu";
import { toggleMobileMenu } from "@/utils/toggleMobileMenu";
import Image from "next/image";
import Link from "next/link";
import { FaFacebook, FaLinkedin, FaPhone } from "react-icons/fa";
import { FaFacebook, FaLinkedin } from "react-icons/fa";
const shareIcons: Record<string, any> = {
phone: {
link: "tel:+15208036644",
dom: (
<span className="social-nav flex gap-3 text-2xl lg:text-[#00898b]">
<FaPhone />
<span className="social-nav flex gap-1 text-2xl lg:text-[#00898b]">
<Image src="/assets/icons/phone.png" alt="Image Description" width={25} height={25} />
<b className="text-sm">(520) 803-6644</b>
</span>
),
@ -74,16 +74,26 @@ export default function Header({ links }: { links: typeof navMenuData }) {
<HeaderNav links={links} />
{/* End Item With Sub */}
</ul>
<ul className="items-end clearlist">
{Object.keys(shareIcons).map((k, idx) => {
return (
<li key={idx} className="!p-0 !m-0">
<a className="cursor-pointer" href={shareIcons[k].link} target="_blank">
{shareIcons[k].dom}
</a>
</li>
);
})}
<ul className="items-end clearlist flex flex-col justify-center h-full">
<div className="flex flex-col items-center h-full w-full content-center justify-center gap-2">
<a
href="/contact"
className="bg-[#00898b] px-3 py-2 rounded-full text-white font-bold hover:cursor-pointer hover:bg-[#00abad] scale-[1.02] mt-3 lg:mt-0"
>
REQUEST CONSULTATION
</a>
<div className="flex justify-between w-full flex-col lg:flex-row">
{Object.keys(shareIcons).map((k, idx) => {
return (
<li key={idx} className="!p-0 !m-0">
<a className="cursor-pointer" href={shareIcons[k].link} target="_blank">
{shareIcons[k].dom}
</a>
</li>
);
})}
</div>
</div>
</ul>
</div>

View File

@ -1,5 +1,6 @@
import Image from "next/image";
import StarRating from "./StarRating";
import { limitString } from "@/utils/general";
export interface CardStarRatingProps {
data: {
@ -12,10 +13,10 @@ export function CardStarRating({ data }: CardStarRatingProps) {
return (
<div className="bg-white p-2 rounded-lg shadow-md">
<div className="flex justify-between">
<StarRating size={20} value={data.star} />
<Image src="/assets/images/google-provider.svg" width={20} height={20} alt="" />
<StarRating size={30} value={data.star} />
<Image src="/assets/images/google-provider.svg" width={30} height={30} alt="" />
</div>
<p className="text-xs pl-1 mt-4">{data.description}</p>
<p className="p-1 mt-4 text-[22px]">{limitString(data.description)}</p>
</div>
);
}

View File

@ -0,0 +1,3 @@
export function limitString(text: string) {
return `${text.length > 100 ? `${text.slice(0, 100)}...` : text}`;
}