Skip to content

Commit

Permalink
Merge pull request #5 from Vaibhav-Magadum/main
Browse files Browse the repository at this point in the history
Translation page added
  • Loading branch information
suvanbanerjee authored Jun 19, 2024
2 parents 017435b + e650d17 commit 30a6aba
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 3 deletions.
59 changes: 56 additions & 3 deletions components/translation.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,60 @@
'use client';
import React, { useState } from 'react';
import Link from 'next/link';

export default function Translation() {
const [isGithubCollapsed, setIsGithubCollapsed] = useState(false);
const [isMailCollapsed, setIsMailCollapsed] = useState(false);
const [isMatrixCollapsed, setIsMatrixCollapsed] = useState(false);

const toggleGithubCollapse = () => {
setIsGithubCollapsed(!isGithubCollapsed);
};

const toggleMailCollapse = () => {
setIsMailCollapsed(!isMailCollapsed);
};

const toggleMatrixCollapse = () => {
setIsMatrixCollapsed(!isMatrixCollapsed);
};

return (
<section className="relative">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<section className="relative mt-12">
<div className="max-w-6xl mx-auto px-4 sm:px-6">
<div className="pt-12 md:pt-16">
<div className="max-w-2xl mx-auto flex flex-col justify-center items-center gap-8 text-center">
<h3 className="text-4xl font-extrabold leading-tighter tracking-tighter mb-4 dark:text-gray-200" data-aos="zoom-y-out">How can you help?</h3>
<p className="text-xl text-gray-600 dark:text-gray-100 mb-8" data-aos="zoom-y-out" data-aos-delay="150">
The easiest way to help us is to translate the content using GitLocalize. GitLocalize is a tool to help you translate your open-source project into multiple languages. Watch the video below to learn more about how to use GitLocalize.
</p>
</div>
<div className="relative">
<iframe src="https://www.youtube.com/embed/2udvdIW9W2s" className="mx-auto" height={450} width={720} />
</div>
</div>
<div className="flex justify-center mt-8">
<Link className="bg-black text-white font-bold py-2 px-4 rounded m-5 dark:bg-gray-800 hover:bg-gray-900" href="https://ovos-translation-landing.vercel.app/tutorial.html">
Text Tutorial
</Link>
<Link className="bg-black text-white font-bold py-2 px-4 rounded m-5 dark:bg-gray-800 hover:bg-gray-900" href="https://gitlocalize.com/users/OpenVoiceOS">
Translate on GitLocalize
</Link>
</div>
<div className="pt-12 md:pt-16">
<div className="max-w-2xl mx-auto flex flex-col justify-center items-center gap-8 text-center">
<h3 className="text-3xl font-extrabold leading-tighter tracking-tighter mb-4 dark:text-gray-200" data-aos="zoom-y-out">Developers</h3>
<p className="text-xl text-gray-600 dark:text-gray-100 mb-18" data-aos="zoom-y-out" data-aos-delay="150">
If you're a developer looking to contribute to the project, Gitlocalize might not always be sufficient. In such cases, you may need to work directly with the code. For comprehensive instructions on how to contribute, please refer to our developer's translation guide.
</p>
</div>
<div className="flex justify-center">
<Link className="bg-black text-white font-bold py-2 px-4 rounded m-5 dark:bg-gray-800 hover:bg-gray-900" href="https://github.com/JarbasAl/mycroft-catalan.conf">
Developers Guide
</Link>
</div>
</div>
</div>
</section>
)
);
}
5 changes: 5 additions & 0 deletions components/ui/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ export default function Header() {
</div>
<nav className="hidden md:flex md:grow">
<ul className="flex grow justify-end flex-wrap items-center">
<li>
<Link href="/translation">
<p className={`font-medium ${pathname === '/translation' ? 'font-extrabold text-black dark:text-white' : 'text-gray-600'} hover:text-gray-900 dark:hover:text-white px-5 py-3 flex items-center transition duration-150 ease-in-out`}>Translation</p>
</Link>
</li>
<li>
<Link href="/downloads">
<p className={`font-medium ${pathname === '/downloads' ? 'font-extrabold text-black dark:text-white' : 'text-gray-600'} hover:text-gray-900 dark:hover:text-white px-5 py-3 flex items-center transition duration-150 ease-in-out`}>Downloads</p>
Expand Down

0 comments on commit 30a6aba

Please sign in to comment.