-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@page "/schedule-meeting/{link}" | ||
|
||
@layout BasicLayout | ||
|
||
<Metadata Title="Schedule a Meeting" | ||
Description="Don't hesitate to schedule a meeting at your convenience, specifying your preferred time and duration." | ||
Keywords="@(new string[] { "schedule", "meeting" })" /> | ||
|
||
|
||
<div id="calendly-embed" class="w-full h-[50rem]"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace Byteology.Website.Company; | ||
|
||
using Microsoft.JSInterop; | ||
|
||
public partial class ScheduleMeeting : ComponentBase | ||
{ | ||
[Inject] | ||
private IJSRuntime _jsRuntimeAsync { get; set; } = default!; | ||
private IJSInProcessRuntime _jsRuntime => (IJSInProcessRuntime)_jsRuntimeAsync; | ||
|
||
[Parameter] | ||
public string Link { get; set; } = null!; | ||
|
||
protected override void OnAfterRender(bool firstRender) | ||
{ | ||
string link = $"https://calendly.com/tsvetan-igov/{Link}?background_color=090326&text_color=ffffff&primary_color=573ce2"; | ||
_jsRuntime.InvokeVoid("initCalendly", link); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
window.initCalendly = (link) => { | ||
Calendly.initInlineWidget({ | ||
url: "https://calendly.com/tsvetan-igov/" + link + "?background_color=090326&text_color=ffffff&primary_color=573ce2", | ||
parentElement: document.getElementById('calendly-embed') | ||
}); | ||
} |