diff --git a/src/components/composer.js b/src/components/composer.js index a2c73ef..b0ffa18 100644 --- a/src/components/composer.js +++ b/src/components/composer.js @@ -44,7 +44,7 @@ export default function Composer({ onSubmit }) { setVal(e.target.value) }} /> -
+
{ if (!title) { diff --git a/src/components/composer.module.css b/src/components/composer.module.css index 743d7bd..01ec2f7 100644 --- a/src/components/composer.module.css +++ b/src/components/composer.module.css @@ -1,8 +1,6 @@ .container { display: flex; flex-flow: column; - max-width: 400px; - width: 900px; } .container > input, @@ -68,25 +66,7 @@ } .composerAction { - 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:hover { diff --git a/src/components/feedbackArea.module.css b/src/components/feedbackArea.module.css index bdaf3fd..02fd1c3 100644 --- a/src/components/feedbackArea.module.css +++ b/src/components/feedbackArea.module.css @@ -2,7 +2,6 @@ color: var(--text-color); background-color: var(--background-color); font-size: 14px; - width: 600px; box-sizing: border-box; height: 150px; resize: none; diff --git a/src/components/layout.module.css b/src/components/layout.module.css index d3134b9..441db20 100644 --- a/src/components/layout.module.css +++ b/src/components/layout.module.css @@ -20,6 +20,7 @@ } .sidebarLinks > a { + border: 0.5px solid transparent; display: block; text-align: center; color: black; diff --git a/src/components/modal.module.css b/src/components/modal.module.css index 99f68fc..8c55777 100644 --- a/src/components/modal.module.css +++ b/src/components/modal.module.css @@ -10,11 +10,9 @@ .modalContent { display: flex; - align-items: stretch; + max-height: 80%; - width: 50%; - max-width: 52%; - width: auto; + width: 70%; position: fixed; background: var(--background-color); height: auto; diff --git a/src/components/newsEntry.js b/src/components/newsEntry.js index 499c7db..5d59522 100644 --- a/src/components/newsEntry.js +++ b/src/components/newsEntry.js @@ -19,16 +19,16 @@ export default function NewsEntry({ return (
{title}
-
-
User #{user}
-
@ {date}
-
+
User #{user}
+
@ {date}
{admin ? (
* { display: flex; - align-items: center; justify-content: center; - flex: 1; - background-color: var(--hoover-color); - border: none; - color: var(--text-color); - padding: 5px 15px; - font-weight: bold; + align-items: center; + width: 200px; + height: 30px; + font-size: 15px; + padding: 5px 15px; margin: 8px 5px 2px 5px; - cursor: pointer; - text-shadow: 1px 1px 8px black; - transition: width 0.5s, height 0.5s, ease-in 0.5s; - user-select: none; + + color: var(--text-color); + border: none; + background-color: var(--hoover-color); + font-weight: bold; cursor: pointer; text-align: center; + user-select: 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 { diff --git a/src/pages/allQuestions.js b/src/pages/allQuestions.js index e3f99c4..a43edc1 100644 --- a/src/pages/allQuestions.js +++ b/src/pages/allQuestions.js @@ -141,7 +141,7 @@ export default function AllQuestions({ router }) { offline használatra. (txt formátumban)
-
+
{ window.open(`${constants.siteUrl}dataeditor`, '_blank') diff --git a/src/pages/allQuestions.module.css b/src/pages/allQuestions.module.css index ef21745..63e5a72 100644 --- a/src/pages/allQuestions.module.css +++ b/src/pages/allQuestions.module.css @@ -3,8 +3,3 @@ font-style: italic; padding-top: 5px; } - -.dataEditor { - margin-bottom: 25px; - width: 25%; -} diff --git a/src/pages/contribute.js b/src/pages/contribute.js index 85c6b00..a478b40 100644 --- a/src/pages/contribute.js +++ b/src/pages/contribute.js @@ -43,43 +43,41 @@ export default function contribute() { olvashatsz a kategóriák tulajdonságairól.

-
-
-
{ - setShowFeedback(true) - }} - > - Új feladat -
+
+
{ + setShowFeedback(true) + }} + > + Új feladat
-
+



-
- Git repos -
-
- {Object.keys(repos.repos).map((key) => { - let repo = repos.repos[key] - return ( - - ) - })} -
-
+
+
+
+ Git repos +
+
+ {Object.keys(repos.repos).map((key) => { + let repo = repos.repos[key] + return ( + + ) + })} +
+
{ setCurrPage(page) diff --git a/src/pages/index.js b/src/pages/index.js index 9f74abd..268a176 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -81,9 +81,12 @@ export default function Index({ globalData }) { const motd = globalData.motd const [news, setNews] = useState(null) const [nextEntryKey, setNextEntryKey] = useState() + const [fetchingForum, setFetchingForum] = useState(false) useEffect(() => { + setFetchingForum(true) fetchForum().then((res) => { + setFetchingForum(false) const { entries, nextKey } = res setNextEntryKey(nextKey) setNews(entries) @@ -267,15 +270,25 @@ export default function Index({ globalData }) {
{ + if (fetchingForum) { + return + } + + setFetchingForum(true) fetchForum(nextEntryKey).then((res) => { - console.log(res) + setFetchingForum(false) + const { entries, nextKey } = res setNextEntryKey(nextKey) setNews({ ...news, ...entries }) }) }} > - Több bejegyzés betöltése + {fetchingForum ? ( + + ) : ( + 'Több bejegyzés betöltése' + )}
)}
diff --git a/src/pages/index.module.css b/src/pages/index.module.css index b5f7f9b..41ebf2d 100644 --- a/src/pages/index.module.css +++ b/src/pages/index.module.css @@ -80,7 +80,10 @@ } .loadMoreButton { - text-align: center; + display: flex; + justify-content: center; + align-items: center; + background-color: var(--dark-color); margin-left: 8px; margin-right: 8px; @@ -88,6 +91,8 @@ margin-top: 16px; padding: 10px; + height: 50px; + cursor: pointer; } diff --git a/src/pages/pwRequest.js b/src/pages/pwRequest.js index 071689f..58a3800 100644 --- a/src/pages/pwRequest.js +++ b/src/pages/pwRequest.js @@ -136,7 +136,7 @@ export default function PwRequest({ globalData }) { {' ' + userCount + ' '} felhasználója van.
-
+
{ requestPw().then((res) => { diff --git a/src/pages/pwRequest.module.css b/src/pages/pwRequest.module.css index e29649e..21391bd 100644 --- a/src/pages/pwRequest.module.css +++ b/src/pages/pwRequest.module.css @@ -32,7 +32,3 @@ .text span { color: var(--text-color); } - -.pwButton { - width: 20% !important; -} diff --git a/src/pages/userfiles.module.css b/src/pages/userfiles.module.css index ddbfff9..24319b5 100644 --- a/src/pages/userfiles.module.css +++ b/src/pages/userfiles.module.css @@ -63,6 +63,14 @@ 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 { padding: 5px; text-align: center; @@ -109,6 +117,10 @@ align-items: center; } +.title > div:nth-child(1) { + padding: 0px 16px; +} + .title > div:nth-child(2) { flex: 1; }