Minor style improvements on main page /on new features/

This commit is contained in:
ndaniel1102 2021-03-11 01:44:58 +01:00
parent 49eae83f81
commit cdc2b3fd66
10 changed files with 105 additions and 39 deletions

View file

@ -22,14 +22,14 @@ function CommentInput({ onSubmit, onCancel }) {
onSubmit(val) onSubmit(val)
}} }}
> >
Submit Küldés
</span> </span>
<span <span
onClick={() => { onClick={() => {
onCancel() onCancel()
}} }}
> >
Cancel Bezárás
</span> </span>
</div> </div>
</div> </div>
@ -68,20 +68,20 @@ function Comment({ comment, index, onComment, onDelete, onReact, uid }) {
<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 <span className={styles.reply_bttn}
onClick={() => { onClick={() => {
setCommenting(true) setCommenting(true)
}} }}
> >
Reply... Válasz...
</span> </span>
{own && ( {own && (
<span <span className={styles.delete_bttn}
onClick={() => { onClick={() => {
onDelete([index]) onDelete([index])
}} }}
> >
Delete Törlés
</span> </span>
)} )}
<ReactButton <ReactButton
@ -178,12 +178,12 @@ export default function Comments({
: null} : null}
{commentCount !== 0 ? ( {commentCount !== 0 ? (
<div className={'actions'}> <div className={'actions'}>
<span <span className={styles.comment_bttn}
onClick={() => { onClick={() => {
setAddingNewComment(true) setAddingNewComment(true)
}} }}
> >
New comment Új komment
</span> </span>
</div> </div>
) : null} ) : null}
@ -191,7 +191,7 @@ export default function Comments({
<CommentInput <CommentInput
onSubmit={(e) => { onSubmit={(e) => {
if (!e) { if (!e) {
alert('Írj be valamit, hogy kommentelhess...') alert('Írj be valamit a szövegdobozba, hogy kommentelhess!')
return return
} }
setAddingNewComment(false) setAddingNewComment(false)
@ -216,10 +216,10 @@ export default function Comments({
} }
}} }}
> >
<span> <span className={styles.comment_bttn}>
{commentCount === 0 {commentCount === 0
? 'New comment' ? 'Új komment'
: `Show ${commentCount} comment${commentCount > 1 ? 's' : ''}`} : `További ${commentCount} komment${commentCount > 1 ? ' mutatása' : ''}`}
</span> </span>
</div> </div>
</div> </div>

View file

@ -1,3 +1,40 @@
.comment_bttn {
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;
}
.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;
}
.reply_bttn:hover {
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;
}
.delete_bttn:hover {
transition: width 0.5s, height 0.5s, ease-out 0.5s;
color: gainsboro;
}
.comment { .comment {
margin-left: 25px; margin-left: 25px;
padding: 8px 0px; padding: 8px 0px;
@ -5,7 +42,7 @@
.commentData { .commentData {
padding: 5px 2px; padding: 5px 2px;
border-left: 2px solid var(--text-color); border-left: 3px solid azure;
} }
.commentHeader { .commentHeader {
@ -33,7 +70,7 @@
} }
.ownComment { .ownComment {
border-left: 2px solid green; border-left: 5px dotted azure;
} }
.showHide { .showHide {
@ -53,5 +90,5 @@
} }
.adminComment { .adminComment {
border-left: 2px solid yellow; border-left: 3px solid gold;
} }

View file

@ -33,7 +33,7 @@ export default function Composer({ onSubmit }) {
}} }}
className={styles.new} className={styles.new}
> >
Új bejegyzés / feedback Bejegyzés írása...
</div> </div>
{editorShowing && ( {editorShowing && (
<Modal <Modal

View file

@ -23,7 +23,7 @@ export default function NewsEntry({
<div className={styles.newsTitle}>{title}</div> <div className={styles.newsTitle}>{title}</div>
<div className={styles.user}> <div className={styles.user}>
<div>User #{user}</div> <div>User #{user}</div>
<div className={styles.newsDate}>{date}</div> <div className={styles.newsDate}> @ {date}</div>
</div> </div>
</div> </div>
{admin ? ( {admin ? (
@ -42,7 +42,7 @@ export default function NewsEntry({
onPostDelete() onPostDelete()
}} }}
> >
Delete Törlés
</span> </span>
) : null} ) : null}
<ReactButton <ReactButton

View file

@ -1,17 +1,20 @@
.newsBody { .newsBody {
margin: 0px 5px; margin: 0px 12px;
color: #fff; color: #fff;
white-space: pre-line; white-space: pre-line;
text-align: justify;
} }
.newsTitle { .newsTitle {
font-size: 20px; font-size: 25px;
color: var(--text-color); color: var(--text-color);
margin: 0px 5px; margin: 0px 11px;
padding-bottom: 10px;
} }
.newsDate { .newsDate {
margin: 0px 5px; margin-right: 12px;
margin-left: 14px;
} }
.newsContainer { .newsContainer {
@ -19,12 +22,13 @@
} }
.adminPost { .adminPost {
border-left: 2px solid yellow; border-left: 4px solid var(--text-color);
} }
.newsContainer img { .newsContainer img {
max-width: 100%; max-width: 100%;
min-width: 200px; min-width: 200px;
border: 2px solid white;
} }
.newsHeader { .newsHeader {
@ -34,12 +38,16 @@
} }
.user { .user {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 12px;
} }
.newsRoot { .newsRoot {
background-color: #191919; background-color: #191919;
margin: 8px; margin-left: 8px;
padding: 8px; margin-right: 8px;
margin-bottom: 16px;
margin-top: 16px;
padding: 10px;
} }

View file

@ -8,7 +8,7 @@ import reactions from '../data/reactions.json'
function ExistingReacts({ existingReacts, onClick, uid }) { function ExistingReacts({ existingReacts, onClick, uid }) {
return ( return (
<div className={styles.reactionContainer}> <div className={styles.reactionContainer}>
<div>React</div> <div className={styles.react_bttn}>Reakció</div>
{existingReacts && {existingReacts &&
Object.keys(existingReacts).map((key) => { Object.keys(existingReacts).map((key) => {
const currReact = existingReacts[key] const currReact = existingReacts[key]

View file

@ -1,6 +1,8 @@
.reactionContainer { .reactionContainer {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-top: 15px !important;
margin: 4px 2px;
} }
.reactionContainer > input { .reactionContainer > input {
@ -20,10 +22,13 @@
border-radius: 6px; border-radius: 6px;
cursor: pointer; cursor: pointer;
user-select: none; user-select: none;
transition: width 0.5s, height 0.5s, ease-in 0.5s;
} }
.reactionContainer > div:hover { .reactionContainer > div:hover {
background-color: var(--hoover-color); background-color: var(--hoover-color);
color: gainsboro;
transition: width 0.5s, height 0.5s, ease-out 0.5s;
} }
.break { .break {
@ -32,9 +37,20 @@
} }
.reacted { .reacted {
color: yellow; background-color: var(--text-color);
color: black;
}
.reacted:hover {
background-color: #96810b !important;
color: #42423e !important;
} }
.reactContainer { .reactContainer {
display: inline-block; display: inline-block;
} }
.react_bttn {
font-size: 15px;
padding-top: 3px !important;
}

View file

@ -299,9 +299,10 @@ input {
} }
.pageHeader h1 { .pageHeader h1 {
padding-top: 6px; padding-top: 6px;
letter-spacing: 7px; letter-spacing: 7px;
margin: 0px; text-align: center;
margin: 0px;
} }
.manualUsage { .manualUsage {

View file

@ -20,7 +20,11 @@ const links = {
manual: { manual: {
href: '/manual', href: '/manual',
text: 'A script használata', text: 'A script használata',
}, },
post: {
href: '/',
text: 'Bejegyzés írása...',
},
dataeditor: { dataeditor: {
href: '/dataeditor', href: '/dataeditor',
text: 'Kérdés szerkesztő', text: 'Kérdés szerkesztő',
@ -246,7 +250,7 @@ export default function Index({ globalData }) {
return ( return (
<div> <div>
<div className={styles.title}>Fórum</div> <div className={styles.title}>Fórum/Hírek</div>
<hr /> <hr />
<Composer <Composer
onSubmit={(type, title, content, file) => { onSubmit={(type, title, content, file) => {

View file

@ -75,14 +75,11 @@ export default function PwRequest(props) {
console.error(e) console.error(e)
} }
} }
/*removed: Az új felhasználóknak
<span>{' ' + daysAfterUserGetsPWs + ' '}</span>
napot kell várniuk, míg jelszó generálási lehetőséget kapnak.< br />*/
return ( return (
// TODO: a generált jelszó modal-on való megjelenítésének kivitelezése. // TODO: a generált jelszó modal-on való megjelenítésének kivitelezése.
// TODO: <span>{' ' + createDate}</span>-kor. rész után az oldal összes jelenlegi /* TODO: <span>{' ' + createDate}</span>-kor. rész után az oldal összes jelenlegi
//felhasználójának darabszámának megjelenítése. felhasználójának darabszámának megjelenítése.*/
<div> <div>
<Head> <Head>
<title>Jelszó generálás - Qmining | Frylabs.net</title> <title>Jelszó generálás - Qmining | Frylabs.net</title>
@ -101,6 +98,9 @@ export default function PwRequest(props) {
bővebben a Script használata oldal <a href="/manual#pw" target="_blank">vonatkozó részén</a> olvashatsz.</p> 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
<span>{' ' + daysAfterUserGetsPWs + ' '}</span>
napot kell várniuk, míg jelszó generálási lehetőséget kapnak.< br />
Egy felhasználó egyszerre 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