Skip to content

Commit 370e2ac

Browse files
committed
Add Styles
1 parent e40f8d9 commit 370e2ac

File tree

2 files changed

+13
-65
lines changed

2 files changed

+13
-65
lines changed

components/Footer.jsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,38 @@ const Footer = () => {
1616
{
1717
name: 'Mail',
1818
url: 'mailto:[email protected]',
19-
icon: <AiOutlineMail />,
19+
icon: AiOutlineMail,
2020
text: 'Contact us via mail'
2121
},
2222
{
2323
name: 'Instagram',
2424
url: 'https://www.instagram.com/web3community/',
25-
icon: <AiOutlineInstagram />,
25+
icon: AiOutlineInstagram,
2626
text: 'Check our content at Instagram'
2727
},
2828
{
2929
name: 'Twitter',
3030
url: 'https://twitter.com/web3community',
31-
icon: <AiOutlineTwitter />,
31+
icon: AiOutlineTwitter,
3232
text: 'Follow us via Twitter'
3333
},
3434

3535
{
3636
name: 'Linkedin',
3737
url: 'https://www.linkedin.com/company/web3community',
38-
icon: <AiFillLinkedin />,
38+
icon: AiFillLinkedin,
3939
text: 'Connect with us at LinkedIn'
4040
},
4141
{
4242
name: 'Twitter',
4343
url: 'https://github.com/WebXDAO',
44-
icon: <AiOutlineGithub />,
44+
icon: AiOutlineGithub,
4545
text: 'Contribute at GitHub'
4646
},
4747
{
4848
name: 'Twitter',
4949
url: 'https://discord.gg/TSRwqx4K2v',
50-
icon: <FaDiscord />,
50+
icon: FaDiscord,
5151
text: 'Join our Discord community'
5252
}
5353
]
@@ -64,17 +64,17 @@ const Footer = () => {
6464
<div className='flex-wrap flex-1 md:px-4 mb-6 text-black'>
6565
<p className='text-white mb-3 md:mb-6'>Socials</p>
6666
<div className='flex space-x-4'>
67-
{socials.map((handle, index) => (
67+
{socials.map(({ url, name, text, icon: Icon }, index) => (
6868
<a
6969
aria-hidden='true'
7070
className='text-white transition duration-500 ease-in-out transform hover:-translate-y-1 hover:scale-100'
71-
href={handle.url}
72-
key={handle.name + index}
71+
href={url}
72+
key={name + index}
7373
rel='noreferrer'
7474
target='_blank'
75-
title={handle.text}
75+
title={text}
7676
>
77-
{handle.icon}
77+
<Icon className='w-5 h-5' />
7878
</a>
7979
))}
8080
</div>

components/Navbar.jsx

Lines changed: 2 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const NavBarItem = ({ item, pathname, classprops }) => (
1010
<li
1111
className={`${
1212
pathname === item.url && 'font-bold'
13-
} ${classprops} text-ml inline-block text-blue-800 no-underline hover:text-indigo-500 py-2 px-4 items-center`}
13+
} ${classprops} cursor-pointer text-ml inline-block text-blue-800 no-underline hover:text-indigo-500 py-2 px-4 items-center`}
1414
>
1515
{item.title}
1616
</li>
@@ -33,7 +33,7 @@ const Navbar = () => {
3333
return (
3434
<nav className='sticky w-full z-30 top-0 text-white bg-white'>
3535
<div className='w-full container mx-auto flex flex-wrap items-center justify-between mt-0 py-2'>
36-
<div className='pl-4 flex items-center'>
36+
<div className='pl-4 flex items-center cursor-pointer'>
3737
<Link
3838
className='toggleColour text-black no-underline hover:no-underline font-bold text-2xl lg:text-2xl'
3939
href='/'
@@ -88,55 +88,3 @@ flex flex-col justify-start items-end rounded-md blue-glassmorphism animate-slid
8888
}
8989

9090
export default Navbar
91-
92-
{
93-
/* <nav className='w-full z-30 top-0 text-white bg-white relative'>
94-
<div className='md:flex-[0.5] flex-initial justify-center items-center'>
95-
<Image
96-
src='/logo.png'
97-
layout='responsive'
98-
width={80}
99-
height={40}
100-
alt='logo'
101-
className='w-32 cursor-pointer'
102-
/>
103-
</div>
104-
<ul className='md:flex hidden list-none flex-row justify-between items-center flex-initial'>
105-
{['Market', 'Exchange', 'Tutorials', 'Wallets'].map((item, index) => (
106-
<NavBarItem key={item + index} title={item} />
107-
))}
108-
<li className='bg-[#2952e3] py-2 px-7 mx-4 rounded-full cursor-pointer hover:bg-[#2546bd]'>
109-
Login
110-
</li>
111-
</ul>
112-
<div className='flex relative'>
113-
{!toggleMenu && (
114-
<HiMenuAlt4
115-
fontSize={28}
116-
className='md:hidden cursor-pointer'
117-
onClick={() => setToggleMenu(true)}
118-
/>
119-
)}
120-
{toggleMenu && (
121-
<AiOutlineClose
122-
fontSize={28}
123-
className='text-white md:hidden cursor-pointer'
124-
onClick={() => setToggleMenu(false)}
125-
/>
126-
)}
127-
{toggleMenu && (
128-
<ul
129-
className='z-10 fixed -top-0 -right-2 p-3 w-[70vw] h-screen shadow-2xl md:hidden list-none
130-
flex flex-col justify-start items-end rounded-md blue-glassmorphism animate-slide-in'
131-
>
132-
<li className='text-xl w-full my-2'>
133-
<AiOutlineClose onClick={() => setToggleMenu(false)} />
134-
</li>
135-
{['Market', 'Exchange', 'Tutorials', 'Wallets'].map((item, index) => (
136-
<NavBarItem key={item + index} title={item} classprops='my-2 text-lg' />
137-
))}
138-
</ul>
139-
)}
140-
</div>
141-
</nav> */
142-
}

0 commit comments

Comments
 (0)