mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 16:22:59 +10:00
extracted strings from about tab
This commit is contained in:
@ -21,9 +21,9 @@ const RightSidebar = () => {
|
|||||||
t('colors.title'),
|
t('colors.title'),
|
||||||
t('fonts.title'),
|
t('fonts.title'),
|
||||||
t('actions.title'),
|
t('actions.title'),
|
||||||
'About',
|
t('about.title'),
|
||||||
];
|
];
|
||||||
const [currentTab, setCurrentTab] = useState(t('actions.title'));
|
const [currentTab, setCurrentTab] = useState(t('about.title'));
|
||||||
const onChange = (key, value) => {
|
const onChange = (key, value) => {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: 'on_input',
|
type: 'on_input',
|
||||||
@ -46,7 +46,7 @@ const RightSidebar = () => {
|
|||||||
return <FontsTab theme={theme} onChange={onChange} />;
|
return <FontsTab theme={theme} onChange={onChange} />;
|
||||||
case t('actions.title'):
|
case t('actions.title'):
|
||||||
return <ActionsTab data={data} theme={theme} dispatch={dispatch} />;
|
return <ActionsTab data={data} theme={theme} dispatch={dispatch} />;
|
||||||
case 'About':
|
case t('about.title'):
|
||||||
return <AboutTab />;
|
return <AboutTab />;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@ -1,16 +1,15 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { Trans, useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
const AboutTab = () => {
|
const AboutTab = () => {
|
||||||
|
const { t } = useTranslation('rightSidebar');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className="shadow text-center p-5">
|
<div className="shadow text-center p-5">
|
||||||
<h6 className="font-bold text-sm mb-2">Documentation</h6>
|
<h6 className="font-bold text-sm mb-2">{t('about.documentation.heading')}</h6>
|
||||||
|
|
||||||
<div className="text-sm">
|
<div className="text-sm">{t('about.documentation.body')}</div>
|
||||||
Want to know more about the app? Wouldn't it be nice if there was a guide to setting
|
|
||||||
it up on your local machine? Need information on how to contribute to the project? Look no
|
|
||||||
further, there's a comprehensive documentation made just for you.
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@ -20,7 +19,7 @@ const AboutTab = () => {
|
|||||||
>
|
>
|
||||||
<div className="flex justify-center items-center">
|
<div className="flex justify-center items-center">
|
||||||
<i className="material-icons mr-2 font-bold text-base">description</i>
|
<i className="material-icons mr-2 font-bold text-base">description</i>
|
||||||
<span className="text-sm">Documentation</span>
|
<span className="text-sm">{t('about.documentation.buttons.documentation')}</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@ -28,13 +27,9 @@ const AboutTab = () => {
|
|||||||
<hr className="my-5" />
|
<hr className="my-5" />
|
||||||
|
|
||||||
<div className="shadow text-center p-5">
|
<div className="shadow text-center p-5">
|
||||||
<h6 className="font-bold text-sm mb-2">Bug? Feature Request?</h6>
|
<h6 className="font-bold text-sm mb-2">{t('about.bugOrFeatureRequest.heading')}</h6>
|
||||||
|
|
||||||
<div className="text-sm">
|
<div className="text-sm">{t('about.bugOrFeatureRequest.body')}</div>
|
||||||
Something halting your progress from making a resume? Found a pesky bug that just
|
|
||||||
won't quit? Talk about it on the GitHub Issues section, or send me and email using
|
|
||||||
the actions below.
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="grid grid-cols-1">
|
<div className="grid grid-cols-1">
|
||||||
<a
|
<a
|
||||||
@ -45,7 +40,7 @@ const AboutTab = () => {
|
|||||||
>
|
>
|
||||||
<div className="flex justify-center items-center">
|
<div className="flex justify-center items-center">
|
||||||
<i className="material-icons mr-2 font-bold text-base">bug_report</i>
|
<i className="material-icons mr-2 font-bold text-base">bug_report</i>
|
||||||
<span className="text-sm">Raise an Issue</span>
|
<span className="text-sm">{t('about.bugOrFeatureRequest.buttons.raiseIssue')}</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
@ -57,7 +52,7 @@ const AboutTab = () => {
|
|||||||
>
|
>
|
||||||
<div className="flex justify-center items-center">
|
<div className="flex justify-center items-center">
|
||||||
<i className="material-icons mr-2 font-bold text-base">email</i>
|
<i className="material-icons mr-2 font-bold text-base">email</i>
|
||||||
<span className="text-sm">Send an Email</span>
|
<span className="text-sm">{t('about.bugOrFeatureRequest.buttons.sendEmail')}</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@ -66,12 +61,9 @@ const AboutTab = () => {
|
|||||||
<hr className="my-5" />
|
<hr className="my-5" />
|
||||||
|
|
||||||
<div className="shadow text-center p-5">
|
<div className="shadow text-center p-5">
|
||||||
<h6 className="font-bold text-sm mb-2">Source Code</h6>
|
<h6 className="font-bold text-sm mb-2">{t('about.sourceCode.heading')}</h6>
|
||||||
|
|
||||||
<div className="text-sm">
|
<div className="text-sm">{t('about.sourceCode.body')}</div>
|
||||||
Want to run the project from it's source? Are you a developer willing to contribute
|
|
||||||
to the open source development of this project? Click the button below.
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@ -81,7 +73,7 @@ const AboutTab = () => {
|
|||||||
>
|
>
|
||||||
<div className="flex justify-center items-center">
|
<div className="flex justify-center items-center">
|
||||||
<i className="material-icons mr-2 font-bold text-base">code</i>
|
<i className="material-icons mr-2 font-bold text-base">code</i>
|
||||||
<span className="text-sm">GitHub Repo</span>
|
<span className="text-sm">{t('about.sourceCode.buttons.githubRepo')}</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@ -89,13 +81,9 @@ const AboutTab = () => {
|
|||||||
<hr className="my-5" />
|
<hr className="my-5" />
|
||||||
|
|
||||||
<div className="shadow text-center p-5">
|
<div className="shadow text-center p-5">
|
||||||
<h6 className="font-bold text-sm mb-2">License Information</h6>
|
<h6 className="font-bold text-sm mb-2">{t('about.license.heading')}</h6>
|
||||||
|
|
||||||
<div className="text-sm">
|
<div className="text-sm">{t('about.license.body')}</div>
|
||||||
The project is governed under the MIT License, which you can read more about below.
|
|
||||||
Basically, you are allowed to use the project anywhere provided you give credits to the
|
|
||||||
original author.
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@ -105,27 +93,27 @@ const AboutTab = () => {
|
|||||||
>
|
>
|
||||||
<div className="flex justify-center items-center">
|
<div className="flex justify-center items-center">
|
||||||
<i className="material-icons mr-2 font-bold text-base">policy</i>
|
<i className="material-icons mr-2 font-bold text-base">policy</i>
|
||||||
<span className="text-sm">MIT License</span>
|
<span className="text-sm">{t('about.license.buttons.mitLicense')}</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mt-5">
|
<div className="mt-5">
|
||||||
<p className="text-xs font-gray-600 text-center">
|
<p className="text-xs font-gray-600 text-center">
|
||||||
Reactive Resume is a project by{' '}
|
<Trans t={t} i18nKey="about.footer.credit">
|
||||||
<a
|
Reactive Resume is a project by
|
||||||
className="hover:underline"
|
<a
|
||||||
href="https://www.amruthpillai.com/"
|
className="font-bold hover:underline"
|
||||||
rel="noopener noreferrer"
|
href="https://www.amruthpillai.com/"
|
||||||
target="_blank"
|
rel="noopener noreferrer"
|
||||||
>
|
target="_blank"
|
||||||
<strong>Amruth Pillai</strong>
|
>
|
||||||
</a>{' '}
|
Amruth Pillai
|
||||||
in hopes of allowing anyone to make beautiful resumes and get equal job opportunities.
|
</a>
|
||||||
<br />
|
.
|
||||||
<br />
|
</Trans>
|
||||||
Thank you for using Reactive Resume!
|
|
||||||
</p>
|
</p>
|
||||||
|
<p className="text-xs font-gray-600 text-center">{t('about.footer.thanks')}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
36
src/i18n/resources/en/rightSidebar/about.json
Normal file
36
src/i18n/resources/en/rightSidebar/about.json
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"title": "About",
|
||||||
|
"documentation": {
|
||||||
|
"heading": "Documentation",
|
||||||
|
"body": "Want to know more about the app? Wouldn't it be nice if there was a guide to setting it up on your local machine? Need information on how to contribute to the project? Look no further, there's a comprehensive documentation made just for you.",
|
||||||
|
"buttons": {
|
||||||
|
"documentation": "Documentation"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"bugOrFeatureRequest": {
|
||||||
|
"heading": "Bug? Feature Request?",
|
||||||
|
"body": "Something halting your progress from making a resume? Found a pesky bug that just won't quit? Talk about it on the GitHub Issues section, or send me and email using the actions below.",
|
||||||
|
"buttons": {
|
||||||
|
"raiseIssue": "Raise an Issue",
|
||||||
|
"sendEmail": "Send an Email"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sourceCode": {
|
||||||
|
"heading": "Source Code",
|
||||||
|
"body": " Want to run the project from it's source? Are you a developer willing to contribute to the open source development of this project? Click the button below.",
|
||||||
|
"buttons": {
|
||||||
|
"githubRepo": "GitHub Repo"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"license": {
|
||||||
|
"heading": "License Information",
|
||||||
|
"body": "The project is governed under the MIT License, which you can read more about below. Basically, you are allowed to use the project anywhere provided you give credits to the original author.",
|
||||||
|
"buttons": {
|
||||||
|
"mitLicense": "MIT License"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"footer": {
|
||||||
|
"credit": "Reactive Resume is a project by <1>Amruth Pillai</1>.",
|
||||||
|
"thanks": "Thank you for using Reactive Resume!"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -2,10 +2,12 @@ import templates from './templates.json';
|
|||||||
import colors from './colors.json';
|
import colors from './colors.json';
|
||||||
import fonts from './fonts.json';
|
import fonts from './fonts.json';
|
||||||
import actions from './actions.json';
|
import actions from './actions.json';
|
||||||
|
import about from './about.json';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
templates,
|
templates,
|
||||||
colors,
|
colors,
|
||||||
fonts,
|
fonts,
|
||||||
actions,
|
actions,
|
||||||
|
about,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user