This commit is contained in:
Adam 2024-04-12 12:02:24 +02:00
commit 9c385b9305
5 changed files with 24 additions and 9 deletions

View File

@ -25,14 +25,14 @@
public static List<NavMenuItem> SubMenu1 = new List<NavMenuItem>
{
new NavMenuItem("Weboldal/Applikáció", "/#"),
new NavMenuItem("Landing page", "/#"),
new NavMenuItem("Webdesign", "/#"),
new NavMenuItem("Arculattervezés", "/#"),
new NavMenuItem("Grafikai munkák", "/#"),
new NavMenuItem("Weboldal/Applikáció", "/webdevelopment"),
new NavMenuItem("Landing page", "/landingpage"),
new NavMenuItem("Webdesign", "/webdesign"),
new NavMenuItem("Arculattervezés", "/brand"),
new NavMenuItem("Grafikai munkák", "/graphic"),
new NavMenuItem("3D web elemek", "/#"),
new NavMenuItem("AI Chatbotok", "/#"),
new NavMenuItem("Egyedi szoftverfejlesztés", "/#"),
new NavMenuItem("Egyedi szoftverfejlesztés", "/softwaredevelopment"),
};

View File

@ -9,6 +9,11 @@
<CardComponent/>
@code {
[Inject]
public IJSRuntime? JSRuntime { get; set; }
private IJSObjectReference? _jsModule;
public TitlePlusImageModel contentModel1 = new TitlePlusImageModel("Ismerked meg MangoWeb", ContentModel1Description, "https://images.unsplash.com/photo-1540331547168-8b63109225b7?q=80&w=2038&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", CButtons);
public static List<DescriptionContent> ContentModel1Description = new List<DescriptionContent>
@ -26,5 +31,16 @@
new ContentButton("Cancel", "#")
};
protected override async Task OnAfterRenderAsync(bool firstRender)
{
base.OnAfterRender(firstRender);
if (firstRender)
{
_jsModule = await JSRuntime.InvokeAsync<IJSObjectReference>("import", "./_content/SharedUI/assets/exampleJsInterop.js");
await _jsModule.InvokeVoidAsync("getMessage");
}
}
}

View File

@ -7,7 +7,7 @@
<TitlePlusImageLeftComponent titlePlusImageModel="@contentModel1"></TitlePlusImageLeftComponent>
@code {
public TitlePlusImageModel contentModel1 = new TitlePlusImageModel("Software Development", ContentModel1Description, "https://images.unsplash.com/photo-1540331547168-8b63109225b7?q=80&w=2038&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", CButtons);
public TitlePlusImageModel contentModel1 = new TitlePlusImageModel("Software Development", ContentModel1Description, "https://images.unsplash.com/photo-1519389950473-47ba0277781c?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Nnx8c29mdHdhcmUlMjBkZXZlbG9wbWVudHxlbnwwfHwwfHx8MA%3D%3D", CButtons);
public static List<DescriptionContent> ContentModel1Description = new List<DescriptionContent>
{

View File

@ -6,7 +6,7 @@
<TitlePlusImageLeftComponent titlePlusImageModel="@contentModel1"></TitlePlusImageLeftComponent>
@code {
public TitlePlusImageModel contentModel1 = new TitlePlusImageModel("Web Design", ContentModel1Description, "https://unsplash.com/photos/change-by-design-by-tim-brown-book-beside-smartphone-IyaNci0CyRk", CButtons);
public TitlePlusImageModel contentModel1 = new TitlePlusImageModel("Web Design", ContentModel1Description, "https://plus.unsplash.com/premium_photo-1682140914933-f9704d7bc14f?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8ODV8fHNvZnR3YXJlJTIwZGV2ZWxvcG1lbnR8ZW58MHx8MHx8fDA%3D", CButtons);
public static List<DescriptionContent> ContentModel1Description = new List<DescriptionContent>
{

View File

@ -15,7 +15,6 @@ function initMassive() {
}
var x = 1;