2022-09-09 11:53:35 +00:00
|
|
|
|
import { createMemo, For } from 'solid-js'
|
2022-10-19 22:16:17 +00:00
|
|
|
|
import styles from './Footer.module.scss'
|
2022-09-22 09:37:49 +00:00
|
|
|
|
import { Icon } from '../Nav/Icon'
|
2022-09-09 11:53:35 +00:00
|
|
|
|
import Subscribe from './Subscribe'
|
|
|
|
|
import { t } from '../../utils/intl'
|
2022-09-23 23:42:19 +00:00
|
|
|
|
import { locale } from '../../stores/ui'
|
2022-10-25 15:40:12 +00:00
|
|
|
|
import { clsx } from 'clsx'
|
2022-09-09 11:53:35 +00:00
|
|
|
|
|
|
|
|
|
export const Footer = () => {
|
|
|
|
|
const locale_title = createMemo(() => (locale() === 'ru' ? 'English' : 'Русский'))
|
|
|
|
|
const locale_link = createMemo(() => '?lang=' + (locale() === 'ru' ? 'en' : 'ru'))
|
|
|
|
|
const links = createMemo(() => [
|
|
|
|
|
{
|
|
|
|
|
header: 'About the project',
|
|
|
|
|
items: [
|
|
|
|
|
{
|
|
|
|
|
title: 'Manifest',
|
|
|
|
|
slug: '/about/manifest'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'How it works',
|
|
|
|
|
slug: '/about/guide'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Dogma',
|
|
|
|
|
slug: '/about/dogma'
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-11-02 21:43:38 +00:00
|
|
|
|
title: 'Principles',
|
|
|
|
|
slug: '/about/principles'
|
2022-09-09 11:53:35 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'How to write an article',
|
|
|
|
|
slug: '/how-to-write-a-good-article'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
header: 'Participating',
|
|
|
|
|
items: [
|
|
|
|
|
{
|
|
|
|
|
title: 'Suggest an idea',
|
|
|
|
|
slug: '/connect'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Become an author',
|
|
|
|
|
slug: '/create'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Support us',
|
|
|
|
|
slug: '/about/help'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Feedback',
|
|
|
|
|
slug: '/#feedback'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Work with us',
|
|
|
|
|
slug: 'https://docs.google.com/forms/d/e/1FAIpQLSeNNvIzKlXElJtkPkYiXl-jQjlvsL9u4-kpnoRjz1O8Wo40xQ/viewform'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
header: 'Sections',
|
|
|
|
|
items: [
|
|
|
|
|
{
|
|
|
|
|
title: 'Authors',
|
|
|
|
|
slug: '/authors'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Communities',
|
|
|
|
|
slug: '/community'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Partners',
|
|
|
|
|
slug: '/about/partners'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Special projects',
|
|
|
|
|
slug: '/about/projects'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: locale_title(),
|
|
|
|
|
slug: locale_link()
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
const SOCIAL = [
|
|
|
|
|
{
|
|
|
|
|
name: 'facebook',
|
|
|
|
|
href: 'https://facebook.com/discoursio'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'vk',
|
|
|
|
|
href: 'https://vk.com/discoursio'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'twitter',
|
|
|
|
|
href: 'https://twitter.com/discours_io'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'telegram',
|
|
|
|
|
href: 'https://t.me/discoursio'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
return (
|
2022-10-19 22:16:17 +00:00
|
|
|
|
<footer class={styles.discoursFooter}>
|
|
|
|
|
<div class={clsx('wide-container', styles.wideContainer)}>
|
2022-09-09 11:53:35 +00:00
|
|
|
|
<div class="row">
|
|
|
|
|
<For each={links()}>
|
|
|
|
|
{({ header, items }) => (
|
2022-10-19 22:16:17 +00:00
|
|
|
|
<div class="col-sm-4 col-md-3">
|
2022-09-09 11:53:35 +00:00
|
|
|
|
<h5>{t(header)}</h5>
|
|
|
|
|
<ul>
|
|
|
|
|
<For each={items}>
|
|
|
|
|
{({ slug, title }) => (
|
|
|
|
|
<li>
|
|
|
|
|
{' '}
|
|
|
|
|
<a href={slug}>{slug.startsWith('?') ? title : t(title)}</a>{' '}
|
|
|
|
|
</li>
|
|
|
|
|
)}
|
|
|
|
|
</For>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</For>
|
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
<h5>{t('Subscription')}</h5>
|
|
|
|
|
<p>{t('Join our maillist')}</p>
|
|
|
|
|
<Subscribe />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2022-10-19 22:16:17 +00:00
|
|
|
|
<div class={clsx(styles.footerCopyright, 'row')}>
|
|
|
|
|
<div class="col-md-9 col-lg-10">
|
2022-09-09 11:53:35 +00:00
|
|
|
|
Независимый журнал с открытой горизонтальной редакцией о культуре, науке
|
|
|
|
|
и обществе. Дискурс © 2015–2022{' '}
|
|
|
|
|
<a href="/about/terms-of-use">{t('Terms of use')}</a>
|
|
|
|
|
</div>
|
2022-10-19 22:16:17 +00:00
|
|
|
|
<div class={clsx(styles.footerCopyrightSocial, 'col-md-3 col-lg-2')}>
|
2022-09-09 11:53:35 +00:00
|
|
|
|
<For each={[...SOCIAL]}>
|
|
|
|
|
{(social) => (
|
2022-10-19 22:16:17 +00:00
|
|
|
|
<div class={clsx(styles.socialItem, styles[`socialItem${social.name}`])}>
|
2022-09-09 11:53:35 +00:00
|
|
|
|
<a href={social.href}>
|
2022-10-19 22:16:17 +00:00
|
|
|
|
<Icon name={`${social.name}-white`} class={styles.icon} />
|
2022-09-09 11:53:35 +00:00
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</For>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</footer>
|
|
|
|
|
)
|
|
|
|
|
}
|