2021-06-30 19:19:59 +00:00
|
|
|
import React, {useState} from 'react';
|
2021-06-27 23:37:40 +00:00
|
|
|
import './App.css';
|
2021-06-30 19:19:59 +00:00
|
|
|
import Footer from "./components/footer/Footer";
|
|
|
|
import Hero from "./components/hero/Hero";
|
|
|
|
import AboutMe from "./components/about-me/AboutMe";
|
|
|
|
import Jobs from "./components/jobs/Jobs";
|
|
|
|
import Projects from "./components/projects/Projects";
|
|
|
|
import Hobbies from "./components/hobbies/Hobbies";
|
|
|
|
import Contact from "./components/contact/Contact";
|
|
|
|
import Terminal from "./components/terminal/Terminal";
|
2021-06-27 23:37:40 +00:00
|
|
|
|
|
|
|
function App() {
|
2021-06-30 20:21:57 +00:00
|
|
|
|
|
|
|
const showTerm: boolean = new URLSearchParams(window.location.search).get("showTerm") === 'true';
|
|
|
|
const [isTerminalVisible, setIsTerminalVisible] = useState(showTerm);
|
2021-06-30 19:19:59 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="App">
|
2021-06-30 20:21:57 +00:00
|
|
|
{showTerm && <Terminal isTerminalVisible={isTerminalVisible} setIsTerminalVisible={setIsTerminalVisible}/>}
|
2021-06-30 19:19:59 +00:00
|
|
|
{!isTerminalVisible &&
|
|
|
|
<div>
|
|
|
|
<Hero/>
|
|
|
|
<AboutMe/>
|
|
|
|
<Jobs/>
|
|
|
|
<Projects/>
|
|
|
|
<Hobbies/>
|
|
|
|
<Contact/>
|
|
|
|
<Footer/>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
);
|
2021-06-27 23:37:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|