mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Layout active tab highlight, textarea styling
This commit is contained in:
parent
c5d6518ceb
commit
dd0ad7731b
5 changed files with 15 additions and 5 deletions
|
@ -3,9 +3,8 @@ import Link from 'next/link'
|
||||||
import tabs from '../data/tabs.json'
|
import tabs from '../data/tabs.json'
|
||||||
import constants from '../constants.json'
|
import constants from '../constants.json'
|
||||||
|
|
||||||
// TODO: activelink prop to set link to active
|
|
||||||
export default function Layout (props) {
|
export default function Layout (props) {
|
||||||
const href = '' // TODO
|
const { route } = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
@ -25,7 +24,7 @@ export default function Layout (props) {
|
||||||
return (
|
return (
|
||||||
<Link href={item.href} key={key} >
|
<Link href={item.href} key={key} >
|
||||||
<a
|
<a
|
||||||
className={href.includes(key) ? 'active' : ''}
|
className={route.includes(key) ? 'active' : ''}
|
||||||
>{item.text}</a>
|
>{item.text}</a>
|
||||||
</Link>
|
</Link>
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
"href": "install",
|
"href": "install",
|
||||||
"text": "Install"
|
"text": "Install"
|
||||||
},
|
},
|
||||||
|
"allqr": {
|
||||||
|
"href": "allqr.txt",
|
||||||
|
"text": "Összes kérdés TXT"
|
||||||
|
},
|
||||||
"data": {
|
"data": {
|
||||||
"href": "data.json",
|
"href": "data.json",
|
||||||
"text": "Összes kérdés JSON"
|
"text": "Összes kérdés JSON"
|
||||||
|
|
|
@ -15,6 +15,12 @@ body {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.feedbackArea {
|
||||||
|
color: var(--text-color);
|
||||||
|
background-color: var(--background-color);
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
.sidebarLink {
|
.sidebarLink {
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
import '../defaultStyles.css'
|
import '../defaultStyles.css'
|
||||||
import Layout from '../components/layout'
|
import Layout from '../components/layout'
|
||||||
|
|
||||||
function MyApp ({ Component, pageProps }) {
|
function MyApp ({ Component, pageProps, router }) {
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout route={router.route}>
|
||||||
<Component {...pageProps} />
|
<Component {...pageProps} />
|
||||||
</Layout>
|
</Layout>
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,6 +8,7 @@ export default function Feedback (props) {
|
||||||
<form action={constants.serverUrl + 'postfeedback'} method='post'>
|
<form action={constants.serverUrl + 'postfeedback'} method='post'>
|
||||||
<div>Észrevételek: (közeledő teszt miatti kérdés-karbantartás, bug, feature vagy egyéb dolog, ami nyomja a lelked)</div>
|
<div>Észrevételek: (közeledő teszt miatti kérdés-karbantartás, bug, feature vagy egyéb dolog, ami nyomja a lelked)</div>
|
||||||
<textarea
|
<textarea
|
||||||
|
className='feedbackArea'
|
||||||
type='text'
|
type='text'
|
||||||
name='message_field'
|
name='message_field'
|
||||||
style={{
|
style={{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue