changed from hexo to custom react stuff #1
3 changed files with 50 additions and 28 deletions
|
@ -12,6 +12,7 @@ import Navbar from "./components/Navbar"
|
||||||
import Footer from "./components/Footer"
|
import Footer from "./components/Footer"
|
||||||
|
|
||||||
import PostList from "./pages/PostList"
|
import PostList from "./pages/PostList"
|
||||||
|
import Explore from "./pages/Explore"
|
||||||
import Page from "./pages/Page"
|
import Page from "./pages/Page"
|
||||||
import NotFound from "./pages/NotFound"
|
import NotFound from "./pages/NotFound"
|
||||||
import Portfolio from "./pages/Portfolio"
|
import Portfolio from "./pages/Portfolio"
|
||||||
|
@ -224,11 +225,8 @@ export default class App extends React.Component<AppProps, AppState> {
|
||||||
/>
|
/>
|
||||||
</Route>
|
</Route>
|
||||||
|
|
||||||
<Route exact path="/archives">
|
<Route exact path="/explore">
|
||||||
<PostList
|
<Explore />
|
||||||
key="archives"
|
|
||||||
title="Archives"
|
|
||||||
/>
|
|
||||||
</Route>
|
</Route>
|
||||||
|
|
||||||
<Route exact path="/portfolio">
|
<Route exact path="/portfolio">
|
||||||
|
|
|
@ -1,12 +1,5 @@
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
|
||||||
import {
|
import { faHome, faUserTie, faHiking } from "@fortawesome/free-solid-svg-icons"
|
||||||
faHome,
|
|
||||||
faArchive,
|
|
||||||
faUserTie,
|
|
||||||
faHashtag,
|
|
||||||
faListUl,
|
|
||||||
faHiking,
|
|
||||||
} from "@fortawesome/free-solid-svg-icons"
|
|
||||||
|
|
||||||
// item from sidebar data
|
// item from sidebar data
|
||||||
export type Item = {
|
export type Item = {
|
||||||
|
@ -29,21 +22,6 @@ const NavbarData: Array<Item> = [
|
||||||
path: "/explore",
|
path: "/explore",
|
||||||
icon: <FontAwesomeIcon icon={faHiking} />,
|
icon: <FontAwesomeIcon icon={faHiking} />,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: "Categories",
|
|
||||||
path: "/categories",
|
|
||||||
icon: <FontAwesomeIcon icon={faListUl} />,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Tags",
|
|
||||||
path: "/tags",
|
|
||||||
icon: <FontAwesomeIcon icon={faHashtag} />,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Archives",
|
|
||||||
path: "/archives",
|
|
||||||
icon: <FontAwesomeIcon icon={faArchive} />,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: "Portfolio",
|
title: "Portfolio",
|
||||||
path: "/portfolio",
|
path: "/portfolio",
|
||||||
|
|
46
source/src/pages/Explore.tsx
Normal file
46
source/src/pages/Explore.tsx
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
import React from "react"
|
||||||
|
import styled from "styled-components"
|
||||||
|
import { Helmet } from "react-helmet-async"
|
||||||
|
|
||||||
|
import theming from "../theming"
|
||||||
|
|
||||||
|
const StyledNotFound = styled.div`
|
||||||
|
margin: auto;
|
||||||
|
margin-top: 2rem;
|
||||||
|
text-align: center;
|
||||||
|
color: ${(props) =>
|
||||||
|
theming.theme(props.theme.currentTheme, {
|
||||||
|
light: "#111111",
|
||||||
|
dark: "#EEEEEE",
|
||||||
|
})};
|
||||||
|
`
|
||||||
|
|
||||||
|
export default class Explore extends React.Component {
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet>
|
||||||
|
<title>pomp | Explore</title>
|
||||||
|
|
||||||
|
<meta property="og:title" content="Explore" />
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
<meta
|
||||||
|
property="og:url"
|
||||||
|
content={`${process.env.PUBLIC_URL}`}
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
property="og:image"
|
||||||
|
content={`${process.env.PUBLIC_URL}/icon/icon.svg`}
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
property="og:description"
|
||||||
|
content="search and explore"
|
||||||
|
/>
|
||||||
|
</Helmet>
|
||||||
|
<StyledNotFound className="card main-content">
|
||||||
|
Explore!!
|
||||||
|
</StyledNotFound>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue