diff --git a/Hospital/HospitalWeb/Controllers/HomeController.cs b/Hospital/HospitalWeb/Controllers/HomeController.cs index 21d8e86..3f2a286 100644 --- a/Hospital/HospitalWeb/Controllers/HomeController.cs +++ b/Hospital/HospitalWeb/Controllers/HomeController.cs @@ -18,13 +18,7 @@ namespace HospitalWeb.Controllers public IActionResult Index() { - if (APIClient.Apothecary == null) - { - return Redirect("~/Home/Enter"); - } - //return View(APIClient.GetRequest>($"api/prescription/getprescriptions?apothecaryId={APIClient.Apothecary.Id}")); - return Redirect("/prescription"); - + return View(); } [HttpGet] diff --git a/Hospital/HospitalWeb/Views/Home/Index.cshtml b/Hospital/HospitalWeb/Views/Home/Index.cshtml index 55bb1be..6f5e34e 100644 --- a/Hospital/HospitalWeb/Views/Home/Index.cshtml +++ b/Hospital/HospitalWeb/Views/Home/Index.cshtml @@ -1,11 +1,39 @@ -@using HospitalContracts.ViewModels -@model List -@{ - ViewData["Title"] = "Home Page"; +@{ + ViewData["Title"] = "Аптека"; } -
-

Поступления

-
-
- + +
+
+

Аптека

+

Приложение для управления лекарствами, поступлениями и рецептами

+
+
+
+
+
+
Лекарства
+

Добавляйте, редактируйте и удаляйте лекарства в базе данных

+ Перейти +
+
+
+
+
+
+
Поступления
+

Управляйте поступлениями лекарств в аптеку

+ Перейти +
+
+
+
+
+
+
Рецепты
+

Добавляйте, редактируйте и удаляйте рецепты в базе данных

+ Перейти +
+
+
+
\ No newline at end of file diff --git a/Hospital/HospitalWeb/wwwroot/css/styles.css b/Hospital/HospitalWeb/wwwroot/css/styles.css index de98297..c8e2c24 100644 --- a/Hospital/HospitalWeb/wwwroot/css/styles.css +++ b/Hospital/HospitalWeb/wwwroot/css/styles.css @@ -21,4 +21,37 @@ border: none; border-radius: 5px; cursor: pointer; -} \ No newline at end of file +} + +.jumbotron { + background-color: #fff; + padding: 4rem 2rem; + margin-bottom: 2rem; + border-radius: 0.3rem; + box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); +} + +.card { + margin-bottom: 2rem; + box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); +} + +.card-title { + font-size: 1.25rem; + font-weight: bold; + margin-bottom: 0.5rem; +} + +.card-text { + margin-bottom: 1rem; +} + +.btn-primary { + background-color: #007bff; + border-color: #007bff; +} + + .btn-primary:hover { + background-color: #0062cc; + border-color: #0062cc; + } \ No newline at end of file