Skip to content

Commit

Permalink
Add App component and update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkan1 committed Feb 13, 2024
1 parent 962d424 commit ced98b5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 30 deletions.
35 changes: 7 additions & 28 deletions src/App.js → src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react';
import { HashRouter as Router, Route } from 'react-router-dom';
import { Jumbotron as Jumbo, Container } from 'react-bootstrap';
import { CSSTransition } from 'react-transition-group';
import { TransitionGroup } from 'react-transition-group';
import { Navbar } from './components/Navbar';
import Footer from './components/Footer';
import Privacy from './pages/Privacy';
Expand All @@ -20,46 +20,25 @@ class App extends Component {
<Jumbo className="jumbo">
<Container style={{ minHeight: "50vh"}}>
<Route exact path="/resume" component={Resume} >
{({ match }) => (
<CSSTransition
in={match != null}
timeout={300}
classNames="page"
unmountOnExit
>
<TransitionGroup>
<div className="page">
<Resume />
</div>
</CSSTransition>
)}
</TransitionGroup>
</Route>
<Route exact path="/work" component={Work}>
{({ match }) => (
<CSSTransition
in={match != null}
timeout={300}
classNames="page"
unmountOnExit
>
<TransitionGroup>
<div className="page">
<Work />
</div>
</CSSTransition>
)}
</TransitionGroup>
</Route>
<Route exact path="/" component={About} >
{({ match }) => (
<CSSTransition
in={match != null}
timeout={300}
classNames="page"
unmountOnExit
>
<TransitionGroup>
<div className="page page-about">
<About />
</div>
</CSSTransition>
)}
</TransitionGroup>
</Route>
<Route path="/privacy" component={Privacy} />
</Container>
Expand Down
10 changes: 10 additions & 0 deletions src/css/resume.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,14 @@ a:hover {
justify-content: center!important;
align-items: center!important;
height: 100%!important;
}

.mail-div-p {
color: rgb(255, 255, 255)!important;
font-size: 1.5rem!important;
text-decoration: none!important;
}
.mail-div-a {
font-size: 1.5rem!important;
text-decoration: none!important;
}
4 changes: 4 additions & 0 deletions src/css/work.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.page-inner {
display: block!important;
max-width: 50rem!important;
height: 60vh!important;
overflow-y: scroll;
border: 2px solid silver;
padding: 10px;
}

.jumbo {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Resume.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export default class Resume extends Component {
render() {
return (
<div className="mail-div">
<p>send an email for my resume</p>
<a href="mailto:[email protected]&subject=Resume Request">Request Resume</a>
<p className="mail-div-p" >Send me an email for my resume by clicking button</p>
<a className="mail-div-a" href="mailto:[email protected]&subject=Resume Request">Request Resume</a>
</div>
)
}
Expand Down

0 comments on commit ced98b5

Please sign in to comment.