Skip to content

Commit

Permalink
feat: improve dark mode and some copy
Browse files Browse the repository at this point in the history
  • Loading branch information
reyamir committed Nov 5, 2024
1 parent d80534c commit 5655a81
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 220 deletions.
28 changes: 0 additions & 28 deletions src/routes.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { createFileRoute } from '@tanstack/react-router'
// Import Routes

import { Route as rootRoute } from './routes/__root'
import { Route as BootstrapRelaysImport } from './routes/bootstrap-relays'
import { Route as AppImport } from './routes/_app'
import { Route as NewPostIndexImport } from './routes/new-post/index'
import { Route as AppIndexImport } from './routes/_app/index'
Expand Down Expand Up @@ -91,14 +90,6 @@ const NewLazyRoute = NewLazyImport.update({
getParentRoute: () => rootRoute,
} as any).lazy(() => import('./routes/new.lazy').then((d) => d.Route))

const BootstrapRelaysRoute = BootstrapRelaysImport.update({
id: '/bootstrap-relays',
path: '/bootstrap-relays',
getParentRoute: () => rootRoute,
} as any).lazy(() =>
import('./routes/bootstrap-relays.lazy').then((d) => d.Route),
)

const AppRoute = AppImport.update({
id: '/_app',
getParentRoute: () => rootRoute,
Expand Down Expand Up @@ -389,13 +380,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AppImport
parentRoute: typeof rootRoute
}
'/bootstrap-relays': {
id: '/bootstrap-relays'
path: '/bootstrap-relays'
fullPath: '/bootstrap-relays'
preLoaderRoute: typeof BootstrapRelaysImport
parentRoute: typeof rootRoute
}
'/new': {
id: '/new'
path: '/new'
Expand Down Expand Up @@ -758,7 +742,6 @@ const SettingsIdLazyRouteWithChildren = SettingsIdLazyRoute._addFileChildren(

export interface FileRoutesByFullPath {
'': typeof AppRouteWithChildren
'/bootstrap-relays': typeof BootstrapRelaysRoute
'/new': typeof NewLazyRoute
'/$id/set-group': typeof IdSetGroupRoute
'/$id/set-interest': typeof IdSetInterestRoute
Expand Down Expand Up @@ -797,7 +780,6 @@ export interface FileRoutesByFullPath {
}

export interface FileRoutesByTo {
'/bootstrap-relays': typeof BootstrapRelaysRoute
'/new': typeof NewLazyRoute
'/$id/set-group': typeof IdSetGroupRoute
'/$id/set-interest': typeof IdSetInterestRoute
Expand Down Expand Up @@ -838,7 +820,6 @@ export interface FileRoutesByTo {
export interface FileRoutesById {
__root__: typeof rootRoute
'/_app': typeof AppRouteWithChildren
'/bootstrap-relays': typeof BootstrapRelaysRoute
'/new': typeof NewLazyRoute
'/$id/set-group': typeof IdSetGroupRoute
'/$id/set-interest': typeof IdSetInterestRoute
Expand Down Expand Up @@ -881,7 +862,6 @@ export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths:
| ''
| '/bootstrap-relays'
| '/new'
| '/$id/set-group'
| '/$id/set-interest'
Expand Down Expand Up @@ -919,7 +899,6 @@ export interface FileRouteTypes {
| '/columns/users/$id'
fileRoutesByTo: FileRoutesByTo
to:
| '/bootstrap-relays'
| '/new'
| '/$id/set-group'
| '/$id/set-interest'
Expand Down Expand Up @@ -958,7 +937,6 @@ export interface FileRouteTypes {
id:
| '__root__'
| '/_app'
| '/bootstrap-relays'
| '/new'
| '/$id/set-group'
| '/$id/set-interest'
Expand Down Expand Up @@ -1000,7 +978,6 @@ export interface FileRouteTypes {

export interface RootRouteChildren {
AppRoute: typeof AppRouteWithChildren
BootstrapRelaysRoute: typeof BootstrapRelaysRoute
NewLazyRoute: typeof NewLazyRoute
IdSetGroupRoute: typeof IdSetGroupRoute
IdSetInterestRoute: typeof IdSetInterestRoute
Expand All @@ -1016,7 +993,6 @@ export interface RootRouteChildren {

const rootRouteChildren: RootRouteChildren = {
AppRoute: AppRouteWithChildren,
BootstrapRelaysRoute: BootstrapRelaysRoute,
NewLazyRoute: NewLazyRoute,
IdSetGroupRoute: IdSetGroupRoute,
IdSetInterestRoute: IdSetInterestRoute,
Expand All @@ -1043,7 +1019,6 @@ export const routeTree = rootRoute
"filePath": "__root.tsx",
"children": [
"/_app",
"/bootstrap-relays",
"/new",
"/$id/set-group",
"/$id/set-interest",
Expand All @@ -1063,9 +1038,6 @@ export const routeTree = rootRoute
"/_app/"
]
},
"/bootstrap-relays": {
"filePath": "bootstrap-relays.tsx"
},
"/new": {
"filePath": "new.lazy.tsx"
},
Expand Down
159 changes: 0 additions & 159 deletions src/routes/bootstrap-relays.lazy.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions src/routes/bootstrap-relays.tsx

This file was deleted.

17 changes: 13 additions & 4 deletions src/routes/columns/_layout/discover-interests.lazy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,19 +143,28 @@ function Screen() {
</p>
</div>
) : isError ? (
<div className="mb-3 flex flex-col items-center justify-center h-16 w-full rounded-xl overflow-hidden bg-neutral-200/50 dark:bg-neutral-800/50">
<p className="text-sm text-center">{error?.message ?? "Error"}</p>
<div className="mb-3 flex flex-col items-center justify-center h-16 w-full rounded-xl overflow-hidden bg-neutral-200/50 dark:bg-neutral-800/20">
<p className="text-xs text-center px-4 text-neutral-500 dark:text-neutral-400">
{error?.message ?? "Error"}
</p>
</div>
) : !data?.length ? (
<div className="mb-3 flex flex-col items-center justify-center h-16 w-full rounded-xl overflow-hidden bg-neutral-200/50 dark:bg-neutral-800/50">
<p className="text-sm text-center">
<div className="mb-3 flex flex-col items-center justify-center h-16 w-full rounded-xl overflow-hidden bg-neutral-200/50 dark:bg-neutral-800/20">
<p className="text-xs text-center px-4 text-neutral-500 dark:text-neutral-400">
Nothing to show yet, you can use Lume more and comeback lack to
see new events.
</p>
</div>
) : (
data?.map((item) => renderItem(item))
)}
<div className="mb-3 flex flex-col items-center justify-center h-16 w-full rounded-xl overflow-hidden bg-neutral-200/50 dark:bg-neutral-800/20">
<p className="text-xs text-center px-4 text-neutral-500 dark:text-neutral-400">
Lume running sync in the background,
<br />
the more you use the more event you see.
</p>
</div>
{hasNextPage ? (
<button
type="button"
Expand Down
17 changes: 13 additions & 4 deletions src/routes/columns/_layout/discover-newsfeeds.lazy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,19 +137,28 @@ function Screen() {
</p>
</div>
) : isError ? (
<div className="mb-3 flex flex-col items-center justify-center h-16 w-full rounded-xl overflow-hidden bg-neutral-200/50 dark:bg-neutral-800/50">
<p className="text-sm text-center">{error?.message ?? "Error"}</p>
<div className="mb-3 flex flex-col items-center justify-center h-16 w-full rounded-xl overflow-hidden bg-neutral-200/50 dark:bg-neutral-800/20">
<p className="text-xs text-center px-4 text-neutral-500 dark:text-neutral-400">
{error?.message ?? "Error"}
</p>
</div>
) : !data?.length ? (
<div className="mb-3 flex flex-col items-center justify-center h-16 w-full rounded-xl overflow-hidden bg-neutral-200/50 dark:bg-neutral-800/50">
<p className="text-sm text-center">
<div className="mb-3 flex flex-col items-center justify-center h-16 w-full rounded-xl overflow-hidden bg-neutral-200/50 dark:bg-neutral-800/20">
<p className="text-xs text-center px-4 text-neutral-500 dark:text-neutral-400">
Nothing to show yet, you can use Lume more and comeback lack to
see new events.
</p>
</div>
) : (
data?.map((item) => renderItem(item))
)}
<div className="mb-3 flex flex-col items-center justify-center h-16 w-full rounded-xl overflow-hidden bg-neutral-200/50 dark:bg-neutral-800/20">
<p className="text-xs text-center px-4 text-neutral-500 dark:text-neutral-400">
Lume running sync in the background,
<br />
the more you use the more event you see.
</p>
</div>
{hasNextPage ? (
<button
type="button"
Expand Down
17 changes: 13 additions & 4 deletions src/routes/columns/_layout/discover-relays.lazy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,28 @@ function Screen() {
</p>
</div>
) : isError ? (
<div className="mb-3 flex flex-col items-center justify-center h-16 w-full rounded-xl overflow-hidden bg-neutral-200/50 dark:bg-neutral-800/50">
<p className="text-sm text-center">{error?.message ?? "Error"}</p>
<div className="mb-3 flex flex-col items-center justify-center h-16 w-full rounded-xl overflow-hidden bg-neutral-200/50 dark:bg-neutral-800/20">
<p className="text-xs text-center px-4 text-neutral-500 dark:text-neutral-400">
{error?.message ?? "Error"}
</p>
</div>
) : !data?.length ? (
<div className="mb-3 flex flex-col items-center justify-center h-16 w-full rounded-xl overflow-hidden bg-neutral-200/50 dark:bg-neutral-800/50">
<p className="text-sm text-center">
<div className="mb-3 flex flex-col items-center justify-center h-16 w-full rounded-xl overflow-hidden bg-neutral-200/50 dark:bg-neutral-800/20">
<p className="text-xs text-center px-4 text-neutral-500 dark:text-neutral-400">
Nothing to show yet, you can use Lume more and comeback lack to
see new events.
</p>
</div>
) : (
data?.map((item) => renderItem(item))
)}
<div className="mb-3 flex flex-col items-center justify-center h-16 w-full rounded-xl overflow-hidden bg-neutral-200/50 dark:bg-neutral-800/20">
<p className="text-xs text-center px-4 text-neutral-500 dark:text-neutral-400">
Lume running sync in the background,
<br />
the more you use the more event you see.
</p>
</div>
{hasNextPage ? (
<button
type="button"
Expand Down
Loading

0 comments on commit 5655a81

Please sign in to comment.