blob: 2f438e9596254aa9a450b3ad804bcde414c0eeb0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
import React from 'react';
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 (
<h3>a modern, <a href="https://github.com/jackyzha0/ctrl-v" target="_blank" rel="noopener noreferrer">open-source</a> pastebin with latex and markdown rendering support</h3>
);
}
function App() {
return (
<Router>
<div className="lt-content-column">
<SpacedTitle>
<nav>
<h1 className="mainLogo">
<span role="img" aria-label="clipboard">📋 </span>
<Link to="/">ctrl-v</Link>
</h1>
<Desc />
</nav>
</SpacedTitle>
<PasteArea/>
<Footer />
</div>
</Router>
);
}
export default App;
|