Skip to content

Commit

Permalink
Test for calendly inline styling
Browse files Browse the repository at this point in the history
  • Loading branch information
tsIgov committed Feb 1, 2024
1 parent affeff3 commit 0ea17c4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Byteology.Website/Byteology.Website.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
<RunPostBuildEvent>Always</RunPostBuildEvent>
</PropertyGroup>

<PropertyGroup>
<BlazorWasmPrerenderingUrlPathToExplicitFetch>/schedule-meeting/explore-a-service;/schedule-meeting/introductory-meeting;/schedule-meeting/free-consultation</BlazorWasmPrerenderingUrlPathToExplicitFetch>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BlazorIntersectionObserver" Version="3.1.0" />
<PackageReference Include="BlazorWasmPreRendering.Build" Version="2.0.0-preview.9" />
Expand Down
2 changes: 1 addition & 1 deletion src/Byteology.Website/Company/ScheduleMeeting.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
Keywords="@(new string[] { "schedule", "meeting" })" />


<div id="calendly-embed" class="w-full h-[50rem]"></div>
<div id="calendly-embed"></div>
8 changes: 8 additions & 0 deletions src/Byteology.Website/Company/ScheduleMeeting.razor.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#calendly-embed ::deep > .calendly-spinner
{
@apply panel;
}

#calendly-embed {
@apply w-full h-[50rem];
}
2 changes: 2 additions & 0 deletions src/Byteology.Website/wwwroot/js/calendly.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ window.initCalendly = (link) => {
url: "https://calendly.com/tsvetan-igov/" + link + "?background_color=090326&text_color=ffffff&primary_color=573ce2",
parentElement: document.getElementById('calendly-embed')
});

document.getElementById('calendly-embed').style = "opacity: 1";
}

0 comments on commit 0ea17c4

Please sign in to comment.