add pages and href
This commit is contained in:
parent
e0787412bb
commit
fae0487ead
@ -4,6 +4,10 @@ import './css/mine.css';
|
|||||||
import './css/mine_phone.css';
|
import './css/mine_phone.css';
|
||||||
|
|
||||||
import Home from './pages/home'
|
import Home from './pages/home'
|
||||||
|
import Contact from './pages/contact'
|
||||||
|
import Projects from './pages/projects'
|
||||||
|
import Resume from './pages/resume'
|
||||||
|
import Skills from './pages/skills'
|
||||||
|
|
||||||
import { ThemeProvider, createTheme } from '@mui/material/styles';
|
import { ThemeProvider, createTheme } from '@mui/material/styles';
|
||||||
import { BrowserRouter, Route, Router, Routes, useLocation } from 'react-router-dom';
|
import { BrowserRouter, Route, Router, Routes, useLocation } from 'react-router-dom';
|
||||||
@ -14,6 +18,7 @@ import { ColorModeContext } from './utils/color-toggle';
|
|||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
import "./utils/i18n";
|
import "./utils/i18n";
|
||||||
|
import Project from './pages/projects';
|
||||||
|
|
||||||
function App()
|
function App()
|
||||||
{
|
{
|
||||||
@ -49,7 +54,10 @@ function App()
|
|||||||
<Header/>
|
<Header/>
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="/" element={<Home/>}/>
|
<Route path="/" element={<Home/>}/>
|
||||||
<Route path="/test" element={<></>}/>
|
<Route path="/contact" element={<Contact/>}/>
|
||||||
|
<Route path="/projects" element={<Project/>}/>
|
||||||
|
<Route path="/resume" element={<Resume/>}/>
|
||||||
|
<Route path="/skills" element={<Skills/>}/>
|
||||||
</Routes>
|
</Routes>
|
||||||
{/* </Router> */}
|
{/* </Router> */}
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
|
|||||||
@ -32,16 +32,16 @@ function Header()
|
|||||||
<img src={logo} alt="Logo" />
|
<img src={logo} alt="Logo" />
|
||||||
</a>
|
</a>
|
||||||
<div className="pages">
|
<div className="pages">
|
||||||
{t("page1")}
|
<a href="/contact">{t("page1")}</a>
|
||||||
</div>
|
</div>
|
||||||
<div className="pages">
|
<div className="pages">
|
||||||
{t("page2")}
|
<a href="/projects">{t("page2")}</a>
|
||||||
</div>
|
</div>
|
||||||
<div className="pages">
|
<div className="pages">
|
||||||
{t("page3")}
|
<a href="/resume">{t("page3")}</a>
|
||||||
</div>
|
</div>
|
||||||
<div className="pages">
|
<div className="pages">
|
||||||
{t("page4")}
|
<a href="/skills">{t("page4")}</a>
|
||||||
</div>
|
</div>
|
||||||
<div className="language">
|
<div className="language">
|
||||||
{/* <MenuSimple/> */}
|
{/* <MenuSimple/> */}
|
||||||
|
|||||||
@ -7,6 +7,11 @@
|
|||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a, a:visited, a:hover, a:active {
|
||||||
|
text-decoration: none;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
@ -146,6 +151,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.project_group {
|
.project_group {
|
||||||
|
margin-top: 2vh;
|
||||||
font-size: 1vw;
|
font-size: 1vw;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|||||||
18
my-app/src/pages/contact.tsx
Normal file
18
my-app/src/pages/contact.tsx
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
function Contact()
|
||||||
|
{
|
||||||
|
return (
|
||||||
|
<div className="contact">
|
||||||
|
<div>
|
||||||
|
Github
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
Telephone
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
Email
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Contact;
|
||||||
@ -28,23 +28,23 @@ function Home()
|
|||||||
<div className="project">
|
<div className="project">
|
||||||
<div className='project_txt'>{t("project")}</div>
|
<div className='project_txt'>{t("project")}</div>
|
||||||
<div className = "project_group">
|
<div className = "project_group">
|
||||||
<p className="project_list">- Ft_Transcendence</p>
|
<a href="/projects" className="project_list">- Ft_Transcendence</a>
|
||||||
<FaArrowRightLong className="arrow"/>
|
<FaArrowRightLong className="arrow"/>
|
||||||
</div>
|
</div>
|
||||||
<div className = "project_group">
|
<div className = "project_group">
|
||||||
<p className="project_list">- Cloud-1</p>
|
<a href="/projects" className="project_list">- Cloud-1</a>
|
||||||
<FaArrowRightLong className="arrow"/>
|
<FaArrowRightLong className="arrow"/>
|
||||||
</div>
|
</div>
|
||||||
<div className = "project_group">
|
<div className = "project_group">
|
||||||
<p className="project_list">- Minishell</p>
|
<a href="/projects" className="project_list">- Minishell</a>
|
||||||
<FaArrowRightLong className="arrow"/>
|
<FaArrowRightLong className="arrow"/>
|
||||||
</div>
|
</div>
|
||||||
<div className = "project_group">
|
<div className = "project_group">
|
||||||
<p className="project_list">- Cube3d</p>
|
<a href="/projects" className="project_list">- Cube3d</a>
|
||||||
<FaArrowRightLong className="arrow"/>
|
<FaArrowRightLong className="arrow"/>
|
||||||
</div>
|
</div>
|
||||||
<div className = "project_group">
|
<div className = "project_group">
|
||||||
<p className="project_list">- Homemade NAS</p>
|
<a href="/projects" className="project_list">- Homemade NAS</a>
|
||||||
<FaArrowRightLong className="arrow"/>
|
<FaArrowRightLong className="arrow"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
10
my-app/src/pages/projects.tsx
Normal file
10
my-app/src/pages/projects.tsx
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
function Project()
|
||||||
|
{
|
||||||
|
return (
|
||||||
|
<div className="projects">
|
||||||
|
project list ? first one ?
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Project;
|
||||||
10
my-app/src/pages/resume.tsx
Normal file
10
my-app/src/pages/resume.tsx
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
function Resume()
|
||||||
|
{
|
||||||
|
return (
|
||||||
|
<div className="resume">
|
||||||
|
resume here , pdf ?
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Resume;
|
||||||
10
my-app/src/pages/skills.tsx
Normal file
10
my-app/src/pages/skills.tsx
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
function Skills()
|
||||||
|
{
|
||||||
|
return (
|
||||||
|
<div className="skills">
|
||||||
|
skills here
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Skills;
|
||||||
Loading…
Reference in New Issue
Block a user