mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 00:32:35 +10:00
adding about tab
This commit is contained in:
@ -6,15 +6,16 @@ import TemplatesTab from './tabs/Templates';
|
|||||||
import ColorsTab from './tabs/Colors';
|
import ColorsTab from './tabs/Colors';
|
||||||
import FontsTab from './tabs/Fonts';
|
import FontsTab from './tabs/Fonts';
|
||||||
import ActionsTab from './tabs/Actions';
|
import ActionsTab from './tabs/Actions';
|
||||||
|
import AboutTab from './tabs/About';
|
||||||
|
|
||||||
const tabs = ['Templates', 'Colors', 'Fonts', 'Actions'];
|
const tabs = ['Templates', 'Colors', 'Fonts', 'Actions', 'About'];
|
||||||
|
|
||||||
const RightSidebar = () => {
|
const RightSidebar = () => {
|
||||||
const context = useContext(AppContext);
|
const context = useContext(AppContext);
|
||||||
const { state, dispatch } = context;
|
const { state, dispatch } = context;
|
||||||
const { data, theme } = state;
|
const { data, theme } = state;
|
||||||
|
|
||||||
const [currentTab, setCurrentTab] = useState('Templates');
|
const [currentTab, setCurrentTab] = useState('About');
|
||||||
const onChange = (key, value) => {
|
const onChange = (key, value) => {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: 'on_input',
|
type: 'on_input',
|
||||||
@ -37,6 +38,8 @@ const RightSidebar = () => {
|
|||||||
return <FontsTab theme={theme} onChange={onChange} />;
|
return <FontsTab theme={theme} onChange={onChange} />;
|
||||||
case 'Actions':
|
case 'Actions':
|
||||||
return <ActionsTab data={data} theme={theme} dispatch={dispatch} />;
|
return <ActionsTab data={data} theme={theme} dispatch={dispatch} />;
|
||||||
|
case 'About':
|
||||||
|
return <AboutTab />;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
110
src/components/RightSidebar/tabs/About.js
Normal file
110
src/components/RightSidebar/tabs/About.js
Normal file
@ -0,0 +1,110 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
const AboutTab = () => {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<div className="shadow text-center p-5">
|
||||||
|
<h6 className="font-bold text-sm mb-2">Bug? Feature Request?</h6>
|
||||||
|
|
||||||
|
<div className="text-sm">
|
||||||
|
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">
|
||||||
|
<a
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
href="https://github.com/AmruthPillai/Reactive-Resume/issues/new"
|
||||||
|
className="flex justify-center mt-4 bg-red-600 hover:bg-red-700 text-white text-sm font-medium py-2 px-5 rounded"
|
||||||
|
>
|
||||||
|
<div className="flex justify-center items-center">
|
||||||
|
<i className="material-icons mr-2 font-bold text-base">bug_report</i>
|
||||||
|
<span className="text-sm">Raise an Issue</span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
href="mailto:im.amruth@gmail.com?subject=Feature Request/Reporting a Bug in Reactive Resume: "
|
||||||
|
className="flex justify-center mt-4 bg-blue-600 hover:bg-blue-700 text-white text-sm font-medium py-2 px-5 rounded"
|
||||||
|
>
|
||||||
|
<div className="flex justify-center items-center">
|
||||||
|
<i className="material-icons mr-2 font-bold text-base">email</i>
|
||||||
|
<span className="text-sm">Send an Email</span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr className="my-5" />
|
||||||
|
|
||||||
|
<div className="shadow text-center p-5">
|
||||||
|
<h6 className="font-bold text-sm mb-2">Source Code</h6>
|
||||||
|
|
||||||
|
<div className="text-sm">
|
||||||
|
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
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
href="https://github.com/AmruthPillai/Reactive-Resume"
|
||||||
|
className="flex justify-center mt-4 bg-green-600 hover:bg-green-700 text-white text-sm font-medium py-2 px-5 rounded"
|
||||||
|
>
|
||||||
|
<div className="flex justify-center items-center">
|
||||||
|
<i className="material-icons mr-2 font-bold text-base">code</i>
|
||||||
|
<span className="text-sm">GitHub Repo</span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr className="my-5" />
|
||||||
|
|
||||||
|
<div className="shadow text-center p-5">
|
||||||
|
<h6 className="font-bold text-sm mb-2">License Information</h6>
|
||||||
|
|
||||||
|
<div className="text-sm">
|
||||||
|
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
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
href="https://github.com/AmruthPillai/Reactive-Resume/blob/master/LICENSE"
|
||||||
|
className="flex justify-center mt-4 bg-gray-600 hover:bg-gray-700 text-white text-sm font-medium py-2 px-5 rounded"
|
||||||
|
>
|
||||||
|
<div className="flex justify-center items-center">
|
||||||
|
<i className="material-icons mr-2 font-bold text-base">policy</i>
|
||||||
|
<span className="text-sm">MIT License</span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mt-5">
|
||||||
|
<p className="text-xs font-gray-600 text-center">
|
||||||
|
Reactive Resume is a project by{' '}
|
||||||
|
<a
|
||||||
|
className="hover:underline"
|
||||||
|
href="https://www.amruthpillai.com/"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
<strong>Amruth Pillai</strong>
|
||||||
|
</a>{' '}
|
||||||
|
in hopes of allowing anyone to make beautiful resumes and get equal job opportunities.
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
Thank you for using Reactive Resume!
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default AboutTab;
|
||||||
@ -146,24 +146,6 @@ const ActionsTab = ({ data, theme, dispatch }) => {
|
|||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr className="my-6" />
|
|
||||||
|
|
||||||
<p className="text-xs font-gray-600 text-center">
|
|
||||||
Reactive Resume is a project by{' '}
|
|
||||||
<a
|
|
||||||
className="hover:underline"
|
|
||||||
href="https://www.amruthpillai.com/"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
<strong>Amruth Pillai</strong>
|
|
||||||
</a>{' '}
|
|
||||||
in hopes of allowing anyone to make beautiful resumes and get equal job opportunities.
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
Thank you for using Reactive Resume!
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user