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!

Added mock panels

Blaumausc5929fa79bbd
diff --git a/src/index.scss b/src/index.scss
index d1f9734b9..264f49eca 100644
--- a/src/index.scss
+++ b/src/index.scss
@@ -23,4 +23,8 @@ code {
.btn-hover:hover {
opacity: 0.6;
+}
+
+.w31-5 {
+ width: 31.5% !important;
}
\ No newline at end of file
diff --git a/src/pages/Project/View/Panels.jsx b/src/pages/Project/View/Panels.jsx
new file mode 100644
index 000000000..2fdc3981e
--- /dev/null
+++ b/src/pages/Project/View/Panels.jsx
@@ -0,0 +1,19 @@
+import React from 'react'
+import Card from 'react-bootstrap/Card'
+
+const Locale = () => {
+ return (
+ <Card style={{ height: '300px' }} className="w31-5 m-3 shadow-sm">
+ <Card.Body>
+ <Card.Title>Locale</Card.Title>
+ <Card.Text>Test locale blahblah</Card.Text>
+ </Card.Body>
+ </Card>
+ )
+}
+
+const LocaleMemo = React.memo(Locale)
+
+export {
+ LocaleMemo as Locale,
+}
\ No newline at end of file
diff --git a/src/pages/Project/View/ViewProject.jsx b/src/pages/Project/View/ViewProject.jsx
index 3df99c280..a148d9874 100644
--- a/src/pages/Project/View/ViewProject.jsx
+++ b/src/pages/Project/View/ViewProject.jsx
@@ -1,10 +1,9 @@
import React, { useState } from 'react'
import PropTypes from 'prop-types'
-import { Link } from 'react-router-dom'
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts'
import ProjectSettings from 'pages/Project/Create'
-import routes from 'routes'
+import { Locale } from './Panels'
const data = [
{
@@ -52,7 +51,7 @@ const data = [
]
const ViewProject = (props) => {
- const { id, name } = props
+ const { name } = props
const [settings, setSettings] = useState(false)
if (settings) {
@@ -65,7 +64,7 @@ const ViewProject = (props) => {
}
return (
- <div className="container">
+ <div className="container-fluid">
<div className="d-flex justify-content-between">
<h2>{name}</h2>
<button
@@ -93,6 +92,15 @@ const ViewProject = (props) => {
<Line type="monotone" dataKey="uv" stroke="#82ca9d" />
</LineChart>
</ResponsiveContainer>
+ <div className="d-flex flex-wrap">
+ <Locale />
+ <Locale />
+ <Locale />
+ <Locale />
+ <Locale />
+ <Locale />
+ <Locale />
+ </div>
</div>
)
}