Dashboard
Settings
diff --git a/components/layout/Header.module.css b/components/layout/Header.module.css
index 03f6f93d..7b63d754 100644
--- a/components/layout/Header.module.css
+++ b/components/layout/Header.module.css
@@ -1,16 +1,16 @@
.header {
display: flex;
- height: 80px;
-}
-
-.header > div {
- flex: 1;
+ min-height: 100px;
}
.title {
font-size: var(--font-size-large);
}
+.logo {
+ margin-right: 12px;
+}
+
.nav {
list-style: none;
display: flex;
@@ -24,6 +24,13 @@
margin-left: 40px;
}
-.logo {
- margin-right: 12px;
+@media only screen and (max-width: 768px) {
+ .title {
+ text-align: center;
+ }
+
+ .nav {
+ display: flex;
+ justify-content: space-evenly;
+ }
}
diff --git a/components/layout/MenuLayout.js b/components/layout/MenuLayout.js
index 0fa8a377..f28cc8a3 100644
--- a/components/layout/MenuLayout.js
+++ b/components/layout/MenuLayout.js
@@ -14,16 +14,18 @@ export default function MenuLayout({
children,
}) {
return (
-
+
-
{children}
+
+ {children}
+
);
}
diff --git a/components/layout/MenuLayout.module.css b/components/layout/MenuLayout.module.css
index f4b10d1c..65052dd3 100644
--- a/components/layout/MenuLayout.module.css
+++ b/components/layout/MenuLayout.module.css
@@ -1,31 +1,27 @@
.container {
display: flex;
flex: 1;
+ position: relative;
}
.container .menu {
+ display: flex;
+ flex-direction: column;
+ padding: 30px 0;
border: 0;
}
-.menu {
- display: flex;
- flex-direction: column;
- padding-top: 30px;
-}
-
-.content {
+.container .content {
display: flex;
flex-direction: column;
border-left: 1px solid var(--gray300);
padding-left: 30px;
- flex: 1;
}
.option {
font-size: var(--font-size-normal);
padding: 8px 16px;
cursor: pointer;
- min-width: 160px;
margin-right: 30px;
border-radius: 4px;
}
@@ -37,3 +33,11 @@
.selected {
font-weight: 600;
}
+
+@media only screen and (max-width: 992px) {
+ .container .content {
+ border-top: 1px solid var(--gray300);
+ border-left: 0;
+ padding-left: 0;
+ }
+}
diff --git a/package.json b/package.json
index 337e7b03..819ad205 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "umami",
- "version": "0.2.0",
- "description": "Delicious web stats",
+ "version": "0.3.0",
+ "description": "A simple, fast, website analytics alternative to Google Analytics. ",
"author": "Mike Cao
",
"license": "MIT",
"homepage": "https://github.com/mikecao/umami",
@@ -10,10 +10,9 @@
"url": "https://github.com/mikecao/umami.git"
},
"scripts": {
- "dev": "next dev -p 8000",
+ "dev": "next dev",
"build": "next build",
"start": "next start",
- "build-cli": "rollup -c rollup.cli.config.js",
"build-tracker": "rollup -c rollup.tracker.config.js",
"build-mysql-schema": "dotenv prisma introspect -- --schema=./prisma/schema.mysql.prisma",
"build-mysql-client": "dotenv prisma generate -- --schema=./prisma/schema.mysql.prisma",