Skip to content

Commit 75f068d

Browse files
committed
feat: add open source section
1 parent 6cfdf6e commit 75f068d

File tree

6 files changed

+38
-4
lines changed

6 files changed

+38
-4
lines changed

public/locales/bg/common.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,10 @@
205205
"testimonials.community.stats.card-3.description": "learners gave to submissions of their peers.",
206206
"testimonials.community.join": "{{appName}} on Discord",
207207
"testimonials.text": "Dacade is really encouraging, I didn't realize the little that I know would matter. Thank you for making us learn more and to make research too.",
208-
"footer.text": "Dacade is created in collaboration with multiple contributors. If you are interested in collaborating, please <a href=\"https://discord.gg/U38KQHDtHe\">get in touch.</a>",
208+
"footer.text": "Dacade е отворена платформа и е създадена в сътрудничество с множество приносители. Отидете на <a href=\"https://github.com/dacadeorg/dacade-frontend-app\"> хранилището </a>, за да започнете да допринасяте.",
209209
"footer.privacy-policy": "Impressum & Privacy Policy",
210+
"footer.open.source": "Дакейд е платформа с отворен код.",
211+
"footer.open.source.contribute": "Станете един от нашите сътрудници.",
210212
"feedback.bounty": "Feedback bounty",
211213
"feedback.issued": "Issued",
212214
"feedback.ends": "ending in ",

public/locales/en/common.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,10 @@
209209
"testimonials.community.stats.card-3.description": "learners gave to submissions of their peers.",
210210
"testimonials.community.join": "{{appName}} on Discord",
211211
"testimonials.text": "Dacade is really encouraging, I didn't realize the little that I know would matter. Thank you for making us learn more and to make research too.",
212-
"footer.text": "Dacade is created in collaboration with multiple contributors. If you are interested in collaborating, please <a href=\"https://discord.gg/U38KQHDtHe\">get in touch.</a>",
212+
"footer.text": "Dacade is an open-sourced platform and is created in collaboration with multiple contributors. Go to the <a href=\"https://github.com/dacadeorg/dacade-frontend-app\"> repository </a> to start contributing.",
213213
"footer.privacy-policy": "Impressum & Privacy Policy",
214+
"footer.open.source" : "Dacade is an open-sourced platform",
215+
"footer.open.source.contribute":"Become one of our contributors",
214216
"feedback.bounty": "Feedback bounty",
215217
"feedback.issued": "Issued",
216218
"feedback.ends": "ending in ",

public/locales/es/common.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@
207207
"testimonials.community.stats.card-3.description": "los estudiantes mostraron sus propuestas a sus compañeras",
208208
"testimonials.community.join": "{{appName}} en Discord",
209209
"testimonials.text": "Dacade es muy motivadora, no era consciente de que mis pocos conocimientos podrían ser útiles. Gracias por permitirnos aprender e investigar más.",
210-
"footer.text": "Dacade ha sido creada en colaboración con múltiples contribuciones. Si le interesa colaborar <a href=\"https://discord.gg/U38KQHDtHe\">contáctenos.</a>",
210+
"footer.text": "Dacade es una plataforma de código abierto y se creó en colaboración con múltiples contribuyentes. Visita el <a href=\"https://github.com/dacadeorg/dacade-frontend-app\"> repositorio </a> para empezar a contribuir.",
211+
"footer.open.source": "Dacade es una plataforma de código abierto.",
212+
"footer.open.source.contribute": "Conviértase en uno de nuestros colaboradores.",
211213
"footer.privacy-policy": "Impressum & Política de Privacidad",
212214
"feedback.bounty": "Premio por Feedback",
213215
"feedback.issued": "Emitido",

public/locales/hr/common.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,10 @@
205205
"testimonials.community.stats.card-3.description": "learners gave to submissions of their peers.",
206206
"testimonials.community.join": "{{appName}} on Discord",
207207
"testimonials.text": "Dacade is really encouraging, I didn't realize the little that I know would matter. Thank you for making us learn more and to make research too.",
208-
"footer.text": "Dacade is created in collaboration with multiple contributors. If you are interested in collaborating, please <a href=\"https://discord.gg/U38KQHDtHe\">get in touch.</a>",
208+
"footer.text": "Dacade je platforma s otvorenim kodom i stvorena je u suradnji s višestrukim suradnicima. Posjetite <a href=\"https://github.com/dacadeorg/dacade-frontend-app\"> repozitorij </a> kako biste počeli doprinositi.",
209209
"footer.privacy-policy": "Impressum & Privacy Policy",
210+
"footer.open.source": "Dacade je platforma otvorenog koda.",
211+
"footer.open.source.contribute": "Postanite jedan od naših suradnika.",
210212
"feedback.bounty": "Feedback bounty",
211213
"feedback.issued": "Issued",
212214
"feedback.ends": "ending in ",
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import Link from "next/link";
2+
import ArrowRightIcon from "@/icons/arrow-right.svg";
3+
import { useTranslation } from "next-i18next";
4+
5+
/**
6+
* Open source section
7+
* @date 3/27/2023 - 5:26:28 PM
8+
*
9+
* @export
10+
* @returns {ReactElement}
11+
*/
12+
13+
export default function OpenSource() {
14+
const { t } = useTranslation();
15+
return (
16+
<div className=" text-3xl lg:text-5xl pt-24 flex flex-col text-wrap space-y-2">
17+
<span>{t("footer.open.source")}</span>
18+
<Link href="https://github.com/dacadeorg/dacade-frontend-app" target="_blank" className="text-primary items-center space-x-2">
19+
<span>{t("footer.open.source.contribute")}</span>
20+
<ArrowRightIcon className="w-6.5 h-5.5 inline-flex" />
21+
</Link>
22+
</div>
23+
);
24+
}

src/components/sections/homepage/Testimonials.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { ReactElement } from "react";
44
import CommunityStats from "./_partials/testimonials/CommunityStats";
55
import { useTranslation } from "next-i18next";
66
import { TFunction } from "i18next";
7+
import OpenSource from "./OpenSource";
78

89
/**
910
* Interface for the testimonial
@@ -80,6 +81,7 @@ export default function TestimonialsSection(): ReactElement {
8081
<Section type="secondary-light" padding="py-6 xl:py-10 md:py-8 mt-5">
8182
<CommunityStats />
8283
<Stories list={stories(t)} />
84+
<OpenSource/>
8385
</Section>
8486
);
8587
}

0 commit comments

Comments
 (0)