Skip to content

Commit d792cd0

Browse files
chore: upgrade tailwind and to react-router (#24)
1 parent 78b99bb commit d792cd0

23 files changed

Lines changed: 938 additions & 3751 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules
22

3+
.react-router/
34
/.cache
45
/build
5-
/public/build
66
.env
File renamed without changes.

src/root.tsx renamed to app/root.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
import type { LinksFunction, MetaFunction } from '@remix-run/node'
2-
import {
3-
Links,
4-
Meta,
5-
Outlet,
6-
Scripts,
7-
ScrollRestoration,
8-
} from '@remix-run/react'
9-
import stylesUrl from './styles/index.css?url'
1+
import type { LinksFunction, MetaFunction } from 'react-router'
2+
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from 'react-router'
3+
import stylesUrl from './styles/tailwind.css?url'
104
import { getSiteUrl } from './services/url.ts'
115
import iconPngUrl from './icon.png?url'
126

app/routes.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import type { RouteConfig } from '@react-router/dev/routes'
2+
import { flatRoutes } from '@react-router/fs-routes'
3+
4+
export default flatRoutes() satisfies RouteConfig
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useLoaderData, useRevalidator } from '@remix-run/react'
1+
import { useLoaderData, useRevalidator } from 'react-router'
22
import { useCallback, useEffect, useId, useState } from 'react'
33
import type {
44
ChangeEventHandler,
@@ -97,7 +97,7 @@ const Header = () => (
9797
<div className='flex flex-col items-center'>
9898
<h1 className='mb-5 text-2xl font-semibold sm:text-3xl'>True Random For</h1>
9999
<img src={spotifyPngUrl} alt='Spotify' className='my-5 w-[20vw] min-w-52' />
100-
<p className='mx-auto mb-10 mt-5 max-w-[45ch] text-xl font-medium sm:text-2xl'>
100+
<p className='mx-auto mt-5 mb-10 max-w-[45ch] text-xl font-medium sm:text-2xl'>
101101
An application for unbiased truly random playlist and library shuffling
102102
with Spotify.
103103
</p>

0 commit comments

Comments
 (0)