-
Notifications
You must be signed in to change notification settings - Fork 0
/
Footer.jsx
36 lines (34 loc) · 1.3 KB
/
Footer.jsx
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
import React, { useEffect, useState } from 'react'
const Footer = ({ footerAPI: { titles, links } }) => {
const [Year, setYear] = useState();
useEffect(() => {
const getYear = () => setYear(new Date().getFullYear());
getYear();
}, []);
return (
<>
<footer className='bg-theme pt-7 pb-5'>
<div className='nike-container text-slate-200'>
<div className='grid items-start grid-cols-3 max-w-2xl w-full m-auto md:max-w-none md:gap-5'>
{titles.map((val, i) => (
<div key={i} className="grid items-center">
<h1 className='text-lg lg:text-base md:text-sm uppercase font-semibold'>{val.title}</h1>
</div>
))}
{links.map((list, i) => (
<ul key={i} className="grid items-center gap-1">
{list.map((link, i) => (
<li key={i} className="text-sm sm:text-xs">{link.link}</li>
))}
</ul>
))}
</div>
<div className='mt-5 text-center'>
<p className='text-sm md:text-center'>Copyright<sup className='text-base font-bold'>©</sup> All Reserved Rights <span className='font-semibold'>JSSTACK DEVELOPERS {Year}</span></p>
</div>
</div>
</footer>
</>
)
}
export default Footer