-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(config): adds styleguide config
- Loading branch information
1 parent
4802178
commit 9237afd
Showing
18 changed files
with
473 additions
and
359 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
.codesanbox | ||
.devcontainer | ||
codesanbox | ||
devcontainer | ||
dist | ||
node_modules | ||
vitest.config.ts | ||
|
||
node_modules/ | ||
public/ | ||
vite.config.ts | ||
app/glodal.d.ts |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,63 @@ | ||
import { cssBundleHref } from "@remix-run/css-bundle"; | ||
import type { LinksFunction } from "@remix-run/node"; | ||
/* eslint unicorn/filename-case: 0 */ | ||
|
||
/* eslint import/no-default-export: 0 */ | ||
import { LinksFunction } from '@remix-run/node'; | ||
import { | ||
Links, | ||
LiveReload, | ||
Meta, | ||
Outlet, | ||
Scripts, | ||
ScrollRestoration, | ||
} from "@remix-run/react"; | ||
} from '@remix-run/react'; | ||
import React from 'react'; | ||
|
||
import stylesheet from '~/tailwind.css?url'; | ||
|
||
export const links: LinksFunction = () => [ | ||
...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []), | ||
{ rel: 'stylesheet', href: stylesheet }, | ||
{ | ||
rel: 'icon', | ||
type: 'image/png', | ||
sizes: '32x32', | ||
href: '/favicon-32x32.png', | ||
}, | ||
{ | ||
rel: 'icon', | ||
type: 'image/png', | ||
sizes: '16x16', | ||
href: '/favicon-16x16.png', | ||
}, | ||
{ | ||
rel: 'icon', | ||
type: 'image/x-icon', | ||
href: '/favicon.ico', | ||
}, | ||
]; | ||
|
||
export default function App() { | ||
export function Layout({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<html lang="en"> | ||
<html lang='en'> | ||
<head> | ||
<meta charSet="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta charSet='utf-8' /> | ||
<meta name='viewport' content='width=device-width, initial-scale=1' /> | ||
<Meta /> | ||
<link | ||
rel='stylesheet' | ||
type='text/css' | ||
href='https://cdn.jsdelivr.net/gh/devicons/devicon@latest/devicon.min.css' | ||
/> | ||
<Links /> | ||
<title>Welcome to Remix</title> | ||
</head> | ||
<body> | ||
<Outlet /> | ||
<body className='selection:bg-lime-200 selection:text-[#f52891cc]'> | ||
{children} | ||
<ScrollRestoration /> | ||
<Scripts /> | ||
<LiveReload /> | ||
</body> | ||
</html> | ||
); | ||
} | ||
|
||
export default function App() { | ||
return <Outlet />; | ||
} |
Oops, something went wrong.