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; --full-wrapper-margin-x: 30px;
--container-width: 1350px; --container-width: 1350px;
--section-padding-y: 50px; --section-padding-y: 50px;
--menu-bar-height: 85px; --menu-bar-height: 130px;
--menu-bar-height-scrolled: 65px; --menu-bar-height-scrolled: 65px;
--color-dark-1: #010101; --color-dark-1: #010101;
--color-dark-2: #171717; --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"> <div className="flex justify-center items-center space-x-2">
<h2 className="text-xl text-center font-bol mt-[15px]">{data.ratingValue}</h2> <h2 className="text-xl text-center font-bol mt-[15px]">{data.ratingValue}</h2>
<div className="mt-1"> <div className="mt-1">
<StarRating size={20} value={data.ratingValue} /> <StarRating size={30} value={data.ratingValue} />
</div> </div>
<div className="text-xs font-medium">Over {data.totalRating} Reviews</div> <div className="font-medium">Over {data.totalRating} Reviews</div>
</div> </div>
<div className="mt-20 relative"> <div className="mt-20 relative">

View File

@ -5,14 +5,14 @@ import { navMenuData } from "@/data/menu";
import { toggleMobileMenu } from "@/utils/toggleMobileMenu"; import { toggleMobileMenu } from "@/utils/toggleMobileMenu";
import Image from "next/image"; import Image from "next/image";
import Link from "next/link"; 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> = { const shareIcons: Record<string, any> = {
phone: { phone: {
link: "tel:+15208036644", link: "tel:+15208036644",
dom: ( dom: (
<span className="social-nav flex gap-3 text-2xl lg:text-[#00898b]"> <span className="social-nav flex gap-1 text-2xl lg:text-[#00898b]">
<FaPhone /> <Image src="/assets/icons/phone.png" alt="Image Description" width={25} height={25} />
<b className="text-sm">(520) 803-6644</b> <b className="text-sm">(520) 803-6644</b>
</span> </span>
), ),
@ -74,7 +74,15 @@ export default function Header({ links }: { links: typeof navMenuData }) {
<HeaderNav links={links} /> <HeaderNav links={links} />
{/* End Item With Sub */} {/* End Item With Sub */}
</ul> </ul>
<ul className="items-end clearlist"> <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) => { {Object.keys(shareIcons).map((k, idx) => {
return ( return (
<li key={idx} className="!p-0 !m-0"> <li key={idx} className="!p-0 !m-0">
@ -84,6 +92,8 @@ export default function Header({ links }: { links: typeof navMenuData }) {
</li> </li>
); );
})} })}
</div>
</div>
</ul> </ul>
</div> </div>

View File

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

View File

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