footer-loc-fix

This commit is contained in:
Untone 2024-06-25 18:30:45 +03:00
parent d002a494e8
commit 0a193d340a

View File

@ -14,70 +14,70 @@ export const Footer = () => {
const changeLangLink = createMemo(() => `?lng=${lang() === 'ru' ? 'en' : 'ru'}`) const changeLangLink = createMemo(() => `?lng=${lang() === 'ru' ? 'en' : 'ru'}`)
const links = createMemo(() => [ const links = createMemo(() => [
{ {
header: 'About the project', header: t('About the project'),
items: [ items: [
{ {
title: 'Discours Manifest', title: t('Discours Manifest'),
slug: '/about/manifest', slug: '/about/manifest',
}, },
{ {
title: 'How it works', title: t('How it works'),
slug: '/about/guide', slug: '/about/guide',
}, },
{ {
title: 'Dogma', title: t('Dogma'),
slug: '/about/dogma', slug: '/about/dogma',
}, },
{ {
title: 'Principles', title: t('Principles'),
slug: '/about/principles', slug: '/about/principles',
}, },
{ {
title: 'How to write an article', title: t('How to write an article'),
slug: '/how-to-write-a-good-article', slug: '/how-to-write-a-good-article',
}, },
], ],
}, },
{ {
header: 'Participating', header: t('Participating'),
items: [ items: [
{ {
title: 'Suggest an idea', title: t('Suggest an idea'),
slug: '/connect', slug: '/connect',
}, },
{ {
title: 'Become an author', title: t('Become an author'),
slug: '/create', slug: '/create',
}, },
{ {
title: 'Support Discours', title: t('Support Discours'),
slug: '/about/help', slug: '/about/help',
}, },
{ {
title: 'Work with us', title: t('Work with us'),
slug: 'https://docs.google.com/forms/d/e/1FAIpQLSeNNvIzKlXElJtkPkYiXl-jQjlvsL9u4-kpnoRjz1O8Wo40xQ/viewform', slug: 'https://docs.google.com/forms/d/e/1FAIpQLSeNNvIzKlXElJtkPkYiXl-jQjlvsL9u4-kpnoRjz1O8Wo40xQ/viewform',
}, },
], ],
}, },
{ {
header: 'Sections', header: t('Sections'),
items: [ items: [
{ {
title: 'Authors', title: t('Authors'),
slug: '/authors', slug: '/authors',
}, },
{ {
title: 'Communities', title: t('Communities'),
slug: '/community', slug: '/community',
}, },
{ {
title: 'Partners', title: t('Partners'),
slug: '/about/partners', slug: '/about/partners',
}, },
{ {
title: 'Special projects', title: t('Special projects'),
slug: '/about/projects', slug: '/about/projects',
}, },
{ {
@ -114,14 +114,14 @@ export const Footer = () => {
<For each={links()}> <For each={links()}>
{({ header, items }) => ( {({ header, items }) => (
<div class="col-sm-8 col-md-6"> <div class="col-sm-8 col-md-6">
<h5>{t(header)}</h5> <h5>{header}</h5>
<ul> <ul>
<For each={items}> <For each={items}>
{({ slug, title, ...rest }) => ( {({ slug, title, ...rest }) => (
<li> <li>
{' '} {' '}
<a href={slug} {...rest}> <a href={slug} {...rest}>
{t(title)} {title}
</a>{' '} </a>{' '}
</li> </li>
)} )}