From 1f750b3ef0e4e3c0153006551c4449eabb10d1e5 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Mon, 11 May 2020 20:47:11 -0700 Subject: add basic link + route --- frontend/src/components/App.js | 45 +++++++++++++++++++++++++++++++++------ frontend/src/components/Header.js | 20 ----------------- 2 files changed, 39 insertions(+), 26 deletions(-) delete mode 100644 frontend/src/components/Header.js (limited to 'frontend/src/components') diff --git a/frontend/src/components/App.js b/frontend/src/components/App.js index 17240f5..2f438e9 100644 --- a/frontend/src/components/App.js +++ b/frontend/src/components/App.js @@ -1,15 +1,48 @@ import React from 'react'; -import Header from './Header' import PasteArea from './PasteArea' import Footer from './Footer' +import styled from 'styled-components' +import { + BrowserRouter as Router, + Switch, + Route, + Link +} from "react-router-dom"; + +const SpacedTitle = styled.div` + margin-top: 10vh +` + +const Inline = styled.div` + display: inline-block +` + +const Desc = () => { + return ( +

a modern, open-source pastebin with latex and markdown rendering support

+ ); +} function App() { return ( -
-
- -
-
+ +
+ + + + + + +
+
+
); } diff --git a/frontend/src/components/Header.js b/frontend/src/components/Header.js deleted file mode 100644 index a0c5ee8..0000000 --- a/frontend/src/components/Header.js +++ /dev/null @@ -1,20 +0,0 @@ -import React from 'react'; -import styled from 'styled-components' - -const SpacedTitle = styled.div` - margin-top: 10vh -` - -const Header = () => { - return ( - -

- 📋  - ctrl-v -

-

a modern, open-source pastebin with latex and markdown rendering support

-
- ); -} - -export default Header; \ No newline at end of file -- cgit v1.2.3