Skip to content

Commit

Permalink
chore(config): adds styleguide config
Browse files Browse the repository at this point in the history
  • Loading branch information
csantiago132 committed Oct 29, 2024
1 parent 4802178 commit 9237afd
Show file tree
Hide file tree
Showing 18 changed files with 473 additions and 359 deletions.
3 changes: 0 additions & 3 deletions .commitlintrc.js

This file was deleted.

12 changes: 4 additions & 8 deletions .eslintignore
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
83 changes: 0 additions & 83 deletions .eslintrc.cjs

This file was deleted.

21 changes: 0 additions & 21 deletions .eslintrc.js

This file was deleted.

10 changes: 9 additions & 1 deletion .idea/material_theme_project_new.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .releaserc.js

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ Now you'll need to pick a host to deploy it to.

### DIY

If you're familiar with deploying node applications, the built-in Remix app server is production-ready.
If you're familiar with deploying node applications, the built-in Remix app server is
production-ready.

Make sure to deploy the output of `remix build`

Expand Down
18 changes: 0 additions & 18 deletions app/entry.client.tsx

This file was deleted.

140 changes: 0 additions & 140 deletions app/entry.server.tsx

This file was deleted.

54 changes: 42 additions & 12 deletions app/root.tsx
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 />;
}
Loading

0 comments on commit 9237afd

Please sign in to comment.