diff --git a/components/Navbar/index.jsx b/components/Navbar/index.jsx
index 93b20c1..8aa570e 100644
--- a/components/Navbar/index.jsx
+++ b/components/Navbar/index.jsx
@@ -30,9 +30,9 @@ const Navigation = () => {
-
+
- Markdown Preview
+ Rundev
diff --git a/pages/_document.js b/pages/_document.js
index 9771bac..cd87e40 100644
--- a/pages/_document.js
+++ b/pages/_document.js
@@ -10,10 +10,10 @@ class MyDocument extends Document {
-
+
-
-
+
+
diff --git a/pages/app.js b/pages/app.js
index 0481c18..8dc0ac9 100644
--- a/pages/app.js
+++ b/pages/app.js
@@ -1,22 +1,36 @@
import React, { Fragment, useCallback, useEffect, useState } from 'react'
-import Split from 'react-split-grid'
import Head from 'next/head'
-import Editor from '../components/Editor/Editor'
-import NavEditor from '../components/Navbar/NavEditor/NavEditor'
-import Preview from '../components/Preview/Preview'
-import style from '../styles/app.module.css'
+import Split from 'react-split-grid'
+
+import Editor from '../components/Playground/Editor/Editor'
+import Footer from '../components/Playground/footer/Footer'
+import Preview from '../components/Playground/Preview/Preview'
+import NavEditor from '../components/Playground/NavEditor/NavEditor'
+import Explorer from '../components/Playground/explorer/Explorer'
import useMatchQuery from '../hooks/useMatchQuery'
import useClient from '../hooks/useClient'
+import style from '../styles/app.module.css'
const App = () => {
const [doc, setDoc] = useState(INITIAL_STATE)
const { matched } = useMatchQuery()
const { mounted } = useClient()
+ const [activeExplorer, setActiveExplorer] = useState(false)
const handleChange = useCallback((/** @type string */ newDoc) => {
setDoc(newDoc)
}, [])
+ const handleExplorer = () => setActiveExplorer(!activeExplorer)
+
+ useEffect(() => {
+ if (activeExplorer) {
+ document.getElementById('grid-layout').style.gridTemplateColumns = '170px 7px 1fr'
+ } else {
+ document.getElementById('grid-layout').style.gridTemplateColumns = '0px 0px 1fr'
+ }
+ }, [activeExplorer])
+
let subscribe = true
useEffect(() => {
if (subscribe) {
@@ -31,67 +45,45 @@ const App = () => {
return (
- Markdown with preview | Edit, create, and improve your ideas ✨
+ Rundev | Markdown preview | Edit, create, and improve your ideas ✨
-
-
(
-
-
- {mounted && }
-
-
-
-
+
+
(
+
+
+ {activeExplorer && }
+
+
+
(
+
+
+ {mounted && }
+
+
+
+
+ )}
+ />
-
- )}
+ )}
/>
-
+
)
diff --git a/pages/index.js b/pages/index.js
index 6d4edd9..67e7e51 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -19,8 +19,8 @@ function Home() {
return (
- Markdown Preview | An editor with real-time preview
-
+ Rundev | An editor with real-time preview
+
diff --git a/public/favicon.ico b/public/favicon.ico
index 072acb4..98d610e 100644
Binary files a/public/favicon.ico and b/public/favicon.ico differ
diff --git a/public/mdpreview-logo-2.png b/public/mdpreview-logo-2.png
deleted file mode 100644
index 50af207..0000000
Binary files a/public/mdpreview-logo-2.png and /dev/null differ
diff --git a/public/mdpreview-logo.png b/public/mdpreview-logo.png
deleted file mode 100644
index ff5e474..0000000
Binary files a/public/mdpreview-logo.png and /dev/null differ
diff --git a/public/mdpreview.webp b/public/mdpreview.webp
deleted file mode 100644
index 3a41d29..0000000
Binary files a/public/mdpreview.webp and /dev/null differ
diff --git a/public/rundevs.png b/public/rundevs.png
new file mode 100644
index 0000000..ba91c9f
Binary files /dev/null and b/public/rundevs.png differ
diff --git a/public/seti.woff b/public/seti.woff
new file mode 100644
index 0000000..f0e4748
Binary files /dev/null and b/public/seti.woff differ
diff --git a/styles/app.module.css b/styles/app.module.css
index 44f684d..d5ee378 100644
--- a/styles/app.module.css
+++ b/styles/app.module.css
@@ -26,8 +26,16 @@
overflow: hidden;
}
+.gridExplorer {
+ grid-template-columns: 0px 7px 1fr;
+ height: 100%;
+ width: 100%;
+ display: grid;
+ overflow: hidden;
+}
+
.gridColumn {
- grid-template-columns: 1fr 8px 1fr;
+ grid-template-columns: 1fr 7px 1fr;
}
.gutterColumn {
@@ -35,11 +43,10 @@
cursor: col-resize;
grid-column: 2;
transition: background-color 0.2s ease-out;
-
}
.gridRow {
- grid-template-rows: 1fr 8px 1fr;
+ grid-template-rows: 1fr 7px 1fr;
}
.gutterRow {
@@ -50,53 +57,37 @@
}
-.gutterColumn, .gutterRow {
+.gutterColumn, .gutterRow, .gutterColExplorer {
background-color: var(--md-bg-preview);
}
-.gutterColumn:hover, .gutterRow:hover {
+.gutterColExplorer {
+ background-color: var(--md-bg-1);
+}
+
+.gutterColumn:hover, .gutterRow:hover, .gutterColExplorer:hover {
background-color: var(--md-malibu);
transition: background-color 0.2s ease-out;
}
-.gutterColumn:active, .gutterRow:active {
+.gutterColumn:active, .gutterRow:active, .gutterColExplorer:active {
background-color: var(--md-cursor);
-
}
-.footer {
- height: 22px;
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- width: 100%;
- background-color: var(--md-bg-preview);
- border-top: 1px solid var(--md-divider-light-1);
- font-size: 0.87rem;
- color: var(--md-text-2);
-}
-
-.footer div {
- height: 100%;
- display: flex;
- align-items: center;
-}
-
-.footer span {
- padding: 0 0.68rem;
- height: 100%;
-}
-
-.footer span:hover {
- background-color: var(--md-bg-3);
- cursor: default;
+.gutterColExplorer {
+ grid-row: 1/-1;
+ grid-column: 2;
+ cursor: col-resize;
}
@media screen and (min-width: 640px ){
.appLayout {
flex-direction: row;
}
+ .gridExplorer {
+ grid-template-columns: 170px 7px 1fr;
+ height: 100%;
+ }
.gridColumn, .gridRow {
height: 100%;
}
diff --git a/styles/globals.css b/styles/globals.css
index 17b85d8..9df04c3 100644
--- a/styles/globals.css
+++ b/styles/globals.css
@@ -72,6 +72,14 @@
--md-nav-height: 48px;
}
+@font-face {
+ src: url('https://main.vscode-cdn.net/stable/da76f93349a72022ca4670c1b84860304616aaa2/extensions/theme-seti/icons/seti.woff') format('woff');
+ font-family: 'seti';
+ font-weight: normal;
+ font-style: normal;
+ font-display: block;
+}
+
*, :before,
:after {
box-sizing: border-box;