Rework of page "ranklist" (part1), changed color on "loadingindicator"

This commit is contained in:
ndaniel1102 2021-03-16 16:16:54 +01:00
commit f3e5d54f7b
14 changed files with 446 additions and 416 deletions

View file

@ -63,12 +63,13 @@ function Comment({ comment, index, onComment, onDelete, onReact, uid }) {
</div>
<div>User #{user}</div>
</div>
<div className={styles.commentDate}>{date}</div>
<div className={styles.commentDate}>{date}</div>
</div>
<div className={`${!displayed && styles.hidden}`}>
<div className={styles.commentText}> {content}</div>
<div className={'actions'}>
<span className={styles.reply_bttn}
<span
className={styles.reply_bttn}
onClick={() => {
setCommenting(true)
}}
@ -76,7 +77,8 @@ function Comment({ comment, index, onComment, onDelete, onReact, uid }) {
Válasz...
</span>
{own && (
<span className={styles.delete_bttn}
<span
className={styles.delete_bttn}
onClick={() => {
onDelete([index])
}}
@ -153,8 +155,8 @@ export default function Comments({
const [commentsShowing, setCommentsShowing] = useState(false)
const commentCount = comments ? countComments(comments) : 0
return (
<div>
return (
<div>
{commentsShowing ? (
<Modal
closeClick={() => {
@ -178,7 +180,8 @@ export default function Comments({
: null}
{commentCount !== 0 ? (
<div className={'actions'}>
<span className={styles.comment_bttn}
<span
className={styles.comment_bttn}
onClick={() => {
setAddingNewComment(true)
}}
@ -219,7 +222,9 @@ export default function Comments({
<span className={styles.comment_bttn}>
{commentCount === 0
? 'Új komment'
: `További ${commentCount} komment${commentCount > 1 ? ' mutatása' : ''}`}
: `További ${commentCount} komment${
commentCount > 1 ? ' mutatása' : ''
}`}
</span>
</div>
</div>

View file

@ -1,38 +1,38 @@
.comment_bttn {
font-size: 15px;
padding-top: 4px !important;
transition: width 0.5s, height 0.5s, ease-in 0.5s;
font-size: 15px;
padding-top: 4px !important;
transition: width 0.5s, height 0.5s, ease-in 0.5s;
}
.comment_bttn:hover {
transition: width 0.5s, height 0.5s, ease-out 0.5s;
color: gainsboro;
transition: width 0.5s, height 0.5s, ease-out 0.5s;
color: gainsboro;
}
.reply_bttn {
font-size: 15px;
margin-top: 14.5px !important;
margin-left: 6px !important;
padding-top: 4px !important;
transition: width 0.5s, height 0.5s, ease-in 0.5s;
font-size: 15px;
margin-top: 14.5px !important;
margin-left: 6px !important;
padding-top: 4px !important;
transition: width 0.5s, height 0.5s, ease-in 0.5s;
}
.reply_bttn:hover {
transition: width 0.5s, height 0.5s, ease-out 0.5s;
color: gainsboro;
transition: width 0.5s, height 0.5s, ease-out 0.5s;
color: gainsboro;
}
.delete_bttn {
font-size: 15px;
margin-top: 14.5px !important;
margin-left: 6px !important;
padding-top: 4px !important;
transition: width 0.5s, height 0.5s, ease-in 0.5s;
font-size: 15px;
margin-top: 14.5px !important;
margin-left: 6px !important;
padding-top: 4px !important;
transition: width 0.5s, height 0.5s, ease-in 0.5s;
}
.delete_bttn:hover {
transition: width 0.5s, height 0.5s, ease-out 0.5s;
color: gainsboro;
transition: width 0.5s, height 0.5s, ease-out 0.5s;
color: gainsboro;
}
.comment {

View file

@ -66,21 +66,25 @@ export default function Composer({ onSubmit }) {
setFile(e.target.files[0])
}}
/>
)}
<div id="radiolabel"><p><b>A poszt típusa:</b></p></div>
<div className={styles.typeSelector}>
<div title="A főoldalon mindenki láthatja, reagálhat rá és kommentelhet alá">
<input
onChange={(e) => {
setType(e.target.value)
}}
type="radio"
name="type"
value="public"
defaultChecked
/>
Publikus
</div>
)}
<div id="radiolabel">
<p>
<b>A poszt típusa:</b>
</p>
</div>
<div className={styles.typeSelector}>
<div title="A főoldalon mindenki láthatja, reagálhat rá és kommentelhet alá">
<input
onChange={(e) => {
setType(e.target.value)
}}
type="radio"
name="type"
value="public"
defaultChecked
/>
Publikus
</div>
<div title="Csak admin bácsi látja">
<input
onChange={(e) => {
@ -105,7 +109,7 @@ export default function Composer({ onSubmit }) {
>
Posztolás
</span>
</div>
</div>
</div>
</Modal>
)}

View file

@ -1,77 +1,81 @@
.container {
display: flex;
flex-flow: column;
max-width: 400px;
display: flex;
flex-flow: column;
max-width: 400px;
}
.container > input,
.container > textarea {
margin: 5px 0px;
padding: 4px;
width: 97%;
border-color: #5d5f61;
background-color: #1f2021;
border-radius: 5px;
font-size: 15px;
}
.container > input,
.container > textarea {
margin: 5px 0px;
padding: 4px;
width: 97%;
border-color: #5d5f61;
background-color: #1f2021;
border-radius: 5px;
font-size: 15px;
}
.container > textarea {
margin-left: 1px;
width: 99%;
resize: none;
}
.container > textarea {
margin-left: 1px;
width: 99%;
resize: none;
}
.typeSelector {
display:inline-flex;
text-align: center;
margin-left: 6px;
display: inline-flex;
text-align: center;
margin-left: 6px;
}
.typeSelector > div {
display: flex;
}
.tip {
font-size: 11px;
font-style: italic;
text-align: center;
margin: 15px 0px 2px 2px;
font-size: 11px;
font-style: italic;
text-align: center;
margin: 15px 0px 2px 2px;
}
.new {
text-align: center;
background-color: #191919;
border-radius: 3px;
cursor: pointer;
margin: 8px;
padding: 8px;
text-align: center;
background-color: #191919;
border-radius: 3px;
cursor: pointer;
margin: 8px;
padding: 8px;
}
.new:hover {
background-color: var(--hoover-color);
}
.new:hover {
background-color: var(--hoover-color);
}
.composerAction {
display: flex;
align-items: center;
justify-content: center;
width: 36%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
width: 36%;
height: 100%;
}
.composerAction > span {
margin: 2px 2px;
padding: 0px 10px;
border: 1px solid #444;
border-radius: 5px;
cursor: pointer;
user-select: none;
font-size: 15px;
margin-top: 14.5px !important;
padding-top: 4px !important;
transform: translate(109%, 10%);
transition: width 0.5s, height 0.5s, ease-in 0.5s;
}
.composerAction > span {
margin: 2px 2px;
padding: 0px 10px;
border: 1px solid #444;
border-radius: 5px;
cursor: pointer;
user-select: none;
font-size: 15px;
margin-top: 14.5px !important;
padding-top: 4px !important;
transform: translate(109%, 10%);
transition: width 0.5s, height 0.5s, ease-in 0.5s;
}
.composerAction > span:hover {
background-color: var(--hoover-color);
transition: width 0.5s, height 0.5s, ease-out 0.5s;
color: var(--text-color);
text-shadow: 2px 1.5px 10px black;
}
.composerAction > span:hover {
background-color: var(--hoover-color);
transition: width 0.5s, height 0.5s, ease-out 0.5s;
color: var(--text-color);
text-shadow: 2px 1.5px 10px black;
}

View file

@ -1,33 +1,33 @@
.container {
display: flex;
flex-flow: column;
margin-top: 8px;
margin-bottom: 0px;
margin-right: 22%;
margin-left: 22%;
padding: 5px;
display: flex;
flex-flow: column;
margin-top: 8px;
margin-bottom: 0px;
margin-right: 22%;
margin-left: 22%;
padding: 5px;
}
.listItem {
display: flex;
justify-content: center;
text-align: center;
padding-top: 10px;
padding-bottom: 10px;
margin: 3px;
cursor: pointer;
color: #a1a1a1;
transition: width 0.5s, height 0.5s, ease-in 0.5s;
display: flex;
justify-content: center;
text-align: center;
padding-top: 10px;
padding-bottom: 10px;
margin: 3px;
cursor: pointer;
color: #a1a1a1;
transition: width 0.5s, height 0.5s, ease-in 0.5s;
}
.listItem:hover {
background-color: var(--hoover-color);
transition: width 0.5s, height 0.5s, ease-out 0.5s;
text-shadow: 2px 1.5px 10px black;
color: var(--text-color);
}
.listItem:hover {
background-color: var(--hoover-color);
transition: width 0.5s, height 0.5s, ease-out 0.5s;
text-shadow: 2px 1.5px 10px black;
color: var(--text-color);
}
.text {
text-align: center;
color: gainsboro;
text-align: center;
color: gainsboro;
}

View file

@ -1,48 +1,48 @@
.modal {
z-index: 99;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
z-index: 99;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
}
.modalContent {
display: flex;
align-items: stretch;
max-height: 80%;
width: 50%;
max-width: 52%;
width: auto;
position: fixed;
background: var(--background-color);
height: auto;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 8px;
padding-top: 38px;
padding-bottom: 25px;
padding-right: 14px;
padding-left: 16px;
cursor: default;
display: flex;
align-items: stretch;
max-height: 80%;
width: 50%;
max-width: 52%;
width: auto;
position: fixed;
background: var(--background-color);
height: auto;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 8px;
padding-top: 38px;
padding-bottom: 25px;
padding-right: 14px;
padding-left: 16px;
cursor: default;
}
.close {
cursor: pointer;
font-size: 16.5px;
position: fixed;
top: 5px;
right: 10px;
margin-bottom: 10px;
text-align: right;
display: inline;
cursor: pointer;
font-size: 16.5px;
position: fixed;
top: 5px;
right: 10px;
margin-bottom: 10px;
text-align: right;
display: inline;
}
.children {
max-height: 100%;
width: 100%;
overflow-y: auto;
overflow-x: auto;
max-height: 100%;
width: 100%;
overflow-y: auto;
overflow-x: auto;
}

View file

@ -42,7 +42,7 @@ export default function NewsEntry({
onPostDelete()
}}
>
Törlés
Törlés
</span>
) : null}
<ReactButton

View file

@ -38,9 +38,9 @@
}
.user {
display: flex;
align-items: center;
margin-bottom: 12px;
display: flex;
align-items: center;
margin-bottom: 12px;
}
.newsRoot {

View file

@ -42,8 +42,8 @@
}
.reacted:hover {
background-color: #96810b !important;
color: #42423e !important;
background-color: #96810b !important;
color: #42423e !important;
}
.reactContainer {
@ -53,4 +53,4 @@
.react_bttn {
font-size: 15px;
padding-top: 3px !important;
}
}

View file

@ -13,7 +13,7 @@ export default function Sleep(props) {
border: '2px solid white',
}}
src={constants.siteUrl + 'img/aludni.jpeg'}
title="Ezt a kepet azert latod, mert ilyenkor mar igazan nem ezen az oldalon kellene jarnod"
title="Ezt a képet azert látod, mert ilyenkor már igazán nem ezen az oldalon kellene járnod"
/>
</center>
</div>