@@ -47,7 +47,7 @@ pub fn Login() -> impl IntoView {
47
47
view ! {
48
48
<section class="bg-gray-50" >
49
49
<div class="flex flex-col items-center justify-center px-6 py-8 mx-auto h-screen lg:py-0" >
50
- <a href="#" class="flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white " >
50
+ <a href="#" class="flex items-center mb-6 text-2xl font-semibold text-gray-900" >
51
51
<svg class="w-10 h-10 mr-4" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 1024 1024" >
52
52
<path d="M512 0C390.759 0 279.426 42.2227 191.719 112.656L191.719 612L351.719 612L351.719 332L422 332L431.719 332L431.719 332.344C488.169 334.127 541.249 351.138 581.875 380.625C627.591 413.806 654.875 460.633 654.875 512C654.875 563.367 627.591 610.194 581.875 643.375C541.249 672.862 488.169 689.873 431.719 691.656L431.719 1017.69C457.88 1021.81 484.68 1024 512 1024C794.77 1024 1024 794.77 1024 512C1024 229.23 794.77 0 512 0ZM111.719 192.906C41.8539 280.432 0 391.303 0 512C0 738.766 147.487 930.96 351.719 998.25L351.719 692L151.719 692L151.719 691.844L111.719 691.844L111.719 192.906ZM738.219 372C741.597 372.107 745.042 373.02 748.312 374.812L946.281 483.312C952.311 486.616 956.692 492.393 959.188 499.156C959.821 500.874 960.317 502.641 960.688 504.469C960.764 504.834 960.841 505.196 960.906 505.562C961.12 506.807 961.225 508.071 961.312 509.344C961.378 510.235 961.498 511.112 961.5 512C961.498 512.888 961.378 513.765 961.312 514.656C961.226 515.929 961.12 517.193 960.906 518.438C960.841 518.804 960.764 519.166 960.688 519.531C960.317 521.359 959.821 523.126 959.188 524.844C956.692 531.608 952.311 537.384 946.281 540.688L748.312 649.188C735.232 656.355 719.818 649.367 713.875 633.594C707.932 617.82 713.7 599.23 726.781 592.062L872.875 512L726.781 431.938C713.7 424.771 707.932 406.18 713.875 390.406C718.332 378.576 728.085 371.678 738.219 372ZM431.719 412.344L431.719 611.656C513.56 608.208 574.875 561.985 574.875 512C574.875 462.015 513.56 415.792 431.719 412.344Z" />
53
53
<path d="M742 403.688C740.062 403.483 738.097 404.438 737.094 406.25C735.756 408.666 736.615 411.694 739.031 413.031L925.719 516.375C928.135 517.712 931.194 516.822 932.531 514.406C933.869 511.99 932.979 508.962 930.562 507.625L743.875 404.281C743.271 403.947 742.646 403.756 742 403.688Z" />
@@ -87,15 +87,15 @@ pub fn LoginWithView(auth_providers: Vec<AuthProvider>) -> impl IntoView {
87
87
class="max-w-96 w-full"
88
88
class: hidden=move || login. with( |l| l. is_none( ) )
89
89
>
90
- <h1 class="mb-4 text-center text-2xl font-bold leading-tight tracking-tight text-gray-900 dark:text-white " >
90
+ <h1 class="mb-4 text-center text-2xl font-bold leading-tight tracking-tight text-gray-900" >
91
91
Sign in to your account
92
92
</h1>
93
93
<div
94
- class="w-full bg-white rounded-lg shadow dark:border md:mt-0 sm:max-w-md xl:p-0 dark:bg-gray-800 dark:border-gray-700 "
94
+ class="w-full bg-white rounded-lg shadow md:mt-0 sm:max-w-md xl:p-0"
95
95
>
96
96
<div class="p-6 flex flex-col space-y-3" >
97
97
<button type ="button"
98
- class="w-full text-gray-900 bg-white hover:bg-gray-100 border border-gray-200 focus:ring-4 focus:outline-none focus:ring-gray-100 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center dark:focus:ring-gray-600 dark:bg-gray-800 dark:border-gray-700 dark:text-white dark:hover:bg-gray-700 "
98
+ class="w-full text-gray-900 bg-white hover:bg-gray-100 border border-gray-200 focus:ring-4 focus:outline-none focus:ring-gray-100 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center"
99
99
class: hidden={ let auth_providers = auth_providers. clone( ) ; move || !auth_providers. contains( & AuthProvider :: Github ) }
100
100
on: click=move |_| { create_action( move |_| { now_login( AuthProvider :: Github ) } ) . dispatch( ( ) ) }
101
101
>
@@ -106,7 +106,7 @@ pub fn LoginWithView(auth_providers: Vec<AuthProvider>) -> impl IntoView {
106
106
</button>
107
107
108
108
<button type ="button"
109
- class="w-full text-gray-900 bg-white hover:bg-gray-100 border border-gray-200 focus:ring-4 focus:outline-none focus:ring-gray-100 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center dark:focus:ring-gray-600 dark:bg-gray-800 dark:border-gray-700 dark:text-white dark:hover:bg-gray-700 "
109
+ class="w-full text-gray-900 bg-white hover:bg-gray-100 border border-gray-200 focus:ring-4 focus:outline-none focus:ring-gray-100 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center"
110
110
class: hidden=move || !auth_providers. contains( & AuthProvider :: Gitlab )
111
111
on: click=move |_| { create_action( move |_| { now_login( AuthProvider :: Gitlab ) } ) . dispatch( ( ) ) }
112
112
>
@@ -137,37 +137,37 @@ pub fn NavUserControl(user_control_hidden: RwSignal<bool>) -> impl IntoView {
137
137
138
138
view ! {
139
139
<div
140
- class="absolute z-50 my-2 right-0 w-56 text-base list-none bg-white rounded divide-y divide-gray-100 shadow border dark:bg-gray-700 dark:divide-gray-600 rounded-xl"
140
+ class="absolute z-50 my-2 right-0 w-56 text-base list-none bg-white rounded divide-y divide-gray-100 shadow border rounded-xl"
141
141
class: hidden=move || user_control_hidden. get( )
142
142
>
143
143
<div class="py-3 px-4" >
144
- <span class="block text-sm font-semibold text-gray-900 dark:text-white " >
144
+ <span class="block text-sm font-semibold text-gray-900" >
145
145
{ move || login. get( ) . flatten( ) . and_then( |l| l. name) . unwrap_or( "" . to_string( ) ) }
146
146
</span>
147
- <span class="block text-sm text-gray-900 truncate dark:text-white " >
147
+ <span class="block text-sm text-gray-900 truncate" >
148
148
{ move || login. get( ) . flatten( ) . and_then( |l| l. email) . unwrap_or( "" . to_string( ) ) }
149
149
</span>
150
150
</div>
151
151
<ul
152
- class="py-1 text-gray-700 dark:text-gray-300 "
152
+ class="py-1 text-gray-700"
153
153
aria-labelledby="dropdown"
154
154
>
155
155
<li>
156
156
<a
157
157
href="/account"
158
- class="block py-2 px-4 text-sm hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-400 dark:hover:text-white "
158
+ class="block py-2 px-4 text-sm hover:bg-gray-100"
159
159
>User settings</a
160
160
>
161
161
</li>
162
162
</ul>
163
163
<ul
164
- class="py-1 text-gray-700 dark:text-gray-300 "
164
+ class="py-1 text-gray-700"
165
165
aria-labelledby="dropdown"
166
166
>
167
167
<li>
168
168
<a
169
169
href="#"
170
- class="block py-2 px-4 text-sm hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white "
170
+ class="block py-2 px-4 text-sm hover:bg-gray-100"
171
171
on: click=logout
172
172
>Sign out</a
173
173
>
@@ -181,10 +181,10 @@ pub fn NavUserControl(user_control_hidden: RwSignal<bool>) -> impl IntoView {
181
181
pub fn AccountSettings ( ) -> impl IntoView {
182
182
view ! {
183
183
<div class="border-b pb-4" >
184
- <h5 class="mr-3 text-2xl font-semibold dark:text-white " >
184
+ <h5 class="mr-3 text-2xl font-semibold" >
185
185
User Settings
186
186
</h5>
187
- <p class="text-gray-700 dark:text-gray-400 " >{ "Manage your account settings" } </p>
187
+ <p class="text-gray-700" >{ "Manage your account settings" } </p>
188
188
</div>
189
189
}
190
190
}
@@ -226,8 +226,8 @@ pub fn JoinView() -> impl IntoView {
226
226
{
227
227
move || if let Some ( error) = result. with( |r| r. as_ref( ) . and_then( |r| r. as_ref( ) . ok( ) . cloned( ) ) ) . flatten( ) {
228
228
view! {
229
- <div class="my-2 p-4 rounded-lg bg-red-50 dark:bg-gray-800 " >
230
- <span class="text-sm font-medium text-red-800 dark:text-red-400 " >{ error. error } </span>
229
+ <div class="my-2 p-4 rounded-lg bg-red-50" >
230
+ <span class="text-sm font-medium text-red-800" >{ error. error } </span>
231
231
</div>
232
232
} . into_view( )
233
233
} else {
0 commit comments