@@ -50,8 +50,8 @@ const rootRoute = new RootRoute({
5050
5151function RootComponent ( ) {
5252 return (
53- < >
54- < div className = "p-2 flex gap-2 text-lg" >
53+ < div className = "bg-gradient-to-r from-green-700 to-lime-600 text-white" >
54+ < div className = "p-2 flex gap-2 text-lg bg-black/40 shadow-xl " >
5555 < Link
5656 to = "/"
5757 activeProps = { {
@@ -70,10 +70,9 @@ function RootComponent() {
7070 Posts
7171 </ Link >
7272 </ div >
73- < hr />
7473 < Outlet />
7574 < TanStackRouterDevtools position = "bottom-right" />
76- </ >
75+ </ div >
7776 )
7877}
7978const indexRoute = new Route ( {
@@ -102,27 +101,26 @@ function PostsComponent() {
102101
103102 return (
104103 < div className = "p-2 flex gap-2" >
105- < ul className = "list-disc pl-4 " >
104+ < div className = "list-disc bg-gray-800/70 rounded-lg divide-y divide-green-500/30 " >
106105 { [ ...posts , { id : 'i-do-not-exist' , title : 'Non-existent Post' } ] ?. map (
107106 ( post ) => {
108107 return (
109- < li key = { post . id } className = "whitespace-nowrap" >
108+ < div key = { post . id } className = "whitespace-nowrap" >
110109 < Link
111110 to = { postRoute . to }
112111 params = { {
113112 postId : post . id ,
114113 } }
115- className = "block py-1 text-blue-800 hover:text-blue-600 "
116- activeProps = { { className : 'text-black font-bold' } }
114+ className = "block py-1 px-2 text-green-300 hover:text-green-200 "
115+ activeProps = { { className : '! text-white font-bold' } }
117116 >
118117 < div > { post . title . substring ( 0 , 20 ) } </ div >
119118 </ Link >
120- </ li >
119+ </ div >
121120 )
122121 } ,
123122 ) }
124- </ ul >
125- < hr />
123+ </ div >
126124 < Outlet />
127125 </ div >
128126 )
@@ -161,7 +159,8 @@ function PostComponent() {
161159
162160 return (
163161 < div className = "space-y-2" >
164- < h4 className = "text-xl font-bold underline" > { post . title } </ h4 >
162+ < h4 className = "text-xl font-bold" > { post . title } </ h4 >
163+ < hr className = "opacity-20" />
165164 < div className = "text-sm" > { post . body } </ div >
166165 </ div >
167166 )
0 commit comments