Changed string values to use i18n

This commit is contained in:
Fernando Videira
2024-06-11 14:58:33 +01:00
parent 3cbf508664
commit 74769f78ce
17 changed files with 478 additions and 77 deletions
+125
View File
@@ -11,10 +11,14 @@
"@emailjs/browser": "^4.3.3",
"@headlessui/react": "^1.7.18",
"@heroicons/react": "^2.1.3",
"i18next": "^23.11.5",
"i18next-browser-languagedetector": "^8.0.0",
"i18next-http-backend": "^2.5.2",
"localforage": "^1.10.0",
"match-sorter": "^6.3.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^14.1.2",
"react-icons": "^5.0.1",
"react-router-dom": "^6.22.3",
"react-toastify": "^10.0.5",
@@ -1990,6 +1994,14 @@
"integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
"dev": true
},
"node_modules/cross-fetch": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz",
"integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==",
"dependencies": {
"node-fetch": "^2.6.12"
}
},
"node_modules/cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
@@ -2729,6 +2741,52 @@
"node": ">= 0.4"
}
},
"node_modules/html-parse-stringify": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/html-parse-stringify/-/html-parse-stringify-3.0.1.tgz",
"integrity": "sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==",
"dependencies": {
"void-elements": "3.1.0"
}
},
"node_modules/i18next": {
"version": "23.11.5",
"resolved": "https://registry.npmjs.org/i18next/-/i18next-23.11.5.tgz",
"integrity": "sha512-41pvpVbW9rhZPk5xjCX2TPJi2861LEig/YRhUkY+1FQ2IQPS0bKUDYnEqY8XPPbB48h1uIwLnP9iiEfuSl20CA==",
"funding": [
{
"type": "individual",
"url": "https://locize.com"
},
{
"type": "individual",
"url": "https://locize.com/i18next.html"
},
{
"type": "individual",
"url": "https://www.i18next.com/how-to/faq#i18next-is-awesome.-how-can-i-support-the-project"
}
],
"dependencies": {
"@babel/runtime": "^7.23.2"
}
},
"node_modules/i18next-browser-languagedetector": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/i18next-browser-languagedetector/-/i18next-browser-languagedetector-8.0.0.tgz",
"integrity": "sha512-zhXdJXTTCoG39QsrOCiOabnWj2jecouOqbchu3EfhtSHxIB5Uugnm9JaizenOy39h7ne3+fLikIjeW88+rgszw==",
"dependencies": {
"@babel/runtime": "^7.23.2"
}
},
"node_modules/i18next-http-backend": {
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/i18next-http-backend/-/i18next-http-backend-2.5.2.tgz",
"integrity": "sha512-+K8HbDfrvc1/2X8jpb7RLhI9ZxBDpx3xogYkQwGKlWAUXLSEGXzgdt3EcUjLlBCdMwdQY+K+EUF6oh8oB6rwHw==",
"dependencies": {
"cross-fetch": "4.0.0"
}
},
"node_modules/ignore": {
"version": "5.3.1",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz",
@@ -3138,6 +3196,25 @@
"integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
"dev": true
},
"node_modules/node-fetch": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
"integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
"dependencies": {
"whatwg-url": "^5.0.0"
},
"engines": {
"node": "4.x || >=6.0.0"
},
"peerDependencies": {
"encoding": "^0.1.0"
},
"peerDependenciesMeta": {
"encoding": {
"optional": true
}
}
},
"node_modules/node-releases": {
"version": "2.0.14",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz",
@@ -3561,6 +3638,27 @@
"react": "^18.2.0"
}
},
"node_modules/react-i18next": {
"version": "14.1.2",
"resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-14.1.2.tgz",
"integrity": "sha512-FSIcJy6oauJbGEXfhUgVeLzvWBhIBIS+/9c6Lj4niwKZyGaGb4V4vUbATXSlsHJDXXB+ociNxqFNiFuV1gmoqg==",
"dependencies": {
"@babel/runtime": "^7.23.9",
"html-parse-stringify": "^3.0.1"
},
"peerDependencies": {
"i18next": ">= 23.2.3",
"react": ">= 16.8.0"
},
"peerDependenciesMeta": {
"react-dom": {
"optional": true
},
"react-native": {
"optional": true
}
}
},
"node_modules/react-icons": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/react-icons/-/react-icons-5.0.1.tgz",
@@ -4113,6 +4211,11 @@
"node": ">=8.0"
}
},
"node_modules/tr46": {
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
},
"node_modules/ts-api-utils": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.2.1.tgz",
@@ -4268,6 +4371,28 @@
}
}
},
"node_modules/void-elements": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/void-elements/-/void-elements-3.1.0.tgz",
"integrity": "sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/webidl-conversions": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
},
"node_modules/whatwg-url": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
"integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
"dependencies": {
"tr46": "~0.0.3",
"webidl-conversions": "^3.0.0"
}
},
"node_modules/which": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+4
View File
@@ -13,10 +13,14 @@
"@emailjs/browser": "^4.3.3",
"@headlessui/react": "^1.7.18",
"@heroicons/react": "^2.1.3",
"i18next": "^23.11.5",
"i18next-browser-languagedetector": "^8.0.0",
"i18next-http-backend": "^2.5.2",
"localforage": "^1.10.0",
"match-sorter": "^6.3.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^14.1.2",
"react-icons": "^5.0.1",
"react-router-dom": "^6.22.3",
"react-toastify": "^10.0.5",
+155
View File
@@ -0,0 +1,155 @@
{
"navbar": {
"services": "Services",
"advantages": "Advantages",
"contact": "Contact"
},
"hero": {
"heading": {
"part1": "GROW YOUR",
"part2": "BUSINESS"
},
"subheading": {
"part1": "We do all the digital footprint for you,",
"part2": "so you can focus on what's important!"
},
"button": "Yes, I want that!"
},
"services": {
"heading": {
"part1": "We've got your",
"part2": "footprint",
"part3": "bullsh",
"part4": "t covered!"
},
"subheading": "Unlock the full potential of your business with our services.",
"cards": {
"marketing": {
"card1": {
"title": "Analyze",
"description": "Problem"
},
"card2": {
"title": "Create",
"description": "Strategy"
},
"card3": {
"title": "Scale",
"description": "Company"
},
"card4": {
"title": "Execute",
"description": "Plan"
}
},
"website": {
"card1": {
"title": "Idealize",
"description": "Website"
},
"card2": {
"title": "Design",
"description": "Website"
},
"card3": {
"title": "Develop",
"description": "Website"
},
"card4": {
"title": "Build",
"description": "Website"
}
},
"social": {
"card1": {
"title": "Analyze",
"description": "Algorithm"
},
"card2": {
"title": "Schedule",
"description": "Content"
},
"card3": {
"title": "Target",
"description": "Audience"
},
"card4": {
"title": "Expand",
"description": "Platforms"
}
},
"media": {
"card1": {
"title": "Envision",
"description": "Prespective"
},
"card2": {
"title": "Capture",
"description": "Moments"
},
"card3": {
"title": "Edit",
"description": "Moments"
},
"card4": {
"title": "Publish",
"description": "Content"
}
}
}
},
"results": {
"heading": {
"part1": "Ok... So what makes",
"part2": "us different?"
},
"subheading": "We have helped many businesses grow and expand their digital footprint.",
"cards": {
"card1": {
"title": "GARANTEED",
"description": "We only win if you win!\nThats the basis for a good\npartnership.\nYou wont carry all the risk,\nwell share it."
},
"card2": {
"title": "RESULTS",
"description": "Our first priority is to get\nyou results.\n\nLess talk, more walk."
},
"card3": {
"title": "LOCAL",
"description": "Were not a anonymous call\ncenter. Were a local\ncompany, so youll be able to\nreach us when you need us"
},
"card4": {
"title": "SPECIALIZED",
"description": "Jack of all trades... master\nof none Specialization\nworks. We work with\nindustries we know, so we\ncan guarantee results."
}
}
},
"contact": {
"heading": {
"part1": "Contact Us For",
"part2": "A",
"part3": "Free",
"part4": "Analysis"
},
"subheading": {
"part1": "Would you like to know what we could do for you? Fill out the form ad well get",
"part2": "back to you No obligation, no annoying tactics. We wont waste your time."
},
"form": {
"name": "Name",
"email": "Email",
"company": "Company",
"phone": "Phone",
"question": "What is your most important question?",
"message": "Message",
"button": "Send"
},
"toasts": {
"success": "Your message has been sent successfully!",
"error": "An error occurred while sending your message. Please try again later.",
"empty": "Please fill out all the fields before sending the message."
}
}
}
+5 -3
View File
@@ -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 (
+13 -10
View File
@@ -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>
+9 -9
View File
@@ -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
well get <br />
back to you No obligation, no annoying tactics. We wont waste your
time.
{t("contact.subheading.part1")} <br />
{t("contact.subheading.part2")}
</h2>
</div>
<ContactForm />
+15 -10
View File
@@ -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>
+11 -8
View File
@@ -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!\nThats the basis for a good\npartnership.\nYou wont carry all the risk,\nwell 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={`Were not a anonymous call\ncenter. Were a local\ncompany, so youll 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>
);
+6 -8
View File
@@ -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>
+23 -4
View File
@@ -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>
);
};
+9 -10
View File
@@ -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>
+23 -4
View File
@@ -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>
);
};
+23 -4
View File
@@ -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>
);
};
+27
View File
@@ -0,0 +1,27 @@
import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import LanguageDetector from "i18next-browser-languagedetector";
import Backend from "i18next-http-backend";
i18n
.use(Backend)
// detect user language
// learn more: https://github.com/i18next/i18next-browser-languageDetector
.use(LanguageDetector)
// pass the i18n instance to react-i18next.
.use(initReactI18next)
// init i18next
// for all options read: https://www.i18next.com/overview/configuration-options
.init({
backend: {
// translation file path
loadPath: "/locales/{{lng}}.json",
},
debug: true,
fallbackLng: "en",
interpolation: {
escapeValue: false, // not needed for react as it escapes by default
},
});
export default i18n;
+6 -2
View File
@@ -1,13 +1,17 @@
import React from "react";
import React, { Suspense } from "react";
import ReactDOM from "react-dom/client";
import App from "./App.tsx";
import "./index.css";
import { BrowserRouter } from "react-router-dom";
import "./i18n";
ReactDOM.createRoot(document.getElementById("root")!).render(
<BrowserRouter>
<React.StrictMode>
<App />
<Suspense fallback="...is loading">
<App />
</Suspense>
</React.StrictMode>
</BrowserRouter>
);
+1 -1
View File
@@ -13,7 +13,7 @@ const Home = () => {
<div id="Services">
<Services />
</div>
<div id="Results">
<div id="Advantages">
<ResultsPage />
</div>
<div id="Contact">