diff --git a/src/pages/fr/[...redirect].astro.txt b/src/pages/fr/[...redirect].astro.txt new file mode 100644 index 000000000..0792976a1 --- /dev/null +++ b/src/pages/fr/[...redirect].astro.txt @@ -0,0 +1,30 @@ +--- +import { changeLanguage } from "i18next" +import { GetStaticPathsResult } from "astro" +import redirects from "../../features/redirects/redirects.json" + +changeLanguage("fr") + +export async function getStaticPaths(): Promise { + const sanitizeSource = (source: string) => { + let newSource = source + if (newSource[newSource.length - 1] === "/") newSource = newSource.slice(0, newSource.length - 1) + if (newSource[0] === "/") return newSource.slice(1, newSource.length) + return newSource + } + return redirects.redirects.map((entry) => { + return { + params: { redirect: sanitizeSource(entry.source) }, + props: { + to: + entry.destination.charAt(0) === "/" || entry.destination.includes("https://") + ? entry.destination + : "/" + entry.destination, + }, + } + }) +} +const { to } = Astro.props +--- + + \ No newline at end of file diff --git a/src/pages/fr/home/ContactUs.astro.txt b/src/pages/fr/home/ContactUs.astro.txt new file mode 100644 index 000000000..50711945b --- /dev/null +++ b/src/pages/fr/home/ContactUs.astro.txt @@ -0,0 +1,159 @@ +--- +import SectionHeader from "~/components/SectionHeader/index.astro" +import LinkArrowSvg from "~/assets/svgs/home/home-link-arrow.svg?raw" +import DiscordSvg from "~/assets/svgs/home/Discord.svg?raw" +import ForumSvg from "~/assets/svgs/home/Forum.svg?raw" +import ContributeSvg from "~/assets/svgs/home/Contribute.svg?raw" +import NoteSvg from "~/assets/svgs/home/Note.svg?raw" + +const mediaList = [ + { + icon: DiscordSvg, + name: "Rejoindre notre Discord", + content: "Connectez-vous avec d'autres développeurs et utilisateurs de Scroll.", + link: "https://discord.gg/scroll", + }, + { + icon: NoteSvg, + name: "Prendre contact", + content: "Contactez-nous directement si vous avez besoin d'un soutien supplémentaire pour votre projet.", + link: "https://tally.so/r/waxLBW", + }, + { + icon: ForumSvg, + name: "Forum de la communauté", + content: "Discutez et proposez des modifications aux protocoles de base du Scroll.", + link: "http://community.scroll.io/", + }, + { + icon: ContributeSvg, + name: "Contribuer à Scroll", + content: "Construisez avec d'autres développeurs.", + link: "https://github.com/scroll-tech/contribute-to-scroll", + }, +] + + +
+ +
+ { + mediaList.map(({ icon, name, content, link }) => ( + +
+ + + + + + +
+ + {name} + {content} +
+ )) + } +
+
+ + \ No newline at end of file diff --git a/src/pages/fr/home/Navigate.astro.txt b/src/pages/fr/home/Navigate.astro.txt new file mode 100644 index 000000000..2c9088cc2 --- /dev/null +++ b/src/pages/fr/home/Navigate.astro.txt @@ -0,0 +1,91 @@ +
+ +
+ { + toolList.map(({ icon, name, quickstartAnchor, color }) => ( + +
+ {color ? : {name}} +
+ {name} +
+ )) + } +
+
+ + \ No newline at end of file diff --git a/src/pages/fr/home/QuickStart.astro.txt b/src/pages/fr/home/QuickStart.astro.txt new file mode 100644 index 000000000..45a17723e --- /dev/null +++ b/src/pages/fr/home/QuickStart.astro.txt @@ -0,0 +1,106 @@ +const toolList = [ + { icon: "/svgs/Hardhat.svg", name: "Hardhat", link: "https://hardhat.org/", quickstartAnchor: "hardhat" }, + { icon: "/svgs/Foundry.svg", name: "Foundry", link: "https://getfoundry.sh/", quickstartAnchor: "foundry" }, + { icon: "/svgs/Remix.svg", name: "Remix", link: "https://remix-project.org/", quickstartAnchor: "remix-web-ide" }, + { + icon: EtherSvg, + color: "text-[#2A4B78] dark:text-white-800", + name: "EthersJS", + link: "https://ethers.org/", + quickstartAnchor: "ethersjs", + }, + { icon: "/svgs/Brownie.svg", name: "Brownie", link: "https://github.com/eth-brownie", quickstartAnchor: "brownie" }, + { icon: "/svgs/Truffle.svg", name: "Truffle", link: "https://trufflesuite.com/", quickstartAnchor: "truffle" }, +] + +
+ +
+ { + toolList.map(({ icon, name, quickstartAnchor, color }) => ( + +
+ {color ? : {name}} +
+ {name} +
+ )) + } +
+
+ + \ No newline at end of file diff --git a/src/pages/fr/home/index.astro.txt b/src/pages/fr/home/index.astro.txt new file mode 100644 index 000000000..5716e8479 --- /dev/null +++ b/src/pages/fr/home/index.astro.txt @@ -0,0 +1,54 @@ +const navList = [ + { + icon: StartSvg, + name: "Commencer", + content: "Connectez-vous à Scroll et explorez notre écosystème de dApps.", + link: "/en/getting-started/overview", + }, + { + icon: DevelopSvg, + name: "Développeurs", + content: "Plongez dans la documentation de développement de Scroll.", + link: "/en/developers", + }, + { + icon: TechnologySvg, + name: "Technologie", + content: "Aperçu de l'architecture zkEVM de Scroll.", + link: "/en/technology", + }, + { + icon: LearnSvg, + name: "Apprendre", + content: "Introduction au monde du ZK et de la scalabilité.", + link: "/en/learn", + }, +] + + + + \ No newline at end of file diff --git a/src/pages/fr/index.astro.txt b/src/pages/fr/index.astro.txt new file mode 100644 index 000000000..47be55e36 --- /dev/null +++ b/src/pages/fr/index.astro.txt @@ -0,0 +1,6 @@ +--- +import i18next, { changeLanguage } from "i18next" +changeLanguage("fr") +--- + + \ No newline at end of file