-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from rundevs/development
Add panel in layout on page/app
- Loading branch information
Showing
24 changed files
with
345 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from 'react' | ||
import style from './explorer.module.css' | ||
const languages = { js: '.js', md: '.md' } | ||
const Explorer = () => { | ||
const { js, md } = languages | ||
return ( | ||
<section className={style.explorer}> | ||
<header className={style.header}> | ||
<h2>Explorer</h2> | ||
</header> | ||
<details open={true} className={style.filesmd}> | ||
<summary>Markdown</summary> | ||
<div className={style.file} title='markdown/readme.md' aria-selected={true} role='treeitem'> | ||
<span className={style.file}>readme{md}</span> | ||
</div> | ||
<div className={style.file} aria-selected={true}> | ||
<span className={style.file}>notes{md}</span> | ||
</div> | ||
</details> | ||
<hr /> | ||
<details open={true} className={style.filesjs}> | ||
<summary>JavaScript</summary> | ||
<div className={style.file} aria-selected={true}> | ||
<span className={style.file}>notes{js}</span> | ||
</div> | ||
</details> | ||
</section> | ||
) | ||
} | ||
|
||
export default Explorer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
.explorer { | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
height: 100%; | ||
justify-content: flex-start; | ||
border-right: 1px solid var(--md-divider-light-1); | ||
} | ||
|
||
.explorer hr { | ||
margin: 0; | ||
width: 100%; | ||
height: 1px; | ||
border: 0; | ||
background-color: var(--md-divider-light-1); | ||
} | ||
|
||
.header { | ||
height: 48px; | ||
position: relative; | ||
flex-shrink: 0; | ||
display: flex; | ||
flex-flow: row; | ||
align-items: center; | ||
} | ||
|
||
.header h2 { | ||
font-size: 0.7rem; | ||
color: var(--md-text-2); | ||
font-weight: 400; | ||
text-transform: uppercase; | ||
padding-left: 1rem; | ||
} | ||
|
||
.explorer details { | ||
display: flex; | ||
flex-direction: column; | ||
user-select: none; | ||
position: relative; | ||
} | ||
|
||
.explorer details summary { | ||
padding: 0rem 0.5rem; | ||
margin: 0; | ||
line-height: 20px; | ||
cursor: pointer; | ||
text-transform: uppercase; | ||
font-size: 0.7rem; | ||
font-weight: 500; | ||
height: 22px; | ||
width: 100%; | ||
position: relative; | ||
border: 1px solid transparent; | ||
} | ||
|
||
.explorer details[open] { | ||
height: 100%; | ||
overflow-y: auto; | ||
} | ||
|
||
.explorer details[open] summary { | ||
box-shadow: 0 0 1rem rgba(73, 73, 73, 0.1); | ||
} | ||
|
||
.explorer details summary:focus, .file:focus { | ||
border: 1px solid var(--md-cursor); | ||
} | ||
|
||
.filesmd div:last-child, .filesjs div:last-child { | ||
margin-bottom: 1rem; | ||
} | ||
|
||
.filesmd div, .filesjs div { | ||
padding-left: 1.2rem; | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
cursor: pointer; | ||
} | ||
|
||
.file:hover, .file:hover { | ||
background-color: var(--md-bg-3); | ||
} | ||
|
||
.filesmd div::before, .filesjs div::before { | ||
background-image: unset; | ||
font-family: 'seti'; | ||
font-size: 110%; | ||
margin-right: 0.375rem; | ||
} | ||
|
||
.filesmd div::before { | ||
color: #519aba; | ||
content: '\E04D'; | ||
} | ||
|
||
.filesjs div::before { | ||
color: #cbcb41; | ||
content: '\E051'; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import React from 'react' | ||
import style from './footer.module.css' | ||
|
||
const Footer = () => { | ||
return ( | ||
<footer className={style.footer}> | ||
<div> | ||
<span | ||
data-tooltip='Rundev Application © 2022' | ||
title='Rundev Application' | ||
className={style.tooltip} | ||
> | ||
Rundev | ||
</span> | ||
</div> | ||
<div> | ||
<span | ||
data-tooltip='Indentation' | ||
title='Indentation' | ||
className={style.tooltip} | ||
> | ||
Spaces: 2 | ||
</span> | ||
<span | ||
data-tooltip='Encoding' | ||
title='Encoding' | ||
className={style.tooltip} | ||
> | ||
UTF-8 | ||
</span> | ||
<span | ||
data-tooltip='Line Sequence' | ||
title='Line Sequence' | ||
className={style.tooltip} | ||
> | ||
LF | ||
</span> | ||
</div> | ||
</footer> | ||
) | ||
} | ||
|
||
export default Footer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.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; | ||
overflow: hidden; | ||
} | ||
|
||
.footer span { | ||
padding: 0 0.68rem; | ||
height: 100%; | ||
white-space: nowrap; | ||
} | ||
|
||
.footer span:hover { | ||
background-color: var(--md-bg-3); | ||
cursor: default; | ||
} |
Oops, something went wrong.
c5cccb5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
markdowners – ./
markdowners-mdpreview.vercel.app
rundevs.vercel.app
markdowners-git-main-mdpreview.vercel.app