new login home

This commit is contained in:
Benjamin Takats
2022-12-05 21:07:48 +01:00
parent 91cecf1ffe
commit f24819a0bf
2 changed files with 40 additions and 11 deletions

View File

@@ -12,16 +12,13 @@ class RouteServiceProvider extends ServiceProvider
{
/**
* The path to the "home" route for your application.
*
* Typically, users are redirected here after authentication.
*
* @var string
*/
public const HOME = '/dashboard';
public const HOME = '/';
/**
* Define your route model bindings, pattern filters, and other route configuration.
*
* @return void
*/
public function boot()
@@ -30,23 +27,23 @@ class RouteServiceProvider extends ServiceProvider
$this->routes(function () {
Route::middleware('api')
->prefix('api')
->group(base_path('routes/api.php'));
->prefix('api')
->group(base_path('routes/api.php'));
Route::middleware('web')
->group(base_path('routes/web.php'));
->group(base_path('routes/web.php'));
});
}
/**
* Configure the rate limiters for the application.
*
* @return void
*/
protected function configureRateLimiting()
{
RateLimiter::for('api', function (Request $request) {
return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
return Limit::perMinute(60)
->by($request->user()?->id ?: $request->ip());
});
}
}

View File

@@ -14,10 +14,42 @@
<div
class="relative flex items-center space-x-3 rounded-lg border border-amber-300 bg-21gray px-6 py-5 shadow-sm focus-within:ring-2 focus-within:ring-amber-500 focus-within:ring-offset-2 hover:border-amber-400">
<div class="min-w-0 flex-1">
<a href="/nova" target="_blank" class="focus:outline-none">
<a href="/nova/resources/lecturers" target="_blank" class="focus:outline-none">
<span class="absolute inset-0" aria-hidden="true"></span>
<p class="text-sm font-medium text-gray-200">Dozent anlegen</p>
<p class="truncate text-sm text-gray-300">Damit du Inhalte zuweisen kannst.</p>
</a>
</div>
</div>
<div
class="relative flex items-center space-x-3 rounded-lg border border-amber-300 bg-21gray px-6 py-5 shadow-sm focus-within:ring-2 focus-within:ring-amber-500 focus-within:ring-offset-2 hover:border-amber-400">
<div class="min-w-0 flex-1">
<a href="/nova/resources/courses" target="_blank" class="focus:outline-none">
<span class="absolute inset-0" aria-hidden="true"></span>
<p class="text-sm font-medium text-gray-200">Kurs anlegen</p>
<p class="truncate text-sm text-gray-300">Zugriff auf das Daten-Backend</p>
<p class="truncate text-sm text-gray-300">Damit du Kurs-Termine anlegen kannst.</p>
</a>
</div>
</div>
<div
class="relative flex items-center space-x-3 rounded-lg border border-amber-300 bg-21gray px-6 py-5 shadow-sm focus-within:ring-2 focus-within:ring-amber-500 focus-within:ring-offset-2 hover:border-amber-400">
<div class="min-w-0 flex-1">
<a href="/nova/resources/events" target="_blank" class="focus:outline-none">
<span class="absolute inset-0" aria-hidden="true"></span>
<p class="text-sm font-medium text-gray-200">Kurs-Termin anlegen</p>
<p class="truncate text-sm text-gray-300">Damit Interessenten sich bei deinen Kursen
anmelden können.</p>
</a>
</div>
</div>
<div
class="relative flex items-center space-x-3 rounded-lg border border-amber-300 bg-21gray px-6 py-5 shadow-sm focus-within:ring-2 focus-within:ring-amber-500 focus-within:ring-offset-2 hover:border-amber-400">
<div class="min-w-0 flex-1">
<a href="/nova/resources/library-items" target="_blank" class="focus:outline-none">
<span class="absolute inset-0" aria-hidden="true"></span>
<p class="text-sm font-medium text-gray-200">Inhalte anlegen</p>
<p class="truncate text-sm text-gray-300">Damit sich Bitcoin-Interessierte
weiterbilden können.</p>
</a>
</div>
</div>