mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Prettying stuff
This commit is contained in:
parent
b0cbc5aa5e
commit
d06f76f6b1
12 changed files with 445 additions and 419 deletions
|
@ -63,12 +63,13 @@ function Comment({ comment, index, onComment, onDelete, onReact, uid }) {
|
||||||
</div>
|
</div>
|
||||||
<div>User #{user}</div>
|
<div>User #{user}</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.commentDate}>{date}</div>
|
<div className={styles.commentDate}>{date}</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={`${!displayed && styles.hidden}`}>
|
<div className={`${!displayed && styles.hidden}`}>
|
||||||
<div className={styles.commentText}> {content}</div>
|
<div className={styles.commentText}> {content}</div>
|
||||||
<div className={'actions'}>
|
<div className={'actions'}>
|
||||||
<span className={styles.reply_bttn}
|
<span
|
||||||
|
className={styles.reply_bttn}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setCommenting(true)
|
setCommenting(true)
|
||||||
}}
|
}}
|
||||||
|
@ -76,7 +77,8 @@ function Comment({ comment, index, onComment, onDelete, onReact, uid }) {
|
||||||
Válasz...
|
Válasz...
|
||||||
</span>
|
</span>
|
||||||
{own && (
|
{own && (
|
||||||
<span className={styles.delete_bttn}
|
<span
|
||||||
|
className={styles.delete_bttn}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
onDelete([index])
|
onDelete([index])
|
||||||
}}
|
}}
|
||||||
|
@ -153,8 +155,8 @@ export default function Comments({
|
||||||
const [commentsShowing, setCommentsShowing] = useState(false)
|
const [commentsShowing, setCommentsShowing] = useState(false)
|
||||||
const commentCount = comments ? countComments(comments) : 0
|
const commentCount = comments ? countComments(comments) : 0
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{commentsShowing ? (
|
{commentsShowing ? (
|
||||||
<Modal
|
<Modal
|
||||||
closeClick={() => {
|
closeClick={() => {
|
||||||
|
@ -178,7 +180,8 @@ export default function Comments({
|
||||||
: null}
|
: null}
|
||||||
{commentCount !== 0 ? (
|
{commentCount !== 0 ? (
|
||||||
<div className={'actions'}>
|
<div className={'actions'}>
|
||||||
<span className={styles.comment_bttn}
|
<span
|
||||||
|
className={styles.comment_bttn}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setAddingNewComment(true)
|
setAddingNewComment(true)
|
||||||
}}
|
}}
|
||||||
|
@ -219,7 +222,9 @@ export default function Comments({
|
||||||
<span className={styles.comment_bttn}>
|
<span className={styles.comment_bttn}>
|
||||||
{commentCount === 0
|
{commentCount === 0
|
||||||
? 'Új komment'
|
? 'Új komment'
|
||||||
: `További ${commentCount} komment${commentCount > 1 ? ' mutatása' : ''}`}
|
: `További ${commentCount} komment${
|
||||||
|
commentCount > 1 ? ' mutatása' : ''
|
||||||
|
}`}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,38 +1,38 @@
|
||||||
.comment_bttn {
|
.comment_bttn {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
padding-top: 4px !important;
|
padding-top: 4px !important;
|
||||||
transition: width 0.5s, height 0.5s, ease-in 0.5s;
|
transition: width 0.5s, height 0.5s, ease-in 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment_bttn:hover {
|
.comment_bttn:hover {
|
||||||
transition: width 0.5s, height 0.5s, ease-out 0.5s;
|
transition: width 0.5s, height 0.5s, ease-out 0.5s;
|
||||||
color: gainsboro;
|
color: gainsboro;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reply_bttn {
|
.reply_bttn {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
margin-top: 14.5px !important;
|
margin-top: 14.5px !important;
|
||||||
margin-left: 6px !important;
|
margin-left: 6px !important;
|
||||||
padding-top: 4px !important;
|
padding-top: 4px !important;
|
||||||
transition: width 0.5s, height 0.5s, ease-in 0.5s;
|
transition: width 0.5s, height 0.5s, ease-in 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reply_bttn:hover {
|
.reply_bttn:hover {
|
||||||
transition: width 0.5s, height 0.5s, ease-out 0.5s;
|
transition: width 0.5s, height 0.5s, ease-out 0.5s;
|
||||||
color: gainsboro;
|
color: gainsboro;
|
||||||
}
|
}
|
||||||
|
|
||||||
.delete_bttn {
|
.delete_bttn {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
margin-top: 14.5px !important;
|
margin-top: 14.5px !important;
|
||||||
margin-left: 6px !important;
|
margin-left: 6px !important;
|
||||||
padding-top: 4px !important;
|
padding-top: 4px !important;
|
||||||
transition: width 0.5s, height 0.5s, ease-in 0.5s;
|
transition: width 0.5s, height 0.5s, ease-in 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.delete_bttn:hover {
|
.delete_bttn:hover {
|
||||||
transition: width 0.5s, height 0.5s, ease-out 0.5s;
|
transition: width 0.5s, height 0.5s, ease-out 0.5s;
|
||||||
color: gainsboro;
|
color: gainsboro;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment {
|
.comment {
|
||||||
|
|
|
@ -66,21 +66,25 @@ export default function Composer({ onSubmit }) {
|
||||||
setFile(e.target.files[0])
|
setFile(e.target.files[0])
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<div id="radiolabel"><p><b>A poszt típusa:</b></p></div>
|
<div id="radiolabel">
|
||||||
<div className={styles.typeSelector}>
|
<p>
|
||||||
<div title="A főoldalon mindenki láthatja, reagálhat rá és kommentelhet alá">
|
<b>A poszt típusa:</b>
|
||||||
<input
|
</p>
|
||||||
onChange={(e) => {
|
</div>
|
||||||
setType(e.target.value)
|
<div className={styles.typeSelector}>
|
||||||
}}
|
<div title="A főoldalon mindenki láthatja, reagálhat rá és kommentelhet alá">
|
||||||
type="radio"
|
<input
|
||||||
name="type"
|
onChange={(e) => {
|
||||||
value="public"
|
setType(e.target.value)
|
||||||
defaultChecked
|
}}
|
||||||
/>
|
type="radio"
|
||||||
Publikus
|
name="type"
|
||||||
</div>
|
value="public"
|
||||||
|
defaultChecked
|
||||||
|
/>
|
||||||
|
Publikus
|
||||||
|
</div>
|
||||||
<div title="Csak admin bácsi látja">
|
<div title="Csak admin bácsi látja">
|
||||||
<input
|
<input
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
|
@ -105,7 +109,7 @@ export default function Composer({ onSubmit }) {
|
||||||
>
|
>
|
||||||
Posztolás
|
Posztolás
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -1,77 +1,77 @@
|
||||||
.container {
|
.container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container > input,
|
.container > input,
|
||||||
.container > textarea {
|
.container > textarea {
|
||||||
margin: 5px 0px;
|
margin: 5px 0px;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
width: 97%;
|
width: 97%;
|
||||||
border-color: #5d5f61;
|
border-color: #5d5f61;
|
||||||
background-color: #1f2021;
|
background-color: #1f2021;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container > textarea {
|
.container > textarea {
|
||||||
margin-left: 1px;
|
margin-left: 1px;
|
||||||
width: 99%;
|
width: 99%;
|
||||||
resize: none;
|
resize: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.typeSelector {
|
.typeSelector {
|
||||||
display:inline-flex;
|
display: inline-flex;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tip {
|
.tip {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 15px 0px 2px 2px;
|
margin: 15px 0px 2px 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.new {
|
.new {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: #191919;
|
background-color: #191919;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 8px;
|
margin: 8px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.new:hover {
|
.new:hover {
|
||||||
background-color: var(--hoover-color);
|
background-color: var(--hoover-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.composerAction {
|
.composerAction {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 36%;
|
width: 36%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.composerAction > span {
|
.composerAction > span {
|
||||||
margin: 2px 2px;
|
margin: 2px 2px;
|
||||||
padding: 0px 10px;
|
padding: 0px 10px;
|
||||||
border: 1px solid #444;
|
border: 1px solid #444;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
margin-top: 14.5px !important;
|
margin-top: 14.5px !important;
|
||||||
padding-top: 4px !important;
|
padding-top: 4px !important;
|
||||||
transform: translate(109%, 10%);
|
transform: translate(109%, 10%);
|
||||||
transition: width 0.5s, height 0.5s, ease-in 0.5s;
|
transition: width 0.5s, height 0.5s, ease-in 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.composerAction > span:hover {
|
.composerAction > span:hover {
|
||||||
background-color: var(--hoover-color);
|
background-color: var(--hoover-color);
|
||||||
transition: width 0.5s, height 0.5s, ease-out 0.5s;
|
transition: width 0.5s, height 0.5s, ease-out 0.5s;
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
text-shadow: 2px 1.5px 10px black;
|
text-shadow: 2px 1.5px 10px black;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,33 +1,33 @@
|
||||||
.container {
|
.container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
margin-right: 22%;
|
margin-right: 22%;
|
||||||
margin-left: 22%;
|
margin-left: 22%;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.listItem {
|
.listItem {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
margin: 3px;
|
margin: 3px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: #a1a1a1;
|
color: #a1a1a1;
|
||||||
transition: width 0.5s, height 0.5s, ease-in 0.5s;
|
transition: width 0.5s, height 0.5s, ease-in 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.listItem:hover {
|
.listItem:hover {
|
||||||
background-color: var(--hoover-color);
|
background-color: var(--hoover-color);
|
||||||
transition: width 0.5s, height 0.5s, ease-out 0.5s;
|
transition: width 0.5s, height 0.5s, ease-out 0.5s;
|
||||||
text-shadow: 2px 1.5px 10px black;
|
text-shadow: 2px 1.5px 10px black;
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: gainsboro;
|
color: gainsboro;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,48 +1,48 @@
|
||||||
.modal {
|
.modal {
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: rgba(0, 0, 0, 0.6);
|
background: rgba(0, 0, 0, 0.6);
|
||||||
}
|
}
|
||||||
|
|
||||||
.modalContent {
|
.modalContent {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
max-height: 80%;
|
max-height: 80%;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
max-width: 52%;
|
max-width: 52%;
|
||||||
width: auto;
|
width: auto;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background: var(--background-color);
|
background: var(--background-color);
|
||||||
height: auto;
|
height: auto;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding-top: 38px;
|
padding-top: 38px;
|
||||||
padding-bottom: 25px;
|
padding-bottom: 25px;
|
||||||
padding-right: 14px;
|
padding-right: 14px;
|
||||||
padding-left: 16px;
|
padding-left: 16px;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
.close {
|
.close {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 16.5px;
|
font-size: 16.5px;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 5px;
|
top: 5px;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.children {
|
.children {
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,9 +38,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.user {
|
.user {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newsRoot {
|
.newsRoot {
|
||||||
|
|
|
@ -42,8 +42,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.reacted:hover {
|
.reacted:hover {
|
||||||
background-color: #96810b !important;
|
background-color: #96810b !important;
|
||||||
color: #42423e !important;
|
color: #42423e !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reactContainer {
|
.reactContainer {
|
||||||
|
@ -53,4 +53,4 @@
|
||||||
.react_bttn {
|
.react_bttn {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
padding-top: 3px !important;
|
padding-top: 3px !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,379 +1,379 @@
|
||||||
:root {
|
:root {
|
||||||
--text-color: #f2cb05;
|
--text-color: #f2cb05;
|
||||||
--primary-color: #f2cb05;
|
--primary-color: #f2cb05;
|
||||||
--bright-color: #f2f2f2;
|
--bright-color: #f2f2f2;
|
||||||
--background-color: #222426;
|
--background-color: #222426;
|
||||||
--hoover-color: #393939;
|
--hoover-color: #393939;
|
||||||
}
|
}
|
||||||
|
|
||||||
@import url('https://fonts.googleapis.com/css2?family=Kameron&family=Overpass+Mono:wght@300;400&display=swap');
|
@import url('https://fonts.googleapis.com/css2?family=Kameron&family=Overpass+Mono:wght@300;400&display=swap');
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Kameron', serif;
|
font-family: 'Kameron', serif;
|
||||||
font-family: 'Overpass Mono', monospace;
|
font-family: 'Overpass Mono', monospace;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
padding: 2px 0px;
|
padding: 2px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
color: #c1c1c1;
|
color: #c1c1c1;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
height: 120px;
|
height: 120px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: 1px solid #666;
|
border: 1px solid #666;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
border: 1px solid #444;
|
border: 1px solid #444;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link {
|
.link {
|
||||||
margin: 20px;
|
margin: 20px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebarLink {
|
.sidebarLink {
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
background-color: #222426;
|
background-color: #222426;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
margin-left: 200px;
|
margin-left: 200px;
|
||||||
padding: 1px 15px;
|
padding: 1px 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebarLinks a {
|
.sidebarLinks a {
|
||||||
display: block;
|
display: block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: black;
|
color: black;
|
||||||
font-size: 108%;
|
font-size: 108%;
|
||||||
padding: 14px;
|
padding: 14px;
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--bright-color);
|
color: var(--bright-color);
|
||||||
transition: width 0.5s, height 0.5s, ease-in 0.5s;
|
transition: width 0.5s, height 0.5s, ease-in 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebarLinks a:hover {
|
.sidebarLinks a:hover {
|
||||||
transition: width 0.5s, height 0.5s, ease-out 0.5s;
|
transition: width 0.5s, height 0.5s, ease-out 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebarLinks a.active {
|
.sidebarLinks a.active {
|
||||||
border: 0.5px solid var(--text-color);
|
border: 0.5px solid var(--text-color);
|
||||||
color: white;
|
color: white;
|
||||||
text-shadow: 2px 2px 8px black;
|
text-shadow: 2px 2px 8px black;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebarLinks a:hover:not(.active) {
|
.sidebarLinks a:hover:not(.active) {
|
||||||
background-color: var(--text-color);
|
background-color: var(--text-color);
|
||||||
color: black;
|
color: black;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-shadow: 2px 2px 8px black;
|
text-shadow: 2px 2px 8px black;
|
||||||
transition: width 0.5s, height 0.5s, ease-out 0.5s;
|
transition: width 0.5s, height 0.5s, ease-out 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menuicon div {
|
.menuicon div {
|
||||||
height: 5px;
|
height: 5px;
|
||||||
background-color: var(--bright-color);
|
background-color: var(--bright-color);
|
||||||
margin: 0px 0;
|
margin: 0px 0;
|
||||||
display: none;
|
display: none;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebarheader {
|
.sidebarheader {
|
||||||
font-size: 40px;
|
font-size: 40px;
|
||||||
color: var(--bright-color);
|
color: var(--bright-color);
|
||||||
display: flex;
|
display: flex;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.headercontainer {
|
.headercontainer {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
padding-top: 15px;
|
||||||
|
padding-bottom: 17px;
|
||||||
|
padding-right: 2px;
|
||||||
|
padding-left: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 700px) {
|
||||||
|
.sidebar {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
}
|
||||||
padding-top: 15px;
|
|
||||||
padding-bottom: 17px;
|
.sidebar a {
|
||||||
padding-right: 2px;
|
float: left;
|
||||||
padding-left: 2px;
|
}
|
||||||
|
|
||||||
|
div.content {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 700px) {
|
@media screen and (max-width: 700px) {
|
||||||
.sidebar {
|
.menuicon div {
|
||||||
width: 100%;
|
display: block;
|
||||||
height: auto;
|
margin: 6px 0;
|
||||||
position: relative;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar a {
|
.sidebar a {
|
||||||
float: left;
|
text-align: center;
|
||||||
}
|
float: none;
|
||||||
|
}
|
||||||
|
|
||||||
div.content {
|
.menuicon {
|
||||||
margin-left: 0;
|
display: inline;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 700px) {
|
.sidebaritemsconainer {
|
||||||
.menuicon div {
|
display: inline;
|
||||||
display: block;
|
}
|
||||||
margin: 6px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar a {
|
.sidebarheader {
|
||||||
text-align: center;
|
position: absolute;
|
||||||
float: none;
|
left: 50%;
|
||||||
}
|
top: 50%;
|
||||||
|
padding-top: 20px;
|
||||||
|
transform: translateX(-50%) translateY(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
.menuicon {
|
.codecontainer {
|
||||||
display: inline;
|
margin-left: 0px;
|
||||||
}
|
margin-right: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.sidebaritemsconainer {
|
.sitedescription {
|
||||||
display: inline;
|
width: 100%;
|
||||||
}
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
.sidebarheader {
|
.rtfmImage {
|
||||||
position: absolute;
|
display: flex;
|
||||||
left: 50%;
|
justify-content: center;
|
||||||
top: 50%;
|
border: 2px solid white;
|
||||||
padding-top: 20px;
|
width: 100%;
|
||||||
transform: translateX(-50%) translateY(-50%);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.codecontainer {
|
.manualUsage {
|
||||||
margin-left: 0px;
|
display: flex;
|
||||||
margin-right: 0px;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sitedescription {
|
|
||||||
width: 100%;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rtfmImage {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
border: 2px solid white;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.manualUsage {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.endofpage {
|
.endofpage {
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.questionContainer {
|
.questionContainer {
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.questionContainer:hover {
|
.questionContainer:hover {
|
||||||
background-color: var(--hoover-color);
|
background-color: var(--hoover-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.question {
|
.question {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.answer {
|
.answer {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.data {
|
.data {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
color: #a1a1a1;
|
color: #a1a1a1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.loadingindicator {
|
.loadingindicator {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link {
|
.link {
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subjectSelector {
|
.subjectSelector {
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
height: 350px;
|
height: 350px;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subjItem {
|
.subjItem {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
float: 1;
|
float: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.activeSubjItem {
|
.activeSubjItem {
|
||||||
background-color: var(--text-color);
|
background-color: var(--text-color);
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subjItem:hover:not(.activeSubjItem) {
|
.subjItem:hover:not(.activeSubjItem) {
|
||||||
background-color: #555;
|
background-color: #555;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rtfmImage {
|
.rtfmImage {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: 0px 10px;
|
margin: 0px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.warning {
|
.warning {
|
||||||
color: red;
|
color: red;
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
font-size: 17.5px;
|
font-size: 17.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#manualWarn {
|
#manualWarn {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.manual_img {
|
.manual_img {
|
||||||
padding: 20px 2px;
|
padding: 20px 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
font-size: 23px;
|
font-size: 23px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pageHeader {
|
.pageHeader {
|
||||||
background-color: var(--text-color);
|
background-color: var(--text-color);
|
||||||
height: 45px;
|
height: 45px;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
color: black;
|
color: black;
|
||||||
margin: 5px 0px 0px 0px;
|
margin: 5px 0px 0px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pageHeader h1 {
|
.pageHeader h1 {
|
||||||
padding-top: 6px;
|
padding-top: 6px;
|
||||||
letter-spacing: 7px;
|
letter-spacing: 7px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.manualUsage {
|
.manualUsage {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.manualBody {
|
.manualBody {
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
select:hover {
|
select:hover {
|
||||||
border: 1px solid #F2CB05;
|
border: 1px solid #f2cb05;
|
||||||
}
|
}
|
||||||
|
|
||||||
.userStatus {
|
.userStatus {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
background-color: #373737;
|
background-color: #373737;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.msgs {
|
.msgs {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logout {
|
.logout {
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
margin-right: 7px;
|
margin-right: 7px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 15.5px;
|
font-size: 15.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logout:hover {
|
.logout:hover {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.msgs :first-child {
|
.msgs :first-child {
|
||||||
font-size: 27px;
|
font-size: 27px;
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.msgs > div {
|
.msgs > div {
|
||||||
padding: 2px 6px;
|
padding: 2px 6px;
|
||||||
font-size: 13.5px;
|
font-size: 13.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions {
|
.actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions > span {
|
.actions > span {
|
||||||
margin: 2px 2px;
|
margin: 2px 2px;
|
||||||
padding: 0px 10px;
|
padding: 0px 10px;
|
||||||
border: 1px solid #444;
|
border: 1px solid #444;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions > span:hover {
|
.actions > span:hover {
|
||||||
background-color: var(--hoover-color);
|
background-color: var(--hoover-color);
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,7 +107,9 @@ function renderMaual() {
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
<center>
|
<center>
|
||||||
<h2 id="pw" className={'subtitle'}>Jelszavak</h2>
|
<h2 id="pw" className={'subtitle'}>
|
||||||
|
Jelszavak
|
||||||
|
</h2>
|
||||||
</center>
|
</center>
|
||||||
<div className={'manualBody'}>
|
<div className={'manualBody'}>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -89,32 +89,47 @@ export default function PwRequest(props) {
|
||||||
</div>
|
</div>
|
||||||
<div id="form">
|
<div id="form">
|
||||||
<div className={styles.text}>
|
<div className={styles.text}>
|
||||||
<p className={styles.descrip}>Ezen az oldalon lehetőséged van lekérni jelszavakat,
|
<p className={styles.descrip}>
|
||||||
hogy új felhasználókat hívhass meg az oldalra, vagy elfelejtett jelszavadat pótold,
|
Ezen az oldalon lehetőséged van lekérni jelszavakat, hogy új
|
||||||
amennyiben még be vagy jelentkezve a régivel. (Konkrét elfelejtett jelszó funkció még nincsen)<br />
|
felhasználókat hívhass meg az oldalra, vagy elfelejtett jelszavadat
|
||||||
Minden felhasználó saját és különböző jelszót kap. Inkább generálj egyet és add oda másnak,
|
pótold, amennyiben még be vagy jelentkezve a régivel. (Konkrét
|
||||||
mint hogy közösen használjatok egyet, mert egyszerre, egy felhasználó csak egy helyen, egy
|
elfelejtett jelszó funkció még nincsen)
|
||||||
eszközön lehet belépve, mindenhol máshol automatikusan kijelentkeztetésre kerül. A jelszavakról
|
<br />
|
||||||
bővebben a Script használata oldal <a href="/manual#pw" target="_blank">vonatkozó részén</a> olvashatsz.</p>
|
Minden felhasználó saját és különböző jelszót kap. Inkább generálj
|
||||||
|
egyet és add oda másnak, mint hogy közösen használjatok egyet, mert
|
||||||
|
egyszerre, egy felhasználó csak egy helyen, egy eszközön lehet
|
||||||
|
belépve, mindenhol máshol automatikusan kijelentkeztetésre kerül. A
|
||||||
|
jelszavakról bővebben a Script használata oldal{' '}
|
||||||
|
<a href="/manual#pw" target="_blank">
|
||||||
|
vonatkozó részén
|
||||||
|
</a>{' '}
|
||||||
|
olvashatsz.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.text}>
|
<div className={styles.text}>
|
||||||
Az új felhasználóknak
|
Az új felhasználóknak
|
||||||
<span>{' ' + daysAfterUserGetsPWs + ' '}</span>
|
<span>{' ' + daysAfterUserGetsPWs + ' '}</span>
|
||||||
napot kell várniuk, míg jelszó generálási lehetőséget kapnak.< br />
|
napot kell várniuk, míg jelszó generálási lehetőséget kapnak.
|
||||||
Egy felhasználó egyszerre
|
<br />
|
||||||
|
Egy felhasználó egyszerre
|
||||||
<span>{' ' + addPWCount + ' '}</span>
|
<span>{' ' + addPWCount + ' '}</span>
|
||||||
jelszót generálhat, a jelszókérések közt
|
jelszót generálhat, a jelszókérések közt
|
||||||
<span>{' ' + addPwPerDay + ' '}</span>
|
<span>{' ' + addPwPerDay + ' '}</span>
|
||||||
napnak kell eltelnie, hogy újabb jelszót kérhess le.<br />
|
napnak kell eltelnie, hogy újabb jelszót kérhess le.
|
||||||
|
<br />
|
||||||
Egy felhasználó összesen
|
Egy felhasználó összesen
|
||||||
<span>{' ' + maxPWCount + ' '}</span>
|
<span>{' ' + maxPWCount + ' '}</span>
|
||||||
jelszót generálhat.<br />
|
jelszót generálhat.
|
||||||
|
<br />
|
||||||
Ebből eddig
|
Ebből eddig
|
||||||
<span>{' ' + requestedPWS + ' '}</span>
|
<span>{' ' + requestedPWS + ' '}</span>
|
||||||
lehetőséget használtál fel, tehát még
|
lehetőséget használtál fel, tehát még
|
||||||
<span>{' ' + remaining}</span> db jelszót kérhetsz le. <br /><br /> A jelenleg bejelentkezett
|
<span>{' ' + remaining}</span> db jelszót kérhetsz le. <br />
|
||||||
felhasználó létrehozva:
|
<br /> A jelenleg bejelentkezett felhasználó létrehozva:
|
||||||
<span>{' ' + dayDiff}</span> napja,<span>{' ' + createDate}</span>-kor.<br /><br />
|
<span>{' ' + dayDiff}</span> napja,<span>{' ' + createDate}</span>
|
||||||
|
-kor.
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.buttonContainer}>
|
<div className={styles.buttonContainer}>
|
||||||
<div onClick={handleSubmit} className={styles.button}>
|
<div onClick={handleSubmit} className={styles.button}>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
background-color: #F2CB05;
|
background-color: #f2cb05;
|
||||||
border: none;
|
border: none;
|
||||||
color: black;
|
color: black;
|
||||||
padding: 15px 30px;
|
padding: 15px 30px;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue