Skip to content

Commit

Permalink
style: footer alignment in mobile view (#118)
Browse files Browse the repository at this point in the history
* footer modified

* Replaced gap with horizontal padding

* Removed commented code

---------

Co-authored-by: Anurag Gupta <[email protected]>
  • Loading branch information
psankhe28 and anuragxxd authored Mar 26, 2024
1 parent dca20b7 commit f46a875
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ function Footer() {
];

const renderFooterLinks = () => (
<div className="px-0 md:px-10 flex flex-wrap text-base justify-between md:justify-end">
<div className="px-0 md:px-10 flex flex-wrap text-base justify-center md:justify-start 2xl:justify-end">
{footers.map((footer) => (
<div
className="space-y-1.5 md:space-y-3 py-3 md:py-0 mx-10 md:mx-50"
className="px-8 py-3 md:py-0 md:mx-4 2xl:mx-50 md:my-4"
key={footer.title}
>
<div className="text-sm md:text-lg md:font-semibold">
Expand Down Expand Up @@ -181,7 +181,9 @@ function Footer() {
</span>
</a>
</div>
<div className="mt-4 md:mt-0 flex-grow">{renderFooterLinks()}</div>
<div className="mt-4 md:mt-0 flex-grow text-center">
{renderFooterLinks()}
</div>
</div>
<div className="text-[0.5rem] text-gray-700 text-right -mt-5 absolute bottom-0 md:right-64 right-5">
Icons by <a href="https://icons8.com/">icons8.com</a>
Expand Down

0 comments on commit f46a875

Please sign in to comment.