Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: aligned documentation and license in footer #1954

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 18 additions & 26 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function Footer() {
]

return (
< footer className="border-t border-gray-800 " >
<footer className="border-t border-gray-800">
<div className="mx-auto max-w-screen-xl pt-16 sm:px-4 sm:pb-[5.65rem] lg:px-8 lg:pb-8">
<div className="mt-16 grid grid-cols-1 gap-8 lg:grid-cols-2 lg:gap-32">
<div className="mx-auto max-w-sm lg:max-w-none">
Expand All @@ -93,16 +93,11 @@ function Footer() {
{footerLink.icon}
</Link>
</li>

))}


</div>
</div>

<div
className="grid grid-cols-1 gap-8 text-center lg:grid-cols-2 lg:text-left"
>
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2 lg:text-left">
{/* for footer docs links */}
<ul className="font-medium text-gray-200 pt-5">
{footerdocsLinks.map((section, index) => (
Expand All @@ -119,24 +114,21 @@ function Footer() {
))}
</ul>

<div>

{/* for footer service links */}
<ul className="font-medium text-gray-200">
{footerServiceLinks.map((section, index) => (
<div key={index}>
<h3 className="text-xl font-extrabold mt-10 mb-4 text-gray-200">{section.title}</h3>
<ul>
{section.child.map((link, linkIndex) => (
<li key={linkIndex} className="pt-2">
<Link href={link.link} className="hover:text-primary " rel="noopener noreferrer" target="_blank" aria-label="footer service link">{link.name}</Link>
</li>
))}
</ul>
</div>
))}
</ul>
</div>
{/* for footer service links */}
<ul className="font-medium text-gray-200">
{footerServiceLinks.map((section, index) => (
<div key={index}>
<h3 className="text-xl font-extrabold mt-4 mb-4 text-gray-200">{section.title}</h3>
<ul>
{section.child.map((link, linkIndex) => (
<li key={linkIndex} className="pt-2">
<Link href={link.link} className="hover:text-primary " rel="noopener noreferrer" target="_blank" aria-label="footer service link">{link.name}</Link>
</li>
))}
</ul>
</div>
))}
</ul>
</div>
</div>

Expand All @@ -146,7 +138,7 @@ function Footer() {
</p>
</div>
</div>
</footer >
</footer>

);
}
Expand Down