Skip to content

Commit

Permalink
Fixed some broken links in some components
Browse files Browse the repository at this point in the history
  • Loading branch information
fwedwicc committed Aug 6, 2024
1 parent f9de844 commit ff96afe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Footer = () => {
<footer className='py-12 lg:px-24 md:px-12 px-6'>
<div className='flex md:flex-row flex-col gap-7 justify-between md:items-end items-start'>
<div className='space-y-4'>
<Link to='/home'>
<Link to='/fmUI/home'>
<img src={fmUILogo} alt="fmUI Logo" className='w-auto lg:h-7 md:h-7 h-5' />
</Link>
<p className='text-sm w-full max-w-md'>fmUI: a project aimed at providing a diverse range of open-source Tailwind CSS components and templates for seamless web development.</p>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Hero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ const Hero = () => {
<p>fmUI is a comprehensive collection of free Tailwind CSS components and templates for your projects. With diverse components and sample pages, you can develop websites, web apps, and more. Explore our selection to enhance your development process with ease and flexibility.</p>
</div>
<div className='space-x-3'>
<Link to='/components'>
<Link to='/fmUI/components'>
<button className='inline-flex text-sm gap-2.5 items-center px-4 py-2.5 text-zinc-100 hover:bg-neutral-900/90 transition duration-300 ease-in-out bg-neutral-700 border border-neutral-900 font-medium rounded-md'>
Explore components
<MdArrowOutward className='h-4 w-auto' />
</button>
</Link>
<a href='https://github.com/fwedwicc/fmUI' target='_blank' rel='noopener noreferrer' className='inline-flex text-sm gap-2.5 items-center px-4 py-2.5 transition duration-300 ease-in-out text-zinc-600 bg-neutral-200 border border-neutral-300 hover:bg-neutral-400/40 font-medium rounded-md'>
View on GitHub
Star it on GitHub
<FaGithub className='h-4 w-auto' />
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Navbar = () => {

// Active/inactive span style
const spanClasses = () => {
return location.pathname.startsWith('/fmUI/components')
return location.pathname.startsWith('/fmUI/components/')
? 'inline-flex gap-2 items-center px-2.5 py-1.5 text-zinc-100 border border-neutral-900 bg-neutral-700 font-medium rounded-md text-sm'
: 'inline-flex gap-2 items-center px-2.5 py-1.5 text-zinc-600 bg-neutral-200 border border-neutral-300 font-medium rounded-md text-sm';
};
Expand Down

0 comments on commit ff96afe

Please sign in to comment.