Changed string values to use i18n
This commit is contained in:
@@ -2,9 +2,11 @@ import { useState } from "react";
|
||||
import { FaTimes, FaBars } from "react-icons/fa";
|
||||
|
||||
import Logo from "../../assets/logo.svg";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
export default () => {
|
||||
const [state, setState] = useState(false);
|
||||
const { t } = useTranslation();
|
||||
|
||||
const [colorChange, setColorChange] = useState(false);
|
||||
const changeColor = () => {
|
||||
@@ -19,9 +21,9 @@ export default () => {
|
||||
|
||||
// Replace javascript:void(0) path with your path
|
||||
const navigation = [
|
||||
{ title: "Services", path: "#Services" },
|
||||
{ title: "Results", path: "#Results" },
|
||||
{ title: "Contact", path: "#Contact" },
|
||||
{ title: t("navbar.services"), path: "Services" },
|
||||
{ title: t("navbar.advantages"), path: "Advantages" },
|
||||
{ title: t("navbar.contact"), path: "Contact" },
|
||||
];
|
||||
|
||||
return (
|
||||
|
||||
@@ -2,18 +2,21 @@ import React from "react";
|
||||
import emailjs from "@emailjs/browser";
|
||||
import { ToastContainer, toast } from "react-toastify";
|
||||
import "react-toastify/dist/ReactToastify.css";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
const ContactForm = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const notify = () => {
|
||||
toast.success("Message Sent Successfully!");
|
||||
toast.success(t("contact.toasts.success"));
|
||||
};
|
||||
|
||||
const errorToast = () => {
|
||||
toast.error("Error Sending Message!");
|
||||
toast.error(t("contact.toasts.error"));
|
||||
};
|
||||
|
||||
const emptyForm = () => {
|
||||
toast.warning("Please fill all the fields!");
|
||||
toast.warning(t("contact.toasts.empty"));
|
||||
};
|
||||
|
||||
const sendEmail = (e: React.FormEvent<HTMLFormElement>) => {
|
||||
@@ -56,13 +59,13 @@ const ContactForm = () => {
|
||||
className="form-input"
|
||||
type="text"
|
||||
name="user_name"
|
||||
placeholder="Name"
|
||||
placeholder={t("contact.form.name")}
|
||||
/>
|
||||
<input
|
||||
className="form-input"
|
||||
type="email"
|
||||
name="user_email"
|
||||
placeholder="Email"
|
||||
placeholder={t("contact.form.email")}
|
||||
/>
|
||||
</div>
|
||||
<div className="flex flex-col md:flex-row md:gap-3">
|
||||
@@ -70,13 +73,13 @@ const ContactForm = () => {
|
||||
className="form-input"
|
||||
type="text"
|
||||
name="user_company"
|
||||
placeholder="Company"
|
||||
placeholder={t("contact.form.company")}
|
||||
/>
|
||||
<input
|
||||
className="form-input"
|
||||
type="number"
|
||||
name="user_phone"
|
||||
placeholder="Phone"
|
||||
placeholder={t("contact.form.phone")}
|
||||
/>
|
||||
</div>
|
||||
<div className="flex flex-col">
|
||||
@@ -84,13 +87,13 @@ const ContactForm = () => {
|
||||
className="form-input"
|
||||
type="text"
|
||||
name="user_question"
|
||||
placeholder="What is your most important question?"
|
||||
placeholder={t("contact.form.question")}
|
||||
></input>
|
||||
|
||||
<textarea
|
||||
className="form-input"
|
||||
name="message"
|
||||
placeholder="Message"
|
||||
placeholder={t("contact.form.message")}
|
||||
rows={6}
|
||||
></textarea>
|
||||
</div>
|
||||
@@ -100,7 +103,7 @@ const ContactForm = () => {
|
||||
type="submit"
|
||||
className="flex-1 font-medium md:px-8 py-3 text-2xl md:text-3xl bg-gradient-to-br from-custom-bglight to-custom-bgdark rounded-xl hover:bg-transparent hover:from-transparent hover:to-transparent transition duration-500"
|
||||
>
|
||||
Send
|
||||
{t("contact.form.button")}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
import { useTranslation } from "react-i18next";
|
||||
import ContactForm from "./ContactForm";
|
||||
|
||||
const ContactPage = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<div className="h-full">
|
||||
<div className="header-text">
|
||||
<h1>
|
||||
Contact Us For <br />A{" "}
|
||||
<span className="bg-clip-text text-transparent bg-gradient-to-br from-gold-light to-gold-dark">
|
||||
Free
|
||||
</span>{" "}
|
||||
Analysis
|
||||
{t("contact.heading.part1")} <br />
|
||||
{t("contact.heading.part2")}{" "}
|
||||
<span className="gold-text">{t("contact.heading.part3")}</span>{" "}
|
||||
{t("contact.heading.part4")}
|
||||
</h1>
|
||||
<h2 className="sub-header-text ">
|
||||
Would you like to know what we could do for you? Fill out the form ad
|
||||
we’ll get <br />
|
||||
back to you No obligation, no annoying tactics. We won’t waste your
|
||||
time.
|
||||
{t("contact.subheading.part1")} <br />
|
||||
{t("contact.subheading.part2")}
|
||||
</h2>
|
||||
</div>
|
||||
<ContactForm />
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import { useTranslation } from "react-i18next";
|
||||
import HeroImg from "../../../assets/HeroImg.svg";
|
||||
import Stars from "../../../assets/Stars.svg";
|
||||
|
||||
const Hero = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<div className="flex flex-col lg:mt-20 lg:flex-row 1920:padding-calc items-center">
|
||||
<div className="lg:w-1/2 w-full xl:w-1/2 hidden lg:flex transform origin-left">
|
||||
@@ -15,8 +18,8 @@ const Hero = () => {
|
||||
className="md:px-0 ml-auto mr-auto lg:mr-0 lg:text-right"
|
||||
></img>
|
||||
<div>
|
||||
<h1 className="hero-text">GROW YOUR</h1>
|
||||
<h1 className="hero-text">BUSINESS</h1>
|
||||
<h1 className="hero-text">{t("hero.heading.part1")}</h1>
|
||||
<h1 className="hero-text">{t("hero.heading.part2")}</h1>
|
||||
<div>
|
||||
<img
|
||||
src={HeroImg}
|
||||
@@ -25,16 +28,18 @@ const Hero = () => {
|
||||
></img>
|
||||
</div>
|
||||
</div>
|
||||
<h2 className="italic text-lg md:text-2xl 2xl:text-3xl mt-4 md:mt-10">
|
||||
We do all the digital footprint for you,
|
||||
</h2>
|
||||
<h2 className="italic text-lg md:text-2xl 2xl:text-3xl">
|
||||
so you can focus on what's important!
|
||||
</h2>
|
||||
<div className="flex mt-5 lg:mt-12 mx-20 lg:mx-0 lg:ml-auto rounded-xl bg-gradient-to-br from-gold-light to-gold-dark p-0.5 shadow-lg">
|
||||
<div className="mx-5 lg:mx-0">
|
||||
<h2 className="italic text-lg md:text-2xl 2xl:text-3xl mt-4 md:mt-10">
|
||||
{t("hero.subheading.part1")}
|
||||
</h2>
|
||||
<h2 className="italic text-lg md:text-2xl 2xl:text-3xl">
|
||||
{t("hero.subheading.part2")}
|
||||
</h2>
|
||||
</div>
|
||||
<div className="flex mt-5 lg:mt-12 mx-10 lg:mx-0 lg:ml-auto rounded-xl bg-gradient-to-br from-gold-light to-gold-dark p-0.5 shadow-lg">
|
||||
<a className="flex w-full" href="#Contact">
|
||||
<button className="flex-1 font-medium md:px-8 py-3 text-2xl md:text-3xl bg-gradient-to-br from-custom-bglight to-custom-bgdark rounded-xl hover:bg-transparent hover:from-transparent hover:to-transparent transition duration-500">
|
||||
Yes, I want that!
|
||||
{t("hero.button")}
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -1,23 +1,26 @@
|
||||
import { useTranslation } from "react-i18next";
|
||||
import Card from "./Card";
|
||||
|
||||
const CardContainer = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<div className="mt-10 flex-col h-full lg:grid lg:grid-cols-2 lg:gap-10 px-10 lg:px-40 2xl:px-96 1920:margin-calc">
|
||||
<Card
|
||||
title="GUARANTED"
|
||||
description={`We only win if you win!\nThat’s the basis for a good\npartnership.\nYou won’t carry all the risk,\nwe’ll share it.`}
|
||||
title={t("results.cards.card1.title")}
|
||||
description={t("results.cards.card1.description")}
|
||||
/>
|
||||
<Card
|
||||
title="RESULTS"
|
||||
description={`Our first priority is to get\nyou results.\n\nLess talk, more walk.`}
|
||||
title={t("results.cards.card2.title")}
|
||||
description={t("results.cards.card2.description")}
|
||||
/>
|
||||
<Card
|
||||
title="LOCAL"
|
||||
description={`We’re not a anonymous call\ncenter. We’re a local\ncompany, so you’ll be able to\nreach us when you need us`}
|
||||
title={t("results.cards.card3.title")}
|
||||
description={t("results.cards.card3.description")}
|
||||
/>
|
||||
<Card
|
||||
title="SPECIALIZED"
|
||||
description={`Jack of all trades... master\nof none Specialization\nworks. We work with\nindustries we know, so we\ncan guarantee results.`}
|
||||
title={t("results.cards.card4.title")}
|
||||
description={t("results.cards.card4.description")}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
import { useTranslation } from "react-i18next";
|
||||
import CardContainer from "./CardContainer";
|
||||
|
||||
const ResultsPage = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<div className="header-text">
|
||||
<h1>
|
||||
<span className="bg-clip-text text-transparent bg-gradient-to-br from-gold-light to-gold-dark">
|
||||
"
|
||||
</span>
|
||||
Ok... So what makes <br />
|
||||
us different?
|
||||
<span className="bg-clip-text text-transparent bg-gradient-to-br from-gold-light to-gold-dark">
|
||||
"
|
||||
</span>
|
||||
<span className="gold-text">"</span>
|
||||
{t("results.heading.part1")} <br /> {t("results.heading.part2")}
|
||||
<span className="gold-text">"</span>
|
||||
</h1>
|
||||
<CardContainer />
|
||||
</div>
|
||||
|
||||
@@ -3,14 +3,33 @@ import EnvisionImg from "../../../assets/imgs/Envision.jpg";
|
||||
import CaptureImg from "../../../assets/imgs/Capture.png";
|
||||
import EditImg from "../../../assets/imgs/Edit.png";
|
||||
import PublishImg from "../../../assets/imgs/Publish.jpg";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
const CameraCards = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<div className="h-full flex lg:mt-20 flex-col flex-wrap gap-4 xl:flex-row mx-4">
|
||||
<Card title="Envision" description="Prespective" imgSrc={EnvisionImg} />
|
||||
<Card title="Capture" description="Moments" imgSrc={CaptureImg} />
|
||||
<Card title="Edit" description="Moments" imgSrc={EditImg} />
|
||||
<Card title="Publish" description="Content" imgSrc={PublishImg} />
|
||||
<Card
|
||||
title={t("services.cards.media.card1.title")}
|
||||
description={t("services.cards.media.card1.description")}
|
||||
imgSrc={EnvisionImg}
|
||||
/>
|
||||
<Card
|
||||
title={t("services.cards.media.card2.title")}
|
||||
description={t("services.cards.media.card2.description")}
|
||||
imgSrc={CaptureImg}
|
||||
/>
|
||||
<Card
|
||||
title={t("services.cards.media.card3.title")}
|
||||
description={t("services.cards.media.card3.description")}
|
||||
imgSrc={EditImg}
|
||||
/>
|
||||
<Card
|
||||
title={t("services.cards.media.card4.title")}
|
||||
description={t("services.cards.media.card4.description")}
|
||||
imgSrc={PublishImg}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -3,14 +3,33 @@ import AnaliseImg from "../../../assets/imgs/Analise.jpg";
|
||||
import CreateImg from "../../../assets/imgs/Create.jpg";
|
||||
import ScaleImg from "../../../assets/imgs/Scale.jpg";
|
||||
import ExecuteImg from "../../../assets/imgs/Execute.jpg";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
const MarketingCards = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<div className="h-full flex lg:mt-20 flex-col flex-wrap gap-4 xl:flex-row mx-4">
|
||||
<Card title="Analise" description="Problem" imgSrc={AnaliseImg} />
|
||||
<Card title="Create" description="Strategy" imgSrc={CreateImg} />
|
||||
<Card title="Scale" description="Company" imgSrc={ScaleImg} />
|
||||
<Card title="Execute" description="Plan" imgSrc={ExecuteImg} />
|
||||
<Card
|
||||
title={t("services.cards.marketing.card1.title")}
|
||||
description={t("services.cards.marketing.card1.description")}
|
||||
imgSrc={AnaliseImg}
|
||||
/>
|
||||
<Card
|
||||
title={t("services.cards.marketing.card2.title")}
|
||||
description={t("services.cards.marketing.card2.description")}
|
||||
imgSrc={CreateImg}
|
||||
/>
|
||||
<Card
|
||||
title={t("services.cards.marketing.card3.title")}
|
||||
description={t("services.cards.marketing.card3.description")}
|
||||
imgSrc={ScaleImg}
|
||||
/>
|
||||
<Card
|
||||
title={t("services.cards.marketing.card4.title")}
|
||||
description={t("services.cards.marketing.card4.description")}
|
||||
imgSrc={ExecuteImg}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,13 +1,16 @@
|
||||
import { useTranslation } from "react-i18next";
|
||||
import Underline from "../../../assets/Underline.svg";
|
||||
import ServiceCardContainer from "./ServiceCardContainer";
|
||||
|
||||
const Services = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<div className="header-text">
|
||||
<h1>
|
||||
We've got your{" "}
|
||||
{t("services.heading.part1")}{" "}
|
||||
<span className="relative inline-block">
|
||||
footprint{" "}
|
||||
{t("services.heading.part2")}{" "}
|
||||
<img
|
||||
src={Underline}
|
||||
alt="underline"
|
||||
@@ -16,16 +19,12 @@ const Services = () => {
|
||||
</span>{" "}
|
||||
</h1>
|
||||
<h1>
|
||||
bullsh
|
||||
<span className="bg-clip-text text-transparent bg-gradient-to-br from-gold-light to-gold-dark">
|
||||
*
|
||||
</span>
|
||||
t covered
|
||||
{t("services.heading.part3")}
|
||||
<span className="gold-text">*</span>
|
||||
{t("services.heading.part4")}
|
||||
</h1>
|
||||
|
||||
<h2 className="sub-header-text">
|
||||
Unlock the full potential of your business with our services.
|
||||
</h2>
|
||||
<h2 className="sub-header-text">{t("services.subheading")}</h2>
|
||||
|
||||
<ServiceCardContainer />
|
||||
</div>
|
||||
|
||||
@@ -3,14 +3,33 @@ import AlgorithmImg from "../../../assets/imgs/Algorithm.jpg";
|
||||
import ScheduleImg from "../../../assets/imgs/Schedule.jpg";
|
||||
import TargetImg from "../../../assets/imgs/Target.jpg";
|
||||
import ExpandImg from "../../../assets/imgs/Expand.jpg";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
const SocialMediaCards = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<div className="h-full flex lg:mt-20 flex-col flex-wrap gap-4 xl:flex-row mx-4">
|
||||
<Card title="Algorithm" description="Analise" imgSrc={AlgorithmImg} />
|
||||
<Card title="Schedule" description="Content" imgSrc={ScheduleImg} />
|
||||
<Card title="Target" description="Audience" imgSrc={TargetImg} />
|
||||
<Card title="Expand" description="Platforms" imgSrc={ExpandImg} />
|
||||
<Card
|
||||
title={t("services.cards.social.card1.title")}
|
||||
description={t("services.cards.social.card1.description")}
|
||||
imgSrc={AlgorithmImg}
|
||||
/>
|
||||
<Card
|
||||
title={t("services.cards.social.card2.title")}
|
||||
description={t("services.cards.social.card2.description")}
|
||||
imgSrc={ScheduleImg}
|
||||
/>
|
||||
<Card
|
||||
title={t("services.cards.social.card3.title")}
|
||||
description={t("services.cards.social.card3.description")}
|
||||
imgSrc={TargetImg}
|
||||
/>
|
||||
<Card
|
||||
title={t("services.cards.social.card4.title")}
|
||||
description={t("services.cards.social.card4.description")}
|
||||
imgSrc={ExpandImg}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -3,14 +3,33 @@ import IdealizeImg from "../../../assets/imgs/Idealize.png";
|
||||
import DesignImg from "../../../assets/imgs/Design.png";
|
||||
import CodeImg from "../../../assets/imgs/Code.jpg";
|
||||
import BuildImg from "../../../assets/imgs/Build.png";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
const WesiteCards = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<div className="h-full flex lg:mt-20 flex-col flex-wrap gap-4 xl:flex-row mx-4">
|
||||
<Card title="Idealize" description="Website" imgSrc={IdealizeImg} />
|
||||
<Card title="Design" description="Website" imgSrc={DesignImg} />
|
||||
<Card title="Code" description="Website" imgSrc={CodeImg} />
|
||||
<Card title="Build" description="Website" imgSrc={BuildImg} />
|
||||
<Card
|
||||
title={t("services.cards.website.card1.title")}
|
||||
description={t("services.cards.website.card1.description")}
|
||||
imgSrc={IdealizeImg}
|
||||
/>
|
||||
<Card
|
||||
title={t("services.cards.website.card2.title")}
|
||||
description={t("services.cards.website.card2.description")}
|
||||
imgSrc={DesignImg}
|
||||
/>
|
||||
<Card
|
||||
title={t("services.cards.website.card3.title")}
|
||||
description={t("services.cards.website.card3.description")}
|
||||
imgSrc={CodeImg}
|
||||
/>
|
||||
<Card
|
||||
title={t("services.cards.website.card4.title")}
|
||||
description={t("services.cards.website.card4.description")}
|
||||
imgSrc={BuildImg}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user