- designing the dashboard

- resume preview
- create resume modal
This commit is contained in:
Amruth Pillai
2020-07-04 10:26:29 +05:30
parent dd5e594dc9
commit e1f1d84201
27 changed files with 556 additions and 26 deletions

View File

@ -1,7 +1,7 @@
import { navigate } from "gatsby";
import { useEffect } from "react";
const NotFoundPage = () => {
const NotFound = () => {
useEffect(() => {
navigate("/");
}, []);
@ -9,4 +9,4 @@ const NotFoundPage = () => {
return null;
};
export default NotFoundPage;
export default NotFound;

17
src/pages/app.js Normal file
View File

@ -0,0 +1,17 @@
import React from "react";
import { Router, Redirect } from "@reach/router";
import Wrapper from "../components/shared/Wrapper";
import Dashboard from "./app/dashboard";
import PrivateRoute from "../components/router/PrivateRoute";
import NotFound from "./404";
const App = () => (
<Wrapper>
<Router>
<Redirect noThrow from="/app" to="/app/dashboard" exact />
<PrivateRoute path="/app/dashboard" component={Dashboard} />
<NotFound default />
</Router>
</Wrapper>
);
export default App;

View File

@ -0,0 +1,25 @@
import React from "react";
import Wrapper from "../../components/shared/Wrapper";
import CreateResume from "../../components/dashboard/CreateResume";
import ResumePreview from "../../components/dashboard/ResumePreview";
import TopNavbar from "../../components/dashboard/TopNavbar";
const Dashboard = () => {
return (
<Wrapper>
<TopNavbar />
<div className="container mt-12">
<div className="grid grid-cols-6 gap-8">
<CreateResume />
<ResumePreview
title="Full Stack Developer"
subtitle="Last updated 6 days ago"
/>
</div>
</div>
</Wrapper>
);
};
export default Dashboard;