From a7160dbd802284f7ab6787a410f807557adac143 Mon Sep 17 00:00:00 2001 From: Mia Winter Date: Sat, 18 Nov 2023 03:10:37 +0100 Subject: [PATCH] added: tailwindcss&daisyui based style --- Pages/Error.cshtml | 29 +++---- Pages/Index.cshtml | 10 +-- Pages/Inspect.cshtml | 64 ++++++++------- Pages/Login.cshtml | 44 +++++------ Pages/Logout.cshtml | 2 +- Pages/Shared/_Layout.cshtml | 32 +++----- Pages/Shared/_LoginPartial.cshtml | 4 +- Pages/Urls.cshtml | 127 ++++++++++++++++-------------- Pages/Urls.cshtml.cs | 6 +- 9 files changed, 159 insertions(+), 159 deletions(-) diff --git a/Pages/Error.cshtml b/Pages/Error.cshtml index 6f92b95..92dbc6e 100644 --- a/Pages/Error.cshtml +++ b/Pages/Error.cshtml @@ -4,23 +4,14 @@ ViewData["Title"] = "Error"; } -

Error.

-

An error occurred while processing your request.

+
+

Error.

+

An error occurred while processing your request.

-@if (Model.ShowRequestId) -{ -

- Request ID: @Model.RequestId -

-} - -

Development Mode

-

- Swapping to the Development environment displays detailed information about the error that occurred. -

-

- The Development environment shouldn't be enabled for deployed applications. - It can result in displaying sensitive information from exceptions to end users. - For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development - and restarting the app. -

+ @if (Model.ShowRequestId) + { +

+ Request ID: @Model.RequestId +

+ } +
\ No newline at end of file diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml index 72b34ea..5ce9393 100644 --- a/Pages/Index.cshtml +++ b/Pages/Index.cshtml @@ -4,12 +4,12 @@ ViewData["Title"] = "Startpage"; } -
+
@if (Model.Id is null) { -

Welcome to Just Short It!

-

The KISS single-user URL shortener!

- Start shorting URLs +

Welcome to Just Short It!

+

The KISS single-user URL shortener!

+ Start shorting URLs } else { -

@Model.ErrorMessage

+

@Model.ErrorMessage

}
diff --git a/Pages/Inspect.cshtml b/Pages/Inspect.cshtml index 880a81d..9730393 100644 --- a/Pages/Inspect.cshtml +++ b/Pages/Inspect.cshtml @@ -5,36 +5,40 @@ ViewData["Title"] = "Inspect"; } -
-@if (Model.UrlRedirect is null) { - @if (!string.IsNullOrEmpty(Model.Message)) { -
- - @Html.Raw(Model.Message) -
- } else { -
-

URL not found

-

The given ID does not exist, it may have expired or been deleted.

-
- } -} else { -
-
-
ID
-
@Model.UrlRedirect.Id
-
URL-Target
-
@Model.UrlRedirect.Target
-
+
+
+ @if (Model.UrlRedirect is null) { + @if (!string.IsNullOrEmpty(Model.Message)) { +
+ + + + + @Html.Raw(Model.Message) + + +
+ } else { +

URL not found

+

The given ID does not exist, it may have expired or been deleted.

+ } + } else { +
+
ID
+
@Model.UrlRedirect.Id
+
URL-Target
+
@Model.UrlRedirect.Target
+
-
- - -
-
- -} -
- Back to URLs +
+ + +
+ } + Back to URLs
diff --git a/Pages/Login.cshtml b/Pages/Login.cshtml index c5ea65c..5c58ee8 100644 --- a/Pages/Login.cshtml +++ b/Pages/Login.cshtml @@ -4,31 +4,31 @@ ViewData["Title"] = "Login"; } -
-
-

Login

+
+ +

Login

-
- -
- -
- +
+ + + + + + +
-
- -
- -
- +
+ + + + + + +
-
- -
-
- -
-
+
+ +
diff --git a/Pages/Logout.cshtml b/Pages/Logout.cshtml index 262df8a..353898e 100644 --- a/Pages/Logout.cshtml +++ b/Pages/Logout.cshtml @@ -4,5 +4,5 @@ ViewData["Title"] = "Logout"; } -

How did you get here?

+

How did you get here?

diff --git a/Pages/Shared/_Layout.cshtml b/Pages/Shared/_Layout.cshtml index 3e07dc0..bd7a47c 100644 --- a/Pages/Shared/_Layout.cshtml +++ b/Pages/Shared/_Layout.cshtml @@ -5,35 +5,29 @@ @ViewData["Title"] - JustShortIt - + - -