-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from glovooker/ucenfotec-version
Added footer and sidebar
- Loading branch information
Showing
9 changed files
with
362 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { FaGithub, FaLinkedin } from 'react-icons/fa'; | ||
import { IconButton } from '..'; | ||
|
||
export const Footer = () => { | ||
const year = new Date().getFullYear(); // Dynamically get the current year | ||
|
||
return ( | ||
<footer className="bg-glovooker-chamoisee-100 text-white text-center py-4"> | ||
<div className="container mx-auto flex justify-between items-center px-4"> | ||
<span className='text-xs md:text-base'>© { year } Gabriel Lobo. All rights reserved.</span> | ||
<div className='flex'> | ||
<IconButton | ||
onClick={ () => window.open('https://github.com/glovooker') } | ||
bgColor="bg-[#171515]" | ||
icon={ <FaGithub className="h-5 w-5 md:h-8 md:w-8" /> } | ||
/> | ||
<IconButton | ||
onClick={ () => window.open('https://www.linkedin.com/in/glovooker/') } | ||
bgColor="bg-[#0077B5]" | ||
icon={ <FaLinkedin className="h-5 w-5 md:h-8 md:w-8" /> } | ||
/> | ||
</div> | ||
</div> | ||
</footer> | ||
); | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,41 @@ | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
import { Header, HeaderLink } from '../components/Header/Header'; | ||
import { Footer } from '../components/Footer/Footer'; | ||
|
||
type ChildrenComponent = () => JSX.Element; // Define the type for the Children component | ||
|
||
export const withBasicLayout = (Children: ChildrenComponent) => () => { | ||
const { t } = useTranslation('header'); | ||
const { t } = useTranslation('header'); | ||
|
||
const headerLinks: HeaderLink[] = [ | ||
{ | ||
label: `${ t('home') }`, | ||
link: '#hero', | ||
}, | ||
]; | ||
const headerLinks: HeaderLink[] = [ | ||
{ | ||
label: `${ t('home') }`, | ||
link: '#hero', | ||
}, | ||
{ | ||
label: `${ t('about') }`, | ||
link: '#about', | ||
}, | ||
{ | ||
label: `${ t('projects') }`, | ||
link: '#portfolio', | ||
}, | ||
]; | ||
|
||
return ( | ||
<div className='flex min-w-screen min-h-screen overflow-x-hidden'> | ||
<Header | ||
links={ headerLinks } | ||
hideGitHubLink={ true } | ||
alignRight={ true } | ||
isFat={ true } | ||
forceMenuOpenInMobile={ false } | ||
/> | ||
<main className='w-screen'> | ||
<Children /> | ||
</main> | ||
</div> | ||
); | ||
return ( | ||
<div className='flex flex-col min-w-screen min-h-screen overflow-x-hidden'> | ||
<Header | ||
links={ headerLinks } | ||
hideGitHubLink={ true } | ||
alignRight={ true } | ||
isFat={ true } | ||
forceMenuOpenInMobile={ false } | ||
/> | ||
<main className='w-screen'> | ||
<Children /> | ||
</main> | ||
<Footer /> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom/client'; | ||
import { BrowserRouter as Router, HashRouter } from 'react-router-dom'; | ||
import { BrowserRouter as Router } from 'react-router-dom'; | ||
import App from './App'; | ||
import './index.css'; | ||
import './i18n'; | ||
const root = ReactDOM.createRoot( | ||
document.getElementById('root') as HTMLElement | ||
document.getElementById('root') as HTMLElement | ||
); | ||
root.render( | ||
<React.StrictMode> | ||
<HashRouter> | ||
<App /> | ||
</HashRouter> | ||
</React.StrictMode> | ||
<React.StrictMode> | ||
<Router> | ||
<App /> | ||
</Router> | ||
</React.StrictMode> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters