From b3d078c208510f36a45aea2cb37a49c0a2abd26a Mon Sep 17 00:00:00 2001 From: MatiasMolina000 Date: Wed, 1 Mar 2023 21:14:34 -0300 Subject: [PATCH] =?UTF-8?q?Archivo=20HomeJS.js=20para=20la=20obtensi=C3=B3?= =?UTF-8?q?n=20y=20almacenamiento=20en=20localstorage=20de=20la=20data=20d?= =?UTF-8?q?el=20usuario.=20Logo=20y=20estilos=20responsive=20en=20archivo?= =?UTF-8?q?=20site.css.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JuegoBingoMVC/Controllers/HomeController.cs | 15 +- JuegoBingoMVC/JuegoBingoMVC.csproj | 1 - JuegoBingoMVC/Views/Home/Index.cshtml | 55 ++++--- JuegoBingoMVC/Views/Home/NewGame.cshtml | 26 ++-- JuegoBingoMVC/Views/Shared/_Layout.cshtml | 4 +- .../Views/Shared/_LoginPartial.cshtml | 8 +- JuegoBingoMVC/wwwroot/css/site.css | 143 ++++++++++++++++-- JuegoBingoMVC/wwwroot/img/bolillas bingo.jpg | Bin 0 -> 83750 bytes JuegoBingoMVC/wwwroot/img/fondo.png | Bin 0 -> 23116 bytes JuegoBingoMVC/wwwroot/img/fondo1.jpg | Bin 0 -> 666354 bytes JuegoBingoMVC/wwwroot/img/logo.png | Bin 0 -> 210449 bytes JuegoBingoMVC/wwwroot/js/GameJs.js | 83 +++++----- JuegoBingoMVC/wwwroot/js/HomeJs.js | 42 +++++ 13 files changed, 257 insertions(+), 120 deletions(-) create mode 100644 JuegoBingoMVC/wwwroot/img/bolillas bingo.jpg create mode 100644 JuegoBingoMVC/wwwroot/img/fondo.png create mode 100644 JuegoBingoMVC/wwwroot/img/fondo1.jpg create mode 100644 JuegoBingoMVC/wwwroot/img/logo.png create mode 100644 JuegoBingoMVC/wwwroot/js/HomeJs.js diff --git a/JuegoBingoMVC/Controllers/HomeController.cs b/JuegoBingoMVC/Controllers/HomeController.cs index bf2a740..0f66133 100644 --- a/JuegoBingoMVC/Controllers/HomeController.cs +++ b/JuegoBingoMVC/Controllers/HomeController.cs @@ -1,4 +1,5 @@ using JuegoBingoMVC.Models; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.Diagnostics; @@ -18,24 +19,12 @@ public IActionResult Index() return View(); } - /*public IActionResult Privacy() - { - return View(); - }*/ - + [Authorize] public IActionResult NewGame() { - //Partida miPartida = new(4); - //return View(miPartida); return View(); } - /*public IActionResult New(string user) - { - - return View(); - }*/ - [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() { diff --git a/JuegoBingoMVC/JuegoBingoMVC.csproj b/JuegoBingoMVC/JuegoBingoMVC.csproj index 7e2d33d..3d190f2 100644 --- a/JuegoBingoMVC/JuegoBingoMVC.csproj +++ b/JuegoBingoMVC/JuegoBingoMVC.csproj @@ -17,7 +17,6 @@ - diff --git a/JuegoBingoMVC/Views/Home/Index.cshtml b/JuegoBingoMVC/Views/Home/Index.cshtml index aab24e2..675ce31 100644 --- a/JuegoBingoMVC/Views/Home/Index.cshtml +++ b/JuegoBingoMVC/Views/Home/Index.cshtml @@ -7,36 +7,43 @@ }
-

Bienvenido

-
- @*

Welcome

-

Learn about building Web apps with ASP.NET Core.

-
+ +@section Scripts +{ + @if (SignInManager.IsSignedIn(User)) + { + + } +} diff --git a/JuegoBingoMVC/Views/Home/NewGame.cshtml b/JuegoBingoMVC/Views/Home/NewGame.cshtml index 7af17f8..c55b366 100644 --- a/JuegoBingoMVC/Views/Home/NewGame.cshtml +++ b/JuegoBingoMVC/Views/Home/NewGame.cshtml @@ -2,27 +2,27 @@ @{ ViewData["Title"] = "Vamos a Jugar!"; } -

@ViewData["Title"]

+

@ViewData["Title"]

-
-
-
- -
+
+
+ +
-
- Bolilla: -
-
- Cartón Ganador: +
+
-
- +
+
Bolilla:
+
Cartón Ganador:
+
+ +
@section Scripts { diff --git a/JuegoBingoMVC/Views/Shared/_Layout.cshtml b/JuegoBingoMVC/Views/Shared/_Layout.cshtml index 34e0a47..c10ff63 100644 --- a/JuegoBingoMVC/Views/Shared/_Layout.cshtml +++ b/JuegoBingoMVC/Views/Shared/_Layout.cshtml @@ -12,7 +12,7 @@