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

fix: updated twitter icon and add hover effects to footer links #225

Merged
merged 5 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
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
107 changes: 61 additions & 46 deletions components/Footer/footer.js
Original file line number Diff line number Diff line change
@@ -1,51 +1,66 @@
import React from 'react'
import React from "react";

function Footer() {
const socials = [
{
name: "Github",
href: "https://github.com/asyncapi",
imgUrl: "/img/Github.png",
},
{
name: "Linkedin",
href: "https://www.linkedin.com/company/asyncapi/",
imgUrl: "/img/Linkedln.png",
},
{
name: "Tweeter(X)",
href: "https://twitter.com/asyncapispec",
imgUrl: "/img/twitter_new.png",
},
];
return (
<div className='mt-[160px] w-full flex justify-center border border-t-[#333] container py-[96px]'>
<div className='w-[1131px]'>
<img src='/img/logo.png' className='w-[150px]' />
<div className='mt-[82px] flex items-center justify-between sm:flex-col sm:items-start'>
<div className='mt-2 text-[14px] text-gray py-4 underline'>
<a
href='https://github.com/asyncapi/.github/blob/master/CODE_OF_CONDUCT.md'
target='_blank'
rel='noreferrer'
>
Code of Conduct
</a>
</div>
<div className='flex justify-between items-center w-[284px] sm:mt-6'>
<div className='text-[16px] text-white'>
<span>Follow us</span>
</div>
<a
href='https://github.com/asyncapi'
target='_blank'
rel='noreferrer'
className='w-[52px] h-[52px] rounded-lg border border-[#556061] flex items-center justify-center'
>
<img src='/img/Github.png' />
</a>
<a
target='_blank'
href='https://www.linkedin.com/company/asyncapi/'
className='w-[52px] h-[52px] rounded-lg border border-[#556061] flex items-center justify-center' rel="noreferrer"
>
<img src='/img/Linkedln.png' />
</a>
<a
href='https://twitter.com/asyncapispec'
target='_blank'
className='w-[52px] h-[52px] rounded-lg border border-[#556061] flex items-center justify-center' rel="noreferrer"
>
<img src='/img/Twitter.png' />
</a>
</div>
</div>
</div>
</div>
);
<div className="mt-[160px] w-full flex justify-center border border-t-[#333] container py-[96px]">
<div className="w-[1131px]">
<img src="/img/logo.png" className="w-[150px]" />
<div className="mt-[82px] flex items-center justify-between sm:flex-col sm:items-start">
<div className="mt-2 text-[14px] text-gray py-4 underline">
<a
href="https://github.com/asyncapi/.github/blob/master/CODE_OF_CONDUCT.md"
target="_blank"
rel="noreferrer"
className="hover:text-sky-500 duration-200 ease-in-out"
>
Code of Conduct
</a>
</div>
<div className="flex flex-col justify-between items-start gap-2 w-[284px] sm:mt-6">
<div className="text-[16px] text-slate-300">
<span>Follow us</span>
</div>
<div className="flex justify-between items-center gap-3">
{socials.map((social, index) => {
return (
<a
key={index}
href={social.href}
target="_blank"
rel="noreferrer"
className="w-12 h-12 rounded-lg border-[1.5px] border-[#556061] flex items-center justify-center hover:border-[#AD20E2] duration-150 ease-in-out"
>
<img
src={social.imgUrl}
alt={social.name}
className="w-8 h-8"
/>
</a>
);
})}
</div>
</div>
</div>
</div>
</div>
);
}

export default Footer
export default Footer;
Binary file removed public/img/Twitter.png
Binary file not shown.
Binary file added public/img/twitter_new.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.