aboutsummaryrefslogtreecommitdiff
path: root/src/routes/ProjectRoutes.js
blob: a4d478410253f8cb75ff7d36d6263953e1977516 (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
import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Redirect, Switch } from 'react-router-dom';

// import Project from '../components/project/project-page/Project';
import VideosCategory from "../components/work/categories/Videos";
import DevelopmentCategory from "../components/work/categories/Development";

import projectData from '../components/projectData';

import ErrorHero from "../components/error/Hero";

export default class ProjectRoutes extends Component {
    render() {
        return(
            <Router>
                <Switch>
                    <Route exact path="/development">
                        <DevelopmentCategory projectData={projectData} />
                    </Route>
                    <Route exact path="/videos">
                        <VideosCategory projectData={projectData} />
                    </Route>
                    <Route exact path="/wisp" component={() => {
                        window.location.href = "https://discordapp.com/oauth2/authorize/?permissions=335670488&scope=bot&client_id=712088369206919269";
                        return null;
                    }} />
                    <Route exact path="/blog" component={() => {
                        window.location.href = "https://blog.fuwn.me";
                        return null;
                    }} />
                    <Route exact path="/*">
                        <ErrorHero />
                    </Route>
                </Switch>
            </Router>
        )
    }
}