import { createMemo, For } from 'solid-js' import './Footer.scss' import Icon from '../Nav/Icon' import Subscribe from './Subscribe' import { t } from '../../utils/intl' import { locale as locstore } from '../../stores/ui' import { useStore } from '@nanostores/solid' export const Footer = () => { const locale = useStore(locstore) 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' }, { title: 'Terms of use', slug: '/about/terms-of-use' }, { 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 ( ) }