11import { ShlinkApiClient } from '@shlinkio/shlink-js-sdk' ;
22import { FetchHttpClient } from '@shlinkio/shlink-js-sdk/fetch' ;
3+ import { clsx } from 'clsx' ;
34import type { FC } from 'react' ;
45import { useCallback , useEffect , useMemo , useState } from 'react' ;
56import { Link , Navigate , Route , Routes , useLocation } from 'react-router' ;
@@ -39,21 +40,24 @@ export const App: FC = () => {
3940
4041 return (
4142 < >
42- < header className = "header fixed-top text-white d-flex justify-content-between" >
43+ < header className = { clsx (
44+ 'tw:h-(--header-height) tw:fixed tw:top-0 tw:left-0 tw:right-0 tw:flex tw:justify-between' ,
45+ 'tw:bg-lm-main tw:dark:bg-dm-main tw:text-white' ,
46+ ) } >
4347 < ServerInfoForm serverInfo = { serverInfo } onChange = { onServerInfoChange } />
4448 < div className = "tw:h-full tw:pr-4 tw:flex tw:items-center tw:gap-4" >
45- < Link to = "/" className = "text-white" > Home</ Link >
46- < Link to = "/settings" className = "text-white" > Settings</ Link >
49+ < Link to = "/" className = "tw: text-white" > Home</ Link >
50+ < Link to = "/settings" className = "tw: text-white" > Settings</ Link >
4751 < ThemeToggle />
4852 </ div >
4953 </ header >
50- < div className = "wrapper " >
54+ < div className = "tw:py-(--header-height) " >
5155 < Routes >
5256 < Route path = "/settings" >
5357 < Route
5458 path = "*"
5559 element = { (
56- < div className = "container pt-4 " >
60+ < div className = "tw: container tw:mx-auto tw: pt-6 " >
5761 < ShlinkWebSettings
5862 settings = { settings }
5963 onUpdateSettings = { setSettings }
@@ -73,9 +77,9 @@ export const App: FC = () => {
7377 settings = { settings }
7478 routesPrefix = { routesPrefix }
7579 />
76- ) : < div className = "container pt-4 " > Not connected</ div > }
80+ ) : < div className = "tw: container tw:mx-auto tw: pt-6 " > Not connected</ div > }
7781 />
78- < Route path = "*" element = { < h3 className = "mt-3 text-center" > Not found</ h3 > } />
82+ < Route path = "*" element = { < h3 className = "tw: mt-4 tw: text-center" > Not found</ h3 > } />
7983 </ Routes >
8084 </ div >
8185 </ >
0 commit comments