Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Created basic mock Dashboard

Blaumaus1ce4d35be64b
diff --git a/src/pages/Dashboard/Dashboard.jsx b/src/pages/Dashboard/Dashboard.jsx
index 3e5f7df4c..21cda46b1 100644
--- a/src/pages/Dashboard/Dashboard.jsx
+++ b/src/pages/Dashboard/Dashboard.jsx
@@ -1,8 +1,37 @@
import React from 'react'
+import { Link } from 'react-router-dom'
+
+import routes from 'routes'
export default () => {
+ const projects = [{
+ id: 'nfvioqevisvn',
+ name: 'Project #1',
+ }, {
+ id: 'qwifjptirwnd',
+ name: 'Project #2',
+ }, {
+ id: 'zxvnpearinve',
+ name: 'Facebook'
+ }]
return (
- <h1>Dashboard page</h1>
+ <div className="container">
+ <div className="d-flex justify-content-between">
+ <h2>Dashboard</h2>
+ <button className="btn btn-outline-primary">
+ Create project
+ </button>
+ </div>
+ {projects.map(({ name, id }) => (
+ <div key={id} className="card mt-3">
+ <Link to={routes.project.replace(':id', id)} className="text-decoration-none text-reset">
+ <div class="card-body list-group-item-action text-reset">
+ {name}
+ </div>
+ </Link>
+ </div>
+ ))}
+ </div>
)
}
\ No newline at end of file