feat: links as hashtags
This commit is contained in:
parent
0393d2c3b2
commit
7864777533
11
src/App.tsx
11
src/App.tsx
@ -6,16 +6,27 @@ import Home from './pages/home';
|
|||||||
import About from './pages/about';
|
import About from './pages/about';
|
||||||
import Contact from './pages/contact';
|
import Contact from './pages/contact';
|
||||||
import Projects from './pages/projects';
|
import Projects from './pages/projects';
|
||||||
|
import { HashRouter } from 'react-router-dom';
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<ThemeProvider theme={defaultTheme}>
|
<ThemeProvider theme={defaultTheme}>
|
||||||
<GlobalStyle />
|
<GlobalStyle />
|
||||||
<Header />
|
<Header />
|
||||||
|
<HashRouter>
|
||||||
|
<section id="home">
|
||||||
<Home />
|
<Home />
|
||||||
|
</section>
|
||||||
|
<section id="about">
|
||||||
<About />
|
<About />
|
||||||
|
</section>
|
||||||
|
<section id="contact">
|
||||||
<Contact />
|
<Contact />
|
||||||
|
</section>
|
||||||
|
<section id="projects">
|
||||||
<Projects />
|
<Projects />
|
||||||
|
</section>
|
||||||
|
</HashRouter>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,17 @@
|
|||||||
|
import { HashRouter } from "react-router-dom";
|
||||||
import { HeaderContainer, NavLink, HomeLink } from "./styles";
|
import { HeaderContainer, NavLink, HomeLink } from "./styles";
|
||||||
|
|
||||||
export default function Header(){
|
export default function Header(){
|
||||||
return(
|
return(
|
||||||
|
<HashRouter>
|
||||||
<HeaderContainer>
|
<HeaderContainer>
|
||||||
<HomeLink href="/">Giv's Website</HomeLink>
|
<HomeLink href="/">Giv's Website</HomeLink>
|
||||||
<nav>
|
<nav>
|
||||||
<NavLink href="/about">About Me</NavLink>
|
<NavLink href="#about">About Me</NavLink>
|
||||||
<NavLink href="/contact">Contact</NavLink>
|
<NavLink href="#contact">Contact</NavLink>
|
||||||
<NavLink href="/projects">Projects</NavLink>
|
<NavLink href="#projects">Projects</NavLink>
|
||||||
</nav>
|
</nav>
|
||||||
</HeaderContainer>
|
</HeaderContainer>
|
||||||
|
</HashRouter>
|
||||||
)
|
)
|
||||||
}
|
}
|
@ -25,7 +25,7 @@ export default function About() {
|
|||||||
<span ref={typedElement} />
|
<span ref={typedElement} />
|
||||||
</h1>
|
</h1>
|
||||||
<Paragraph>
|
<Paragraph>
|
||||||
<span>Hi, I'm Giv, lemme tell you about me!, So, I'm currently a software engineering student, interning on a nice company located in Minas Gerais in Brazil, and that's it!</span>
|
<span>Hi, I'm Giv, a software engineering student, interning on a nice company located in Minas Gerais in Brazil!</span>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</MainContainer>
|
</MainContainer>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user