Skip to content

Commit

Permalink
fix-#379: Enhancing the footer by including GitHub and Discord for be…
Browse files Browse the repository at this point in the history
…tter feedback (#430)
  • Loading branch information
krishnaacharyaa authored Jun 25, 2024
2 parents 046c422 + 2674fb6 commit c9cdade
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 6 deletions.
6 changes: 6 additions & 0 deletions frontend/src/assets/svg/discor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions frontend/src/assets/svg/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 30 additions & 6 deletions frontend/src/layouts/footer-layout.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,38 @@
import GitHub_Icon from '@/assets/svg/github.svg';
import Discord_Icon from '@/assets/svg/discor.svg';
function footer() {
const newDate = new Date();
const year = newDate.getFullYear();

return (
<footer className="flex min-h-[6vh] flex-col items-center bg-zinc-900 py-2 text-center text-white sm:flex-row sm:justify-between sm:py-3">
<section className="text-base sm:pl-4 sm:pl-8 lg:pl-16">WanderLust</section>
<section className="text-base sm:pr-16 sm:pr-4 lg:pr-24">
<span className="mr-2">&copy;</span>
{year} All Rights Reserved
</section>
<footer className="flex min-h-[6vh] flex-col items-center bg-zinc-900 py-3 pt-10 text-center text-white sm:flex-row sm:justify-center sm:py-3">
<div className="mb-8 mt-8">
<section className="flex items-center text-xs sm:text-sm">
Find an issue with this page?{' '}
<span className="pl-1 text-blue-500">
<a href="https://github.com/krishnaacharyaa/wanderlust">Fix it on GitHub</a>
</span>
<span>
<a href="https://github.com/krishnaacharyaa/wanderlust">
<img src={GitHub_Icon} className="h-7 w-10" />
</a>
</span>
</section>

<section className="flex items-center pl-8 text-xs sm:text-sm">
Need help? Connect with us on
<span>
<a href="https://discord.com/invite/FEKasAdCrG">
<img src={Discord_Icon} className="h-6 w-10" />
</a>
</span>
</section>

<section className="mt-4 flex items-center pl-16 text-xs">
<span className="mr-2">&copy;</span>
{year} All Rights Reserved
</section>
</div>
</footer>
);
}
Expand Down

0 comments on commit c9cdade

Please sign in to comment.