Skip to content

Commit

Permalink
Add footer
Browse files Browse the repository at this point in the history
  • Loading branch information
congmul committed Jul 10, 2024
1 parent 9c5c430 commit ee96066
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Editor from './components/Editor/Editor';
import ReactSplitPane from './components/SplitPane/SplitPane';
import SwaggerUI from 'swagger-ui-react';
import petStoreAPISpec from './assets/petstore.apispec.json';
import Footer from './components/Footer/Footer';


function App() {
Expand Down Expand Up @@ -41,6 +42,7 @@ function App() {
</ReactSplitPane>
</div>
</div>
<Footer />
</>
)
}
Expand Down
12 changes: 12 additions & 0 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const Footer:React.FC = ({}) => {
return(
<footer>
<div className="footer-wrapper">
<div>© 2024 Jehyun Jung.</div>
<div className="ms-3">You can reach me on <a href="https://www.linkedin.com/in/jehyun-jung-bb247813b/" target="_blank">LinkedIn</a> and <a href="https://github.com/congmul" target="_blank">GitHub</a>.</div>
</div>
</footer>
)
}

export default Footer;
11 changes: 11 additions & 0 deletions src/sass/components/_footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
footer{
height: 100%;
padding: 15px;
border-top: 1px solid #d2d2d2;
text-align: center;
.footer-wrapper{
display: flex;
justify-content: center;
align-items: center;
}
}
2 changes: 2 additions & 0 deletions src/sass/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
@import "./components/readfile";
@import "./components/splitPane";
@import "./components/editor/editor";
@import "./components/footer";

.app-wrapper{
display: flex;
height: calc(100vh - 55px);
.editor-page-wrapper{
position:relative;
width: calc(100vw - 350px);
Expand Down

0 comments on commit ee96066

Please sign in to comment.