Adding menu with close options.
This commit is contained in:
parent
579ffdd576
commit
d198136df2
@ -199,12 +199,16 @@ export default function Page() {
|
|||||||
}}><img src="/img/home.png" alt="Go to menu. (House icon)"/></a>
|
}}><img src="/img/home.png" alt="Go to menu. (House icon)"/></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style={{display: (hiddenMenu ? 'none': '')}} className="overlay-menu">
|
<div style={{display: (hiddenMenu ? 'none': '')}} className="overlay-menu-div">
|
||||||
|
<div className="overlay-menu-div-header">
|
||||||
|
<a onClick={(e: React.MouseEvent<HTMLElement>) => setHiddenMenu(true)} href="#"><img src="/img/close.png" alt="Close button, a common 'x'"/></a>
|
||||||
|
</div>
|
||||||
|
<div className="overlay-menu">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#" onClick={(e: React.MouseEvent<HTMLElement>) => setHiddenMenu(true)}>Exit</a></li>
|
<li><a href="#" onClick={(e: React.MouseEvent<HTMLElement>) => setHiddenMenu(true)}>Exit</a></li>
|
||||||
<li><a href="#" onClick={(e: React.MouseEvent<HTMLElement>) => setHiddenMenu(true)}>Exit</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div style={{display: 'none'}} className="menu-select-files">
|
<div style={{display: 'none'}} className="menu-select-files">
|
||||||
<CenterElement>
|
<CenterElement>
|
||||||
<FormSelectFiles refInputRom={refInputRom}
|
<FormSelectFiles refInputRom={refInputRom}
|
||||||
|
@ -47,11 +47,8 @@ form label, form input {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.overlay-menu {
|
.overlay-menu-div {
|
||||||
background: #343434;
|
background: #0E0E10;
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -64,16 +61,45 @@ form label, form input {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.overlay-menu li {
|
.overlay-menu-div-header a {
|
||||||
|
margin-right: 3%;
|
||||||
|
margin-top: 1.5vh;
|
||||||
|
font-size: 10px;
|
||||||
|
width: 23px;
|
||||||
|
height: 23px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overlay-menu-div-header a img {
|
||||||
|
width: 90%;
|
||||||
|
height: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overlay-menu-div-header {
|
||||||
|
display: flex;
|
||||||
|
background: #343434;
|
||||||
|
height: 5%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: end;
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
.overlay-menu {
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
height: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overlay-menu-div li {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.overlay-menu a {
|
.overlay-menu-div a {
|
||||||
color: white;
|
color: white;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.overlay-menu li a:hover,.overlay-menu li a:focus {
|
.overlay-menu-div li a:hover,.overlay-menu li a:focus {
|
||||||
color: grey;
|
color: grey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIN
public/img/close.png
Normal file
BIN
public/img/close.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user