mirror of
https://github.com/ershisan99/vacancies-trends-front.git
synced 2026-02-01 12:35:42 +00:00
add index page
This commit is contained in:
13
app/root.tsx
13
app/root.tsx
@@ -1,5 +1,5 @@
|
||||
import { LinksFunction } from '@remix-run/node'
|
||||
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from '@remix-run/react'
|
||||
import { Link, Links, Meta, Outlet, Scripts, ScrollRestoration } from '@remix-run/react'
|
||||
import stylesheet from '~/tailwind.css?url'
|
||||
import { PropsWithChildren } from 'react'
|
||||
|
||||
@@ -15,7 +15,16 @@ export function Layout({ children }: PropsWithChildren) {
|
||||
<Links />
|
||||
</head>
|
||||
<body className={'h-full'}>
|
||||
{children}
|
||||
<header className={'p-4 bg-gray-50 dark:bg-gray-900 fixed w-full z-10'}>
|
||||
<nav>
|
||||
<ul className={'flex gap-4'}>
|
||||
<li>
|
||||
<Link to={'/'}>Home</Link>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<div className={'h-full p-10 pt-20'}>{children}</div>
|
||||
<ScrollRestoration />
|
||||
<Scripts />
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user