From 8743849feeed3665ba485ade2e5a63d9ba75132a Mon Sep 17 00:00:00 2001 From: Beau Findlay Date: Tue, 12 Mar 2024 21:50:22 +0000 Subject: [PATCH 1/5] Hide recaptcha badge --- .../src/BeauFindlay.Client/Pages/Contact.razor | 15 +++++++-------- BeauFindlay/src/BeauFindlay.Client/_Imports.razor | 3 ++- .../src/BeauFindlay.Client/wwwroot/css/app.css | 7 ++++++- .../BeauFindlay.Client/wwwroot/css/app.min.css | 11 ++++++++--- .../src/BeauFindlay.Client/wwwroot/index.html | 3 +++ 5 files changed, 26 insertions(+), 13 deletions(-) diff --git a/BeauFindlay/src/BeauFindlay.Client/Pages/Contact.razor b/BeauFindlay/src/BeauFindlay.Client/Pages/Contact.razor index de4e9b4..9ed2d5f 100644 --- a/BeauFindlay/src/BeauFindlay.Client/Pages/Contact.razor +++ b/BeauFindlay/src/BeauFindlay.Client/Pages/Contact.razor @@ -2,7 +2,7 @@ @using BeauFindlay.Shared.Contracts @inject HttpClient HttpClient -@inject IJSRuntime JsRuntime +@inject IJSRuntime JSRuntime

Contact

@@ -12,7 +12,7 @@

-
+
@@ -39,7 +39,10 @@
-
+
+ This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. +
+
@@ -66,10 +69,6 @@
} - - - @code { private readonly ContactInputModel contactInput = new(); @@ -96,7 +95,7 @@ { isSubmitting = true; - var recaptchaResponse = await JsRuntime.InvokeAsync("executeRecaptcha"); + var recaptchaResponse = await JSRuntime.InvokeAsync("executeRecaptcha"); if (string.IsNullOrWhiteSpace(recaptchaResponse)) { diff --git a/BeauFindlay/src/BeauFindlay.Client/_Imports.razor b/BeauFindlay/src/BeauFindlay.Client/_Imports.razor index f0ed136..aaeab63 100644 --- a/BeauFindlay/src/BeauFindlay.Client/_Imports.razor +++ b/BeauFindlay/src/BeauFindlay.Client/_Imports.razor @@ -12,4 +12,5 @@ @using BeauFindlay.Client.Components.Alert @using BeauFindlay.Client.Components.Typewriter @using BeauFindlay.Client.Components.Button -@using BeauFindlay.Client.Components.LoadingSpinner \ No newline at end of file +@using BeauFindlay.Client.Components.LoadingSpinner +@using BeauFindlay.Shared.Contracts \ No newline at end of file diff --git a/BeauFindlay/src/BeauFindlay.Client/wwwroot/css/app.css b/BeauFindlay/src/BeauFindlay.Client/wwwroot/css/app.css index 9879179..f01f334 100644 --- a/BeauFindlay/src/BeauFindlay.Client/wwwroot/css/app.css +++ b/BeauFindlay/src/BeauFindlay.Client/wwwroot/css/app.css @@ -20,4 +20,9 @@ @keyframes fadeInAnimation { from { opacity: 0; } to { opacity: 1; } -} \ No newline at end of file +} + +.grecaptcha-badge { + visibility: hidden !important; +} + diff --git a/BeauFindlay/src/BeauFindlay.Client/wwwroot/css/app.min.css b/BeauFindlay/src/BeauFindlay.Client/wwwroot/css/app.min.css index 4c5ec61..31843cc 100644 --- a/BeauFindlay/src/BeauFindlay.Client/wwwroot/css/app.min.css +++ b/BeauFindlay/src/BeauFindlay.Client/wwwroot/css/app.min.css @@ -809,8 +809,8 @@ video { padding-bottom: 1rem; } -.pt-10 { - padding-top: 2.5rem; +.pt-8 { + padding-top: 2rem; } .text-center { @@ -980,6 +980,10 @@ video { } } +.grecaptcha-badge { + visibility: hidden !important; +} + .placeholder\:text-gray-400::-moz-placeholder { --tw-text-opacity: 1; color: rgb(156 163 175 / var(--tw-text-opacity)); @@ -1090,4 +1094,5 @@ video { --tw-text-opacity: 1; color: rgb(75 85 99 / var(--tw-text-opacity)); } -} \ No newline at end of file +} + diff --git a/BeauFindlay/src/BeauFindlay.Client/wwwroot/index.html b/BeauFindlay/src/BeauFindlay.Client/wwwroot/index.html index 92a81b4..a53ac4e 100644 --- a/BeauFindlay/src/BeauFindlay.Client/wwwroot/index.html +++ b/BeauFindlay/src/BeauFindlay.Client/wwwroot/index.html @@ -26,6 +26,9 @@
+ + From 1cb93655db15dd30dfa2f234a7bf6b9ee53b7569 Mon Sep 17 00:00:00 2001 From: Beau Findlay Date: Tue, 12 Mar 2024 21:50:47 +0000 Subject: [PATCH 2/5] Add scrollbar style --- .../src/BeauFindlay.Client/wwwroot/css/app.css | 12 ++++++++++++ .../BeauFindlay.Client/wwwroot/css/app.min.css | 16 ++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/BeauFindlay/src/BeauFindlay.Client/wwwroot/css/app.css b/BeauFindlay/src/BeauFindlay.Client/wwwroot/css/app.css index f01f334..2e4bccb 100644 --- a/BeauFindlay/src/BeauFindlay.Client/wwwroot/css/app.css +++ b/BeauFindlay/src/BeauFindlay.Client/wwwroot/css/app.css @@ -26,3 +26,15 @@ visibility: hidden !important; } +body::-webkit-scrollbar { + width: 14px; +} + +body::-webkit-scrollbar-track { + background: white; +} + +body::-webkit-scrollbar-thumb { + background-color: black; + border: 1px solid white; +} \ No newline at end of file diff --git a/BeauFindlay/src/BeauFindlay.Client/wwwroot/css/app.min.css b/BeauFindlay/src/BeauFindlay.Client/wwwroot/css/app.min.css index 31843cc..59cb078 100644 --- a/BeauFindlay/src/BeauFindlay.Client/wwwroot/css/app.min.css +++ b/BeauFindlay/src/BeauFindlay.Client/wwwroot/css/app.min.css @@ -984,6 +984,19 @@ video { visibility: hidden !important; } +body::-webkit-scrollbar { + width: 14px; +} + +body::-webkit-scrollbar-track { + background: white; +} + +body::-webkit-scrollbar-thumb { + background-color: black; + border: 1px solid white; +} + .placeholder\:text-gray-400::-moz-placeholder { --tw-text-opacity: 1; color: rgb(156 163 175 / var(--tw-text-opacity)); @@ -1094,5 +1107,4 @@ video { --tw-text-opacity: 1; color: rgb(75 85 99 / var(--tw-text-opacity)); } -} - +} \ No newline at end of file From 878423aeff0b889b75eadc9f500eb547ffa47632 Mon Sep 17 00:00:00 2001 From: Beau Findlay Date: Tue, 12 Mar 2024 22:09:43 +0000 Subject: [PATCH 3/5] Remove template function --- BeauFindlay/src/BeauFindlay.Api/Function1.cs | 25 -------------------- 1 file changed, 25 deletions(-) delete mode 100644 BeauFindlay/src/BeauFindlay.Api/Function1.cs diff --git a/BeauFindlay/src/BeauFindlay.Api/Function1.cs b/BeauFindlay/src/BeauFindlay.Api/Function1.cs deleted file mode 100644 index 9260290..0000000 --- a/BeauFindlay/src/BeauFindlay.Api/Function1.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System.Net; -using Microsoft.Azure.Functions.Worker; -using Microsoft.Azure.Functions.Worker.Http; -using Microsoft.Extensions.Logging; - -namespace BeauFindlay.Api -{ - public class Function1(ILoggerFactory loggerFactory) - { - private readonly ILogger _logger = loggerFactory.CreateLogger(); - - [Function("Function1")] - public HttpResponseData Run([HttpTrigger(AuthorizationLevel.Function, "get", "post")] HttpRequestData req) - { - _logger.LogInformation("C# HTTP trigger function processed a request."); - - var response = req.CreateResponse(HttpStatusCode.OK); - response.Headers.Add("Content-Type", "text/plain; charset=utf-8"); - - response.WriteString("Welcome to Azure Functions!"); - - return response; - } - } -} From d5bad76fb0ab5c0c2905e4aad82c7322ffd8f456 Mon Sep 17 00:00:00 2001 From: Beau Findlay Date: Tue, 12 Mar 2024 22:09:53 +0000 Subject: [PATCH 4/5] Add anchor component --- .../Components/Anchor/Anchor.razor | 18 ++++++++++++++++++ .../src/BeauFindlay.Client/Layout/Footer.razor | 2 +- .../BeauFindlay.Client/Layout/MainLayout.razor | 2 +- .../src/BeauFindlay.Client/Layout/NavBar.razor | 2 +- .../src/BeauFindlay.Client/Pages/About.razor | 8 ++++---- .../src/BeauFindlay.Client/Pages/Contact.razor | 3 +-- .../src/BeauFindlay.Client/Pages/Home.razor | 6 +++--- .../src/BeauFindlay.Client/_Imports.razor | 1 + .../src/BeauFindlay.Client/wwwroot/css/app.css | 2 +- .../BeauFindlay.Client/wwwroot/css/app.min.css | 2 +- 10 files changed, 32 insertions(+), 14 deletions(-) create mode 100644 BeauFindlay/src/BeauFindlay.Client/Components/Anchor/Anchor.razor diff --git a/BeauFindlay/src/BeauFindlay.Client/Components/Anchor/Anchor.razor b/BeauFindlay/src/BeauFindlay.Client/Components/Anchor/Anchor.razor new file mode 100644 index 0000000..af28abc --- /dev/null +++ b/BeauFindlay/src/BeauFindlay.Client/Components/Anchor/Anchor.razor @@ -0,0 +1,18 @@ + + @ChildContent + + +@code { + + [Parameter] + public string Href { get; set; } = string.Empty; + + [Parameter] + public string Target { get; set; } = "_blank"; + + [Parameter] + public RenderFragment? ChildContent { get; set; } + +} \ No newline at end of file diff --git a/BeauFindlay/src/BeauFindlay.Client/Layout/Footer.razor b/BeauFindlay/src/BeauFindlay.Client/Layout/Footer.razor index da00afd..23549bc 100644 --- a/BeauFindlay/src/BeauFindlay.Client/Layout/Footer.razor +++ b/BeauFindlay/src/BeauFindlay.Client/Layout/Footer.razor @@ -1,4 +1,4 @@ -