aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Footer.svelte
blob: bf8b88108a5a8410f2ad990c24c94864f44b7482 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<script>
	import { Icon, LocaleSelector } from '$comp';
	import { t } from '$lib/translations';

	const followLinks = [
		{ url: 'https://twitter.com/coinoswallet', titleID: 'twitter' },
		{ url: 'https://github.com/coinos', titleID: 'github' },
		{ url: 'https://t.me/coinos', titleID: 'telegram' }
	];

	const companyLinks = [
		{ url: '/news', titleID: 'news' },
		{ url: '/support', titleID: 'support' },
		{ url: '/jobs', titleID: 'jobs' }
	];
</script>

<footer class="space-y-10 md:space-y-0 text-xl block md:flex justify-around items-center mb-20">
	<div>
		<div class="text-center w-full mb-8">
      <a href="/"><img src="/icons/logo.webp" class="w-20" /></a>
		</div>
		<div class="text-center">
			<LocaleSelector style="p-2 rounded-md text-center hover:opacity-80 cursor-pointer" />
		</div>
	</div>

	<div class="text-center md:text-left">
		<p class="font-semibold">{$t('footer.followUs')}</p>
		<ul class="mt-5 text-secondary space-y-3 font-medium">
			{#each followLinks as link}
				<li>
					<a href={link.url} target="_blank" rel="noreferrer" class="hover:opacity-80"
						>{$t('footer.' + link.titleID)}</a
					>
				</li>
			{/each}
		</ul>
	</div>

	<div class="text-center md:text-left">
		<p class="font-semibold">{$t('footer.company')}</p>
		<ul class="mt-5 text-secondary space-y-3">
			{#each companyLinks as link}
				<li><a href={link.url} class="hover:opacity-80">{$t('footer.' + link.titleID)}</a></li>
			{/each}
		</ul>
	</div>

	<Icon icon="shield" style="mx-auto md:mx-0" />
</footer>