moved portfolio page from react to markdown

This commit is contained in:
Kim, Jimin 2021-07-30 15:08:49 +09:00
parent 6b1027909c
commit a9cbd8d4f1
2 changed files with 1 additions and 50 deletions

View file

@ -15,7 +15,6 @@ import PostList from "./pages/PostList"
import Search from "./pages/Search"
import Page from "./pages/Page"
import NotFound from "./pages/NotFound"
import Portfolio from "./pages/Portfolio"
// Theme that will be used throughout the website
const GlobalStyle = createGlobalStyle<{ theme: { currentTheme: string } }>`
@ -220,21 +219,13 @@ export default class App extends React.Component<AppProps, AppState> {
) : (
<Switch>
<Route exact path="/">
<PostList
key="home"
howMany={4}
title="Home"
/>
<PostList howMany={4} title="Home" />
</Route>
<Route exact path="/search">
<Search />
</Route>
<Route exact path="/portfolio">
<Portfolio />
</Route>
<Route exact path="/404">
<NotFound />
</Route>

View file

@ -1,40 +0,0 @@
import React from "react"
import styled from "styled-components"
import { Helmet } from "react-helmet-async"
const StyledPortfolio = styled.div``
const StyledH1 = styled.h1`
font-size: 3rem;
`
export default class Portfolio extends React.Component {
render() {
return (
<>
<Helmet>
<title>pomp | Portfolio</title>
<meta
property="og:title"
content="developomp's Portfolio"
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="http://developomp.com" />
<meta
property="og:image"
content="http://developomp.com/icon/icon.svg"
/>
<meta
property="og:description"
content="developomp's Portfolio"
/>
</Helmet>
<StyledPortfolio className="card main-content">
<StyledH1>Portfolio</StyledH1>
My projects
</StyledPortfolio>
</>
)
}
}