From f2d25c7565304c508df13b0c987431ca9645253c Mon Sep 17 00:00:00 2001 From: DiegoAndresMejia Date: Mon, 4 Nov 2024 02:47:02 -0500 Subject: [PATCH] create : create a lottery view to manage the results and information like dates --- resources/js/Pages/LotteryResults.vue | 126 ++++++++++++++++++++++++++ resources/js/Pages/Welcome.vue | 2 +- routes/web.php | 15 +++ 3 files changed, 142 insertions(+), 1 deletion(-) create mode 100644 resources/js/Pages/LotteryResults.vue diff --git a/resources/js/Pages/LotteryResults.vue b/resources/js/Pages/LotteryResults.vue new file mode 100644 index 0000000..9f6d25e --- /dev/null +++ b/resources/js/Pages/LotteryResults.vue @@ -0,0 +1,126 @@ + + + diff --git a/resources/js/Pages/Welcome.vue b/resources/js/Pages/Welcome.vue index 6cb0153..83c77a2 100644 --- a/resources/js/Pages/Welcome.vue +++ b/resources/js/Pages/Welcome.vue @@ -187,7 +187,7 @@ onBeforeUnmount(() => { diff --git a/routes/web.php b/routes/web.php index a287626..e221e51 100644 --- a/routes/web.php +++ b/routes/web.php @@ -23,6 +23,21 @@ })->name('dashboard'); }); +Route::get('/lottery-results', function () { + return Inertia::render('LotteryResults', [ + 'theme' => [ + 'background' => '#f3f4f6', + 'cardBackground' => '#ffffff', + 'border' => '#e5e7eb', + 'primary' => '#1f2937', + 'textPrimary' => '#111827', + 'textSecondary' => '#6b7280', + 'emphasis' => '#d97706', + 'gradient' => 'linear-gradient(90deg, #d97706 0%, #fb923c 100%)' + ] + ]); +})->name('lottery-results'); + Route::get('/auth/redirect/github', [AuthController::class, 'redirectToGitHub'])->name('github.login'); Route::get('/auth/callback/github', [AuthController::class, 'handleGitHubCallback'])->name('github.callback');