-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathFooter.njs
More file actions
59 lines (54 loc) · 2.17 KB
/
Footer.njs
File metadata and controls
59 lines (54 loc) · 2.17 KB
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
52
53
54
55
56
57
58
59
import Translatable from './Translatable';
import GitHub from "../icons/GitHub";
import YouTube from "../icons/YouTube";
import Twitter from "../icons/Twitter";
import Discord from "../icons/Discord";
import LinkedIn from '../icons/LinkedIn.njs';
class Footer extends Translatable {
renderLink({ href, icon: Icon, title }) {
return (
<a
href={href}
title={title}
target="_blank"
rel="noopener"
class="text-pink-600 hover:text-white h-12 w-12 flex items-center justify-center"
>
<Icon size={45} />
</a>
)
}
render() {
if (!this.i18n) return false
return (
<footer class="flex flex-wrap w-full justify-center relative">
<div class="w-full relative flex justify-center h-80 bg-70 hover:bg-100 bg-bottom bg-no-repeat" style="background-image: url(/stars.webp); transition: background-size 3s;">
<img src="/footer.webp" alt="Nulla-Chan" class="absolute bottom-0" />
</div>
<div class="bg-gray-800 w-full py-4 flex-wrap">
<nav class="w-full flex items-center justify-center space-x-1">
<Link href="https://twitter.com/nullstackapp" title="Twitter" icon={Twitter} />
<Link href="https://github.com/nullstack/nullstack" title="Github" icon={GitHub} />
<Link href="https://discord.gg/eDZfKz264v" title="Discord" icon={Discord} />
<Link href="https://www.youtube.com/nullstack" title="Youtube" icon={YouTube} />
<Link href="https://www.linkedin.com/company/nullstack-app" title="LinkedIn" icon={LinkedIn} />
</nav>
<nav class="w-full flex flex-wrap items-center justify-center space-x-1">
<p class="text-center mt-3 w-full text-gray-400 px-6">
{this.i18n.star.story}
</p>
<a
href="https://github.com/nullstack/nullstack/stargazers"
class="text-white flex flex-wrap text-xl text-center"
target="_blank"
rel="noopener"
>
<span class="block w-full">{this.i18n.star.action}</span>
</a>
</nav>
</div>
</footer>
)
}
}
export default Footer;