mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 04:17:13 +00:00
Move gitprofile.config.js to root
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import axios from 'axios';
|
||||
import { Fragment, useCallback, useEffect, useState } from 'react';
|
||||
import moment from 'moment';
|
||||
import config from './gitprofile.config';
|
||||
import HeadTagEditor from './components/head-tag-editor';
|
||||
import ErrorPage from './components/error-page';
|
||||
import ThemeChanger from './components/theme-changer';
|
||||
@@ -13,6 +12,7 @@ import Education from './components/education';
|
||||
import Project from './components/project';
|
||||
import Blog from './components/blog';
|
||||
import { getInitialTheme, setupHotjar } from './helpers/utils';
|
||||
import config from '../gitprofile.config';
|
||||
|
||||
function App() {
|
||||
const [theme, setTheme] = useState(getInitialTheme());
|
||||
@@ -127,7 +127,7 @@ function App() {
|
||||
error === 404 ? (
|
||||
<p>
|
||||
Please provide correct github username in{' '}
|
||||
<code>src/gitprofile.config.js</code>
|
||||
<code>gitprofile.config.js</code>
|
||||
</p>
|
||||
) : error === 429 ? (
|
||||
<p>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { getDevtoArticle, getMediumArticle } from 'article-api';
|
||||
import moment from 'moment';
|
||||
import { Fragment, useEffect, useState } from 'react';
|
||||
import config from '../../gitprofile.config';
|
||||
import { ga, skeleton } from '../../helpers/utils';
|
||||
import LazyImage from '../lazy-image';
|
||||
import PropTypes from 'prop-types';
|
||||
import config from '../../../gitprofile.config';
|
||||
|
||||
const displaySection = () => {
|
||||
if (
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
} from 'react-icons/fa';
|
||||
import PropTypes from 'prop-types';
|
||||
import { skeleton } from '../../helpers/utils';
|
||||
import config from '../../gitprofile.config';
|
||||
import config from '../../../gitprofile.config';
|
||||
|
||||
const ListItem = ({ icon, title, value, link, skeleton = false }) => {
|
||||
return (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { skeleton } from '../../helpers/utils';
|
||||
import config from '../../gitprofile.config';
|
||||
import { Fragment } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import config from '../../../gitprofile.config';
|
||||
|
||||
const ListItem = ({ time, degree, institution }) => (
|
||||
<li className="mb-5 ml-4">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { skeleton } from '../../helpers/utils';
|
||||
import config from '../../gitprofile.config';
|
||||
import { Fragment } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import config from '../../../gitprofile.config';
|
||||
|
||||
const ListItem = ({ time, position, company }) => (
|
||||
<li className="mb-5 ml-4">
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Fragment } from 'react';
|
||||
import { Helmet } from 'react-helmet-async';
|
||||
import PropTypes from 'prop-types';
|
||||
import config from '../../gitprofile.config';
|
||||
import { isThemeDarkish } from '../../helpers/utils';
|
||||
import config from '../../../gitprofile.config';
|
||||
|
||||
const HeadTagEditor = ({ profile, theme }) => {
|
||||
return (
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Fragment } from 'react';
|
||||
import { AiOutlineStar, AiOutlineFork } from 'react-icons/ai';
|
||||
import PropTypes from 'prop-types';
|
||||
import config from '../../gitprofile.config';
|
||||
import { ga, languageColor, skeleton } from '../../helpers/utils';
|
||||
import config from '../../../gitprofile.config';
|
||||
|
||||
const Project = ({ repo, loading }) => {
|
||||
const renderSkeleton = () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import config from '../../gitprofile.config';
|
||||
import { skeleton } from '../../helpers/utils';
|
||||
import PropTypes from 'prop-types';
|
||||
import config from '../../../gitprofile.config';
|
||||
|
||||
const Skill = ({ loading }) => {
|
||||
const renderSkeleton = () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { AiOutlineControl } from 'react-icons/ai';
|
||||
import { skeleton } from '../../helpers/utils';
|
||||
import config from '../../gitprofile.config';
|
||||
import PropTypes from 'prop-types';
|
||||
import config from '../../../gitprofile.config';
|
||||
|
||||
const ThemeChanger = ({ theme, setTheme, loading }) => {
|
||||
const changeTheme = (e, selectedTheme) => {
|
||||
|
||||
@@ -1,131 +0,0 @@
|
||||
// gitprofile.config.js
|
||||
|
||||
const config = {
|
||||
github: {
|
||||
username: 'arifszn', // Your GitHub org/user name. (Required)
|
||||
sortBy: 'stars', // stars | updated
|
||||
limit: 10, // How many projects to display.
|
||||
exclude: {
|
||||
forks: false, // Forked projects will not be displayed if set to true.
|
||||
projects: ['laravel-ecommerce'], // These projects will not be displayed. example: ['my-project1', 'my-project2']
|
||||
},
|
||||
},
|
||||
social: {
|
||||
linkedin: 'ariful-alam',
|
||||
twitter: 'arif_szn',
|
||||
facebook: '',
|
||||
dribbble: '',
|
||||
behance: '',
|
||||
medium: '',
|
||||
devto: 'arifszn',
|
||||
website: 'https://arifszn.github.io',
|
||||
phone: '',
|
||||
email: 'arifulalamszn@gmail.com',
|
||||
},
|
||||
skills: [
|
||||
'PHP',
|
||||
'Laravel',
|
||||
'JavaScript',
|
||||
'React.js',
|
||||
'Node.js',
|
||||
'MySQL',
|
||||
'Git',
|
||||
'Docker',
|
||||
'CSS',
|
||||
'Antd',
|
||||
'Tailwind',
|
||||
'Bootstrap',
|
||||
],
|
||||
experiences: [
|
||||
{
|
||||
company: 'Monstarlab Bangladesh',
|
||||
position: 'Backend Engineer II',
|
||||
from: 'September 2021',
|
||||
to: 'Present',
|
||||
},
|
||||
{
|
||||
company: 'Orangetoolz',
|
||||
position: 'Jr. Full Stack Engineer',
|
||||
from: 'July 2019',
|
||||
to: 'August 2021',
|
||||
},
|
||||
{
|
||||
company: 'Techvillage',
|
||||
position: 'Jr. Software Engineer',
|
||||
from: 'January 2019',
|
||||
to: ' June 2019',
|
||||
},
|
||||
],
|
||||
education: [
|
||||
{
|
||||
institution: 'American International University-Bangladesh',
|
||||
degree: 'Bachelor of Science',
|
||||
from: '2015',
|
||||
to: '2019',
|
||||
},
|
||||
{
|
||||
institution: 'Cantonment College, Jessore',
|
||||
degree: 'Higher Secondary Certificate (HSC)',
|
||||
from: '2012',
|
||||
to: '2014',
|
||||
},
|
||||
{
|
||||
institution: 'Chowgacha Shahadat Pilot High School',
|
||||
degree: 'Secondary School Certificate (SSC)',
|
||||
from: '2007',
|
||||
to: '2012',
|
||||
},
|
||||
],
|
||||
blog: {
|
||||
// Display blog posts from your medium or dev.to account. (Optional)
|
||||
source: 'dev.to', // medium | dev.to
|
||||
username: 'arifszn',
|
||||
limit: 3, // How many posts to display. Max is 10.
|
||||
},
|
||||
googleAnalytics: {
|
||||
// GA3 tracking id/GA4 tag id UA-XXXXXXXXX-X | G-XXXXXXXXXX
|
||||
id: 'G-WLLB5E14M6', // Please remove this and use your own tag id or keep it empty
|
||||
},
|
||||
hotjar: {
|
||||
id: '2617601', // Please remove this and use your own id or keep it empty
|
||||
snippetVersion: 6,
|
||||
},
|
||||
themeConfig: {
|
||||
default: 'corporate',
|
||||
|
||||
// Hides the switch in the navbar
|
||||
// Useful if you want to support a single color mode
|
||||
disableSwitch: false,
|
||||
|
||||
// Should we use the prefers-color-scheme media-query,
|
||||
// using user system preferences, instead of the hardcoded default
|
||||
respectPrefersColorScheme: false,
|
||||
|
||||
// Available themes. To remove any theme, exclude from here.
|
||||
themes: [
|
||||
'light',
|
||||
'dark',
|
||||
'cupcake',
|
||||
'bumblebee',
|
||||
'emerald',
|
||||
'corporate',
|
||||
'synthwave',
|
||||
'retro',
|
||||
'cyberpunk',
|
||||
'valentine',
|
||||
'halloween',
|
||||
'garden',
|
||||
'forest',
|
||||
'aqua',
|
||||
'lofi',
|
||||
'pastel',
|
||||
'fantasy',
|
||||
'wireframe',
|
||||
'black',
|
||||
'luxury',
|
||||
'dracula',
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
@@ -1,6 +1,6 @@
|
||||
import config from '../gitprofile.config';
|
||||
import colors from '../data/colors.json';
|
||||
import { hotjar } from 'react-hotjar';
|
||||
import config from '../../gitprofile.config';
|
||||
|
||||
export const getInitialTheme = () => {
|
||||
if (config.themeConfig.disableSwitch) {
|
||||
|
||||
Reference in New Issue
Block a user