mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Lotsa style fixes, and mobile view fix
This commit is contained in:
parent
d00c0f6406
commit
14069a289c
20 changed files with 116 additions and 107 deletions
|
@ -44,7 +44,7 @@ export default function Composer({ onSubmit }) {
|
||||||
setVal(e.target.value)
|
setVal(e.target.value)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<div className={styles.composerAction}>
|
<div className={`actions ${styles.composerAction}`}>
|
||||||
<span
|
<span
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (!title) {
|
if (!title) {
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
.container {
|
.container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
max-width: 400px;
|
|
||||||
width: 900px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.container > input,
|
.container > input,
|
||||||
|
@ -68,25 +66,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.composerAction {
|
.composerAction {
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: 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:hover {
|
.composerAction > span:hover {
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
width: 600px;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
height: 150px;
|
height: 150px;
|
||||||
resize: none;
|
resize: none;
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebarLinks > a {
|
.sidebarLinks > a {
|
||||||
|
border: 0.5px solid transparent;
|
||||||
display: block;
|
display: block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: black;
|
color: black;
|
||||||
|
|
|
@ -10,11 +10,9 @@
|
||||||
|
|
||||||
.modalContent {
|
.modalContent {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: stretch;
|
|
||||||
max-height: 80%;
|
max-height: 80%;
|
||||||
width: 50%;
|
width: 70%;
|
||||||
max-width: 52%;
|
|
||||||
width: auto;
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background: var(--background-color);
|
background: var(--background-color);
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|
|
@ -19,16 +19,16 @@ export default function NewsEntry({
|
||||||
return (
|
return (
|
||||||
<div className={styles.newsRoot}>
|
<div className={styles.newsRoot}>
|
||||||
<div
|
<div
|
||||||
className={`${styles.newsContainer} ${admin &&
|
className={`${styles.newsContainer} ${admin && styles.adminPost} ${
|
||||||
styles.adminPost} ${!admin && styles.userPost} ${uid == user &&
|
!admin && styles.userPost
|
||||||
styles.ownPost} ${uid == user && admin && styles.adminPost}`}
|
} ${uid === user && styles.ownPost} ${
|
||||||
|
uid === user && admin && styles.adminPost
|
||||||
|
}`}
|
||||||
>
|
>
|
||||||
<div className={styles.newsHeader}>
|
<div className={styles.newsHeader}>
|
||||||
<div className={styles.newsTitle}>{title}</div>
|
<div className={styles.newsTitle}>{title}</div>
|
||||||
<div className={styles.userinfo}>
|
<div>User #{user}</div>
|
||||||
<div>User #{user}</div>
|
<div className={styles.newsDate}> @ {date}</div>
|
||||||
<div className={styles.newsDate}> @ {date}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{admin ? (
|
{admin ? (
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -54,6 +54,12 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 700px) {
|
||||||
|
.newsHeader {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.userinfo {
|
.userinfo {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.todoButtons {
|
.todoButtons {
|
||||||
height: 38px;
|
|
||||||
text-wrap: normal;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.table {
|
.table {
|
||||||
min-width: 500px;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -285,9 +285,8 @@ input:focus {
|
||||||
|
|
||||||
.pageHeader {
|
.pageHeader {
|
||||||
background-color: var(--text-color);
|
background-color: var(--text-color);
|
||||||
height: 45px;
|
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
color: black !important;
|
color: black;
|
||||||
margin: 5px 0px 0px 0px;
|
margin: 5px 0px 0px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -367,31 +366,46 @@ input:focus {
|
||||||
|
|
||||||
.buttonContainer {
|
.buttonContainer {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-content: center;
|
align-items: stretch;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: 10px 0px;
|
margin: 10px 0px;
|
||||||
height: 50px;
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 700px) {
|
||||||
|
.buttonContainer {
|
||||||
|
flex-flow: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttonContainer > * {
|
.buttonContainer > * {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex: 1;
|
align-items: center;
|
||||||
background-color: var(--hoover-color);
|
width: 200px;
|
||||||
border: none;
|
height: 30px;
|
||||||
color: var(--text-color);
|
|
||||||
padding: 5px 15px;
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
|
padding: 5px 15px;
|
||||||
margin: 8px 5px 2px 5px;
|
margin: 8px 5px 2px 5px;
|
||||||
cursor: pointer;
|
|
||||||
text-shadow: 1px 1px 8px black;
|
color: var(--text-color);
|
||||||
transition: width 0.5s, height 0.5s, ease-in 0.5s;
|
border: none;
|
||||||
user-select: none;
|
background-color: var(--hoover-color);
|
||||||
|
font-weight: bold;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
user-select: none;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
text-shadow: 1px 1px 8px black;
|
||||||
|
transition: width 0.5s, height 0.5s, ease-in 0.5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 700px) {
|
||||||
|
.buttonContainer > * {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttonContainer > *:hover {
|
.buttonContainer > *:hover {
|
||||||
|
|
|
@ -141,7 +141,7 @@ export default function AllQuestions({ router }) {
|
||||||
offline használatra. (txt formátumban)
|
offline használatra. (txt formátumban)
|
||||||
</div>
|
</div>
|
||||||
<center>
|
<center>
|
||||||
<div className={`buttonContainer ${styles.dataEditor}`}>
|
<div className={'buttonContainer'}>
|
||||||
<div
|
<div
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
window.open(`${constants.siteUrl}dataeditor`, '_blank')
|
window.open(`${constants.siteUrl}dataeditor`, '_blank')
|
||||||
|
|
|
@ -3,8 +3,3 @@
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataEditor {
|
|
||||||
margin-bottom: 25px;
|
|
||||||
width: 25%;
|
|
||||||
}
|
|
||||||
|
|
|
@ -43,43 +43,41 @@ export default function contribute() {
|
||||||
olvashatsz a kategóriák tulajdonságairól.
|
olvashatsz a kategóriák tulajdonságairól.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<center>
|
<div className={`buttonContainer`}>
|
||||||
<div className={`buttonContainer ${styles.newTaskButton}`}>
|
<div
|
||||||
<div
|
onClick={() => {
|
||||||
onClick={() => {
|
setShowFeedback(true)
|
||||||
setShowFeedback(true)
|
}}
|
||||||
}}
|
>
|
||||||
>
|
Új feladat
|
||||||
Új feladat
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</center>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<hr />
|
<hr />
|
||||||
<Todos />
|
<Todos />
|
||||||
<hr />
|
<hr />
|
||||||
<div className={'subtitle'}>
|
<div className={styles.gitRepos}>
|
||||||
<b>Git repos</b>
|
<div>
|
||||||
</div>
|
<div className={'subtitle'}>
|
||||||
<div className={styles.repos} style={{ float: 'left' }} id={'gitrepo'}>
|
<b>Git repos</b>
|
||||||
{Object.keys(repos.repos).map((key) => {
|
</div>
|
||||||
let repo = repos.repos[key]
|
<div id={'gitrepo'}>
|
||||||
return (
|
{Object.keys(repos.repos).map((key) => {
|
||||||
<div key={key}>
|
let repo = repos.repos[key]
|
||||||
<ul>
|
return (
|
||||||
<li>
|
<div key={key}>
|
||||||
<a key={key} href={repo.href}>
|
<ul>
|
||||||
{repo.description}
|
<li>
|
||||||
</a>
|
<a key={key} href={repo.href}>
|
||||||
</li>
|
{repo.description}
|
||||||
</ul>
|
</a>
|
||||||
</div>
|
</li>
|
||||||
)
|
</ul>
|
||||||
})}
|
</div>
|
||||||
</div>
|
)
|
||||||
<div
|
})}
|
||||||
style={{ textAlign: 'right', marginRight: '100px', marginTop: '25px' }}
|
</div>
|
||||||
>
|
</div>
|
||||||
<img
|
<img
|
||||||
style={{ maxWidth: '100%', width: '320px' }}
|
style={{ maxWidth: '100%', width: '320px' }}
|
||||||
src={`${constants.siteUrl}img/bug.png`}
|
src={`${constants.siteUrl}img/bug.png`}
|
||||||
|
|
|
@ -11,18 +11,13 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.repos {
|
.gitRepos {
|
||||||
margin-top: 6%;
|
display: flex;
|
||||||
margin-left: 10%;
|
justify-content: space-around;
|
||||||
}
|
}
|
||||||
|
|
||||||
.repos a {
|
.gitRepos a {
|
||||||
margin: 0px 5px;
|
margin: 0px 5px;
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.newTaskButton {
|
|
||||||
width: 25%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.imgContainer {
|
.imgContainer {
|
||||||
|
|
|
@ -343,7 +343,7 @@ export default function FAQ({ router }) {
|
||||||
const page = pages[key]
|
const page = pages[key]
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`${page === currPage && 'activeButton'}`}
|
className={`${page === currPage ? 'activeButton' : ''}`}
|
||||||
key={key}
|
key={key}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setCurrPage(page)
|
setCurrPage(page)
|
||||||
|
|
|
@ -81,9 +81,12 @@ export default function Index({ globalData }) {
|
||||||
const motd = globalData.motd
|
const motd = globalData.motd
|
||||||
const [news, setNews] = useState(null)
|
const [news, setNews] = useState(null)
|
||||||
const [nextEntryKey, setNextEntryKey] = useState()
|
const [nextEntryKey, setNextEntryKey] = useState()
|
||||||
|
const [fetchingForum, setFetchingForum] = useState(false)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
setFetchingForum(true)
|
||||||
fetchForum().then((res) => {
|
fetchForum().then((res) => {
|
||||||
|
setFetchingForum(false)
|
||||||
const { entries, nextKey } = res
|
const { entries, nextKey } = res
|
||||||
setNextEntryKey(nextKey)
|
setNextEntryKey(nextKey)
|
||||||
setNews(entries)
|
setNews(entries)
|
||||||
|
@ -267,15 +270,25 @@ export default function Index({ globalData }) {
|
||||||
<div
|
<div
|
||||||
className={styles.loadMoreButton}
|
className={styles.loadMoreButton}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
if (fetchingForum) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
setFetchingForum(true)
|
||||||
fetchForum(nextEntryKey).then((res) => {
|
fetchForum(nextEntryKey).then((res) => {
|
||||||
console.log(res)
|
setFetchingForum(false)
|
||||||
|
|
||||||
const { entries, nextKey } = res
|
const { entries, nextKey } = res
|
||||||
setNextEntryKey(nextKey)
|
setNextEntryKey(nextKey)
|
||||||
setNews({ ...news, ...entries })
|
setNews({ ...news, ...entries })
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Több bejegyzés betöltése
|
{fetchingForum ? (
|
||||||
|
<LoadingIndicator />
|
||||||
|
) : (
|
||||||
|
'Több bejegyzés betöltése'
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -80,7 +80,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.loadMoreButton {
|
.loadMoreButton {
|
||||||
text-align: center;
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
background-color: var(--dark-color);
|
background-color: var(--dark-color);
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
|
@ -88,6 +91,8 @@
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
|
||||||
|
height: 50px;
|
||||||
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -136,7 +136,7 @@ export default function PwRequest({ globalData }) {
|
||||||
<span>{' ' + userCount + ' '}</span>
|
<span>{' ' + userCount + ' '}</span>
|
||||||
felhasználója van.
|
felhasználója van.
|
||||||
</div>
|
</div>
|
||||||
<div className={`buttonContainer ${styles.pwButton}`}>
|
<div className={'buttonContainer'}>
|
||||||
<div
|
<div
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
requestPw().then((res) => {
|
requestPw().then((res) => {
|
||||||
|
|
|
@ -32,7 +32,3 @@
|
||||||
.text span {
|
.text span {
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.pwButton {
|
|
||||||
width: 20% !important;
|
|
||||||
}
|
|
||||||
|
|
|
@ -63,6 +63,14 @@
|
||||||
background-color: var(--hoover-color);
|
background-color: var(--hoover-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 700px) {
|
||||||
|
.header > div > div {
|
||||||
|
height: 100px;
|
||||||
|
writing-mode: vertical-rl;
|
||||||
|
text-orientation: sideways;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.uploadContainer > div {
|
.uploadContainer > div {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -109,6 +117,10 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.title > div:nth-child(1) {
|
||||||
|
padding: 0px 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.title > div:nth-child(2) {
|
.title > div:nth-child(2) {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue