Skip to content

Commit

Permalink
feat: Refactor components layout for improved structure
Browse files Browse the repository at this point in the history
  • Loading branch information
kWAYTV committed Dec 5, 2024
1 parent 1856f0c commit 74ea37f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import localFont from 'next/font/local';
import { ViewTransitions } from 'next-view-transitions';

import { baseUrl } from '@/app/sitemap';
import Footer from '@/components/layout/footer';
import { Navbar } from '@/components/layout/nav';
import { Providers } from '@/components/providers/providers';
import Footer from '@/components/core/layout/footer';
import { Navbar } from '@/components/core/layout/nav';
import { Providers } from '@/components/core/providers/providers';
import { createMetadata } from '@/lib/metadata';

const geistSans = localFont({
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,16 @@ export function Navbar() {
className='flex items-center gap-2 p-2'
asChild
>
<Link href={path} aria-label={`Navigate to ${name}`}>
<Link
href={path}
aria-label={`Navigate to ${name}`}
{...(name.toLowerCase() === 'github'
? {
target: '_blank',
rel: 'noopener noreferrer'
}
: {})}
>
<Icon className='h-4 w-4' aria-hidden='true' />
<span className='capitalize'>{name}</span>
</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { Toaster } from 'sonner';

import { ThemeProvider } from '@/components/core/providers/theme-provider';
import { TabTitleChanger } from '@/components/core/reusable/tab-title-changer';
import { ThemeProvider } from '@/components/providers/theme-provider';
import { TooltipProvider } from '@/components/ui/tooltip';

export function Providers({ children }: { children: React.ReactNode }) {
Expand Down
File renamed without changes.

0 comments on commit 74ea37f

Please sign in to comment.