Skip to content

Commit c88b399

Browse files
Merge pull request #1188 from dacadeorg/ft/advertise-open-source
feat: add open source section
2 parents 2192d81 + 7ef0a4d commit c88b399

File tree

6 files changed

+41
-4
lines changed

6 files changed

+41
-4
lines changed

public/locales/bg/common.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,10 @@
207207
"testimonials.community.stats.card-3.description": "learners gave to submissions of their peers.",
208208
"testimonials.community.join": "{{appName}} on Discord",
209209
"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.",
210-
"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>",
210+
"footer.text": "Dacade е отворена платформа и е създадена в сътрудничество с множество приносители. Отидете на <a href=\"https://github.com/dacadeorg/dacade-frontend-app\"> хранилището </a>, за да започнете да допринасяте.",
211211
"footer.privacy-policy": "Impressum & Privacy Policy",
212+
"footer.open.source": "Дакейд е платформа с отворен код.",
213+
"footer.open.source.contribute": "Станете един от нашите сътрудници",
212214
"feedback.bounty": "Feedback bounty",
213215
"feedback.issued": "Issued",
214216
"feedback.ends": "ending in ",

public/locales/en/common.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,10 @@
211211
"testimonials.community.stats.card-3.description": "learners gave to submissions of their peers.",
212212
"testimonials.community.join": "{{appName}} on Discord",
213213
"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.",
214-
"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>",
214+
"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.",
215215
"footer.privacy-policy": "Impressum & Privacy Policy",
216+
"footer.open.source" : "Dacade is an open-sourced platform.",
217+
"footer.open.source.contribute":"Become one of our contributors",
216218
"feedback.bounty": "Feedback bounty",
217219
"feedback.issued": "Issued",
218220
"feedback.ends": "ending in ",

public/locales/es/common.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@
209209
"testimonials.community.stats.card-3.description": "los estudiantes mostraron sus propuestas a sus compañeras",
210210
"testimonials.community.join": "{{appName}} en Discord",
211211
"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.",
212-
"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>",
212+
"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.",
213+
"footer.open.source": "Dacade es una plataforma de código abierto.",
214+
"footer.open.source.contribute": "Conviértase en uno de nuestros colaboradores",
213215
"footer.privacy-policy": "Impressum & Política de Privacidad",
214216
"feedback.bounty": "Premio por Feedback",
215217
"feedback.issued": "Emitido",

public/locales/hr/common.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,10 @@
207207
"testimonials.community.stats.card-3.description": "learners gave to submissions of their peers.",
208208
"testimonials.community.join": "{{appName}} on Discord",
209209
"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.",
210-
"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>",
210+
"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.",
211211
"footer.privacy-policy": "Impressum & Privacy Policy",
212+
"footer.open.source": "Dacade je platforma otvorenog koda.",
213+
"footer.open.source.contribute": "Postanite jedan od naših suradnika",
212214
"feedback.bounty": "Feedback bounty",
213215
"feedback.issued": "Issued",
214216
"feedback.ends": "ending in ",
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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-4xl lg:text-5xl pt-24 flex flex-col text-wrap space-y-2">
17+
<p >
18+
{t("footer.open.source")}
19+
<br className="block md:hidden lg:block" />
20+
<Link href="https://github.com/dacadeorg/dacade-frontend-app" target="_blank" className="text-primary items-center space-x-2">
21+
<span> {t("footer.open.source.contribute")}</span>
22+
<ArrowRightIcon className="w-6.5 h-5.5 inline-flex" />
23+
</Link>
24+
</p>
25+
</div>
26+
);
27+
}

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)