mirror of
https://github.com/yude-jp/yude.jp
synced 2025-01-22 11:20:10 +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
|
||||
return (
|
||||
<div className="hover:underline">
|
||||
<Link href={{ pathname: dest, query: query }}>
|
||||
<Link href={{ pathname: dest }}>
|
||||
<a>
|
||||
<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>
|
||||
|
@ -17,20 +17,24 @@ export default function HcuNews() {
|
||||
const { t } = useTranslation();
|
||||
const [query] = useLanguageQuery();
|
||||
|
||||
return(
|
||||
<Layout title={t('hcunews')}>
|
||||
<div>
|
||||
<h1>{t('hcunews')}</h1>
|
||||
{lang === 'ja' ? (
|
||||
<ReactMarkdown plugins={[gfm]}>
|
||||
{ja}
|
||||
</ReactMarkdown>
|
||||
) : (
|
||||
<ReactMarkdown plugins={[gfm]}>
|
||||
{en}
|
||||
</ReactMarkdown>
|
||||
)}
|
||||
</div>
|
||||
</Layout>
|
||||
)
|
||||
}
|
||||
if (!query) {
|
||||
return <p>Loading...</p>
|
||||
} else {
|
||||
return (
|
||||
<Layout title={t('hcunews')}>
|
||||
<div>
|
||||
<h1>{t('hcunews')}</h1>
|
||||
{query["lang"] === 'ja' ? (
|
||||
<ReactMarkdown plugins={[gfm]}>
|
||||
{ja}
|
||||
</ReactMarkdown>
|
||||
) : (
|
||||
<ReactMarkdown plugins={[gfm]}>
|
||||
{en}
|
||||
</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) {
|
||||
const { t } = useTranslation();
|
||||
const [query] = useLanguageQuery();
|
||||
|
||||
return(
|
||||
<Layout title={t('tos')}>
|
||||
<div>
|
||||
{lang === 'ja' ? (
|
||||
<ReactMarkdown plugins={[gfm]}>
|
||||
{ja}
|
||||
</ReactMarkdown>
|
||||
) : (
|
||||
<ReactMarkdown plugins={[gfm]}>
|
||||
{en}
|
||||
</ReactMarkdown>
|
||||
)}
|
||||
</div>
|
||||
</Layout>
|
||||
)
|
||||
}
|
||||
|
||||
if (!query) {
|
||||
return <p>Loading...</p>
|
||||
} else {
|
||||
return (
|
||||
<Layout title={t('tos')}>
|
||||
<div>
|
||||
{query["lang"] === 'ja' ? (
|
||||
<ReactMarkdown plugins={[gfm]}>
|
||||
{ja}
|
||||
</ReactMarkdown>
|
||||
) : (
|
||||
<ReactMarkdown plugins={[gfm]}>
|
||||
{en}
|
||||
</ReactMarkdown>
|
||||
)}
|
||||
</div>
|
||||
</Layout>
|
||||
)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user