moving combining pages to /explore
This commit is contained in:
parent
1c517aa5f0
commit
3d6d96b863
3 changed files with 50 additions and 28 deletions
|
@ -12,6 +12,7 @@ import Navbar from "./components/Navbar"
|
|||
import Footer from "./components/Footer"
|
||||
|
||||
import PostList from "./pages/PostList"
|
||||
import Explore from "./pages/Explore"
|
||||
import Page from "./pages/Page"
|
||||
import NotFound from "./pages/NotFound"
|
||||
import Portfolio from "./pages/Portfolio"
|
||||
|
@ -224,11 +225,8 @@ export default class App extends React.Component<AppProps, AppState> {
|
|||
/>
|
||||
</Route>
|
||||
|
||||
<Route exact path="/archives">
|
||||
<PostList
|
||||
key="archives"
|
||||
title="Archives"
|
||||
/>
|
||||
<Route exact path="/explore">
|
||||
<Explore />
|
||||
</Route>
|
||||
|
||||
<Route exact path="/portfolio">
|
||||
|
|
|
@ -1,12 +1,5 @@
|
|||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
|
||||
import {
|
||||
faHome,
|
||||
faArchive,
|
||||
faUserTie,
|
||||
faHashtag,
|
||||
faListUl,
|
||||
faHiking,
|
||||
} from "@fortawesome/free-solid-svg-icons"
|
||||
import { faHome, faUserTie, faHiking } from "@fortawesome/free-solid-svg-icons"
|
||||
|
||||
// item from sidebar data
|
||||
export type Item = {
|
||||
|
@ -29,21 +22,6 @@ const NavbarData: Array<Item> = [
|
|||
path: "/explore",
|
||||
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",
|
||||
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