mirror of
https://github.com/yude-jp/yude.jp
synced 2025-03-23 16:27:28 +09:00
Fix misc errors
This commit is contained in:
parent
a8321b6c60
commit
1f7456db3c
@ -8,7 +8,7 @@ const Contact = (props) => {
|
|||||||
const { icon, dest, caption } = props
|
const { icon, dest, caption } = props
|
||||||
return (
|
return (
|
||||||
<div className="hover:underline">
|
<div className="hover:underline">
|
||||||
<Link href={{ pathname: dest, query: query }}>
|
<Link href={{ pathname: dest }}>
|
||||||
<a>
|
<a>
|
||||||
<FontAwesomeIcon icon={icon} className="w-7 h-7 inline lg:w-10 lg:h-10 md:w-7 md:h-7"/>
|
<FontAwesomeIcon icon={icon} className="w-7 h-7 inline lg:w-10 lg:h-10 md:w-7 md:h-7"/>
|
||||||
<p className="font-mono text-xl">{caption}</p>
|
<p className="font-mono text-xl">{caption}</p>
|
||||||
|
@ -17,20 +17,24 @@ export default function HcuNews() {
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const [query] = useLanguageQuery();
|
const [query] = useLanguageQuery();
|
||||||
|
|
||||||
return(
|
if (!query) {
|
||||||
<Layout title={t('hcunews')}>
|
return <p>Loading...</p>
|
||||||
<div>
|
} else {
|
||||||
<h1>{t('hcunews')}</h1>
|
return (
|
||||||
{lang === 'ja' ? (
|
<Layout title={t('hcunews')}>
|
||||||
<ReactMarkdown plugins={[gfm]}>
|
<div>
|
||||||
{ja}
|
<h1>{t('hcunews')}</h1>
|
||||||
</ReactMarkdown>
|
{query["lang"] === 'ja' ? (
|
||||||
) : (
|
<ReactMarkdown plugins={[gfm]}>
|
||||||
<ReactMarkdown plugins={[gfm]}>
|
{ja}
|
||||||
{en}
|
</ReactMarkdown>
|
||||||
</ReactMarkdown>
|
) : (
|
||||||
)}
|
<ReactMarkdown plugins={[gfm]}>
|
||||||
</div>
|
{en}
|
||||||
</Layout>
|
</ReactMarkdown>
|
||||||
)
|
)}
|
||||||
}
|
</div>
|
||||||
|
</Layout>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
38
pages/tos.js
38
pages/tos.js
@ -17,20 +17,24 @@ import en from '../docs/tos/en.md'
|
|||||||
export default function Tos(props) {
|
export default function Tos(props) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const [query] = useLanguageQuery();
|
const [query] = useLanguageQuery();
|
||||||
|
|
||||||
return(
|
if (!query) {
|
||||||
<Layout title={t('tos')}>
|
return <p>Loading...</p>
|
||||||
<div>
|
} else {
|
||||||
{lang === 'ja' ? (
|
return (
|
||||||
<ReactMarkdown plugins={[gfm]}>
|
<Layout title={t('tos')}>
|
||||||
{ja}
|
<div>
|
||||||
</ReactMarkdown>
|
{query["lang"] === 'ja' ? (
|
||||||
) : (
|
<ReactMarkdown plugins={[gfm]}>
|
||||||
<ReactMarkdown plugins={[gfm]}>
|
{ja}
|
||||||
{en}
|
</ReactMarkdown>
|
||||||
</ReactMarkdown>
|
) : (
|
||||||
)}
|
<ReactMarkdown plugins={[gfm]}>
|
||||||
</div>
|
{en}
|
||||||
</Layout>
|
</ReactMarkdown>
|
||||||
)
|
)}
|
||||||
}
|
</div>
|
||||||
|
</Layout>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user