forked from crank-fan-sites/crank-social-media-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site-footer.tsx
127 lines (120 loc) · 4.25 KB
/
site-footer.tsx
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
import Link from "next/link";
import Image from "next/image";
import { siteConfig } from "@/config/site";
import { buttonVariants } from "@/components/ui/button";
import { Icons } from "./icons";
import { ThemeToggle } from "@/components/theme-toggle";
// import Newsletter from "@/components/newsletter";
import { useTheme } from "next-themes";
import { links } from "@/lib/links";
import { HeadingH6 } from "./typography";
import FooterLinks from "@/components/layout/footer-links";
export function SiteFooter({ title, footerLinks }: { footerLinks: any[] }) {
const { theme } = useTheme();
return (
<footer className="w-full border-t border-b bg-primary border-stone-400 dark:border-stone-600">
<div className="flex flex-col md:flex-row">
<div className="w-full px-2 py-12 md:w-7/12 md:px-4 md:border-r border-stone-400 dark:border-stone-600">
<HeadingH6>Links</HeadingH6>
<div className="grid grid-cols-1 gap-y-2">
<FooterLinks links={footerLinks} />
</div>
</div>
<div className="w-full px-2 py-12 md:w-5/12 md:px-4">
<div className="flex flex-col items-center justify-center my-12 gap-y-6">
<small>socials</small>
<div className="flex items-center justify-center space-x-1">
<Link
href={siteConfig.links.facebook}
target="_blank"
rel="noreferrer"
>
<div
className={buttonVariants({
size: "icon",
variant: "ghost",
})}
>
<Icons.facebook
className="w-5 h-5 fill-current"
strokeWidth="1.5"
/>
<span className="sr-only">Facebook</span>
</div>
</Link>
<Link
href={siteConfig.links.instagram}
target="_blank"
rel="noreferrer"
>
<div
className={buttonVariants({
size: "icon",
variant: "ghost",
})}
>
<Icons.instagram className="w-5 h-5" strokeWidth="1.5" />
<span className="sr-only">Instagram</span>
</div>
</Link>
<Link
href={siteConfig.links.twitch}
target="_blank"
rel="noreferrer"
>
<div
className={buttonVariants({
size: "icon",
variant: "ghost",
})}
>
<Icons.twitch className="w-5 h-5" strokeWidth="1.5" />
<span className="sr-only">Twitch</span>
</div>
</Link>
<Link
href={siteConfig.links.twitter}
target="_blank"
rel="noreferrer"
>
<div
className={buttonVariants({
size: "icon",
variant: "ghost",
})}
>
<Icons.twitter
className="w-5 h-5 fill-current"
strokeWidth="1.5"
/>
<span className="sr-only">Twitter</span>
</div>
</Link>
<Link
href={siteConfig.links.youtube}
target="_blank"
rel="noreferrer"
>
<div
className={buttonVariants({
size: "icon",
variant: "ghost",
})}
>
<Icons.youtube className="w-5 h-5" strokeWidth="1.5" />
<span className="sr-only">YouTube</span>
</div>
</Link>
</div>
</div>
</div>
</div>
<div className="flex flex-col items-center justify-between p-4 border-t md:py-0 md:ps-0 md:flex-row border-stone-400 dark:border-stone-600">
<ThemeToggle />
<small>
©{new Date().getFullYear()} {title}, all rights reserved
</small>
</div>
</footer>
);
}