Skip to content

Commit 5a7fd90

Browse files
committed
fix: social layout
1 parent e94beb0 commit 5a7fd90

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

src/components/Footer/Footer.js

+28-9
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,38 @@ const Footer = () => {
3030
<Heading size='lg' className={`mb-12`}>
3131
Build whatever with Celestia underneath
3232
</Heading>
33+
<div className='flex flex-row lg:justify-start gap-4 mb-8'>
34+
{columns[columns.length - 1].links.map((link, linkIndex) => {
35+
const isInternal = isInternalLink(link.url);
36+
return (
37+
<Link
38+
key={linkIndex}
39+
href={link.url}
40+
target={isInternal ? "_self" : "_blank"}
41+
rel={isInternal ? "" : "noopener noreferrer"}
42+
className={`flex items-center group`}
43+
>
44+
{link.icon && (
45+
<Icon
46+
Icon={<link.icon dark />}
47+
hover
48+
HoverIcon={<link.icon dark className='opacity-50' />}
49+
size='sm'
50+
border={false}
51+
transparentBg
52+
direction='up'
53+
/>
54+
)}
55+
</Link>
56+
);
57+
})}
58+
</div>
3359
{/* <Newsletter /> */}
3460
</div>
3561
<div className={`flex flex-wrap lg:flex-nowrap w-full lg:1/2 lg:gap-6 lg:justify-end ml-auto mr-0`}>
36-
{columns.map((column, index) => {
62+
{columns.slice(0, -1).map((column, index) => {
3763
return (
38-
<ul
39-
key={index}
40-
className={`block ${
41-
index === columns.length - 1
42-
? "w-full flex flex-row justify-center lg:justify-end gap-4 order-last lg:order-none lg:flex-col lg:w-auto"
43-
: "w-1/2 lg:w-1/5"
44-
} ${index === columns.length - 1 ? "" : "mb-10 lg:mb-0"}`}
45-
>
64+
<ul key={index} className={`block w-1/2 lg:w-1/5 mb-10 lg:mb-0`}>
4665
{column.links.map((link, linkIndex) => {
4766
const isInternal = isInternalLink(link.url);
4867
return (

0 commit comments

Comments
 (0)