From b92567bebc98d6d178ccf4932537f9302b1a0240 Mon Sep 17 00:00:00 2001 From: Djoufson CHE BENE Date: Wed, 8 Jan 2025 16:30:24 +0100 Subject: [PATCH] fix: sponsor time in agenda --- app/Components/Components/SessionCard.razor | 2 +- app/Components/Pages/NET.Conf/Home.razor | 185 ------------------- app/Components/Pages/NET.Conf/Home.razor.cs | 188 ++++++++++++++++++++ app/Program.cs | 1 + 4 files changed, 190 insertions(+), 186 deletions(-) create mode 100644 app/Components/Pages/NET.Conf/Home.razor.cs diff --git a/app/Components/Components/SessionCard.razor b/app/Components/Components/SessionCard.razor index 027575f..b624f9e 100644 --- a/app/Components/Components/SessionCard.razor +++ b/app/Components/Components/SessionCard.razor @@ -2,7 +2,7 @@
- @Session.StartTime - @Session.EndTime + @Session.StartTime.ToString("hh:mm tt") - @Session.EndTime.ToString("hh:mm tt")
@if (Session.Type == SessionType.Advertisement) diff --git a/app/Components/Pages/NET.Conf/Home.razor b/app/Components/Pages/NET.Conf/Home.razor index cfc6dc1..47908e7 100644 --- a/app/Components/Pages/NET.Conf/Home.razor +++ b/app/Components/Pages/NET.Conf/Home.razor @@ -232,188 +232,3 @@
- -@code { - - private string EventUrl = "https://forms.office.com/r/ChLwZEYr53"; - private string SpeakerLink = "https://forms.office.com/r/debtL0TDmA"; - private string SponsorLink = "https://forms.office.com/r/YnKLW60s73"; - - private string _dotnetSessionsClass = string.Empty; - private string _microsoftSessionsClass = "hidden"; - - private Activity[] Activities = [ - new ("Inspiring Sessions and Conferences", "Dive into cutting-edge topics and explore the latest in .NET technology through insightful sessions and talks. Learn from experts as they cover a wide range of topics, from web and mobile development to cloud solutions and artificial intelligence", "/assets/activities/activity-2.jpeg", "Tech"), - new ("Meet Microsoft Experts", "Gain exclusive insights from Microsoft employees who work directly on .NET and related technologies. This is your chance to hear directly from those shaping the future of .NET and to ask questions that matter to your projects.", "/assets/featured/net9.png", "Culture"), - new ("Networking and Connections", "Build meaningful connections with fellow developers, industry professionals, and tech enthusiasts. Exchange ideas, discuss solutions, and expand your network within the vibrant .NET community of Cameroon and beyond.", "/assets/featured/carousel-2.png", "Community"), - ]; - - private Partner[] Partners = [ - new ("/assets/sponsors/dotnetfondation.webp", ".NET Foundation", "https://dotnetfoundation.org"), - new ("/assets/sponsors/proditech.png", "Proditech Consulting", "https://proditech-digital.com"), - new ("/assets/sponsors/itia-removebg-preview.png", "ITIA Solutions Consulting", "https://itia-consulting.com"), - new ("/assets/sponsors/codec.png", "Codec", "https://codec.cm"), - new ("/assets/sponsors/tcd-cmr.png", "Tech Communities Day Cameroon", "https://www.linkedin.com/company/tech-communities-day-cameroon"), - new ("/assets/sponsors/examboot.jpg", "Examboot", "https://examboot.net/"), - new ("/assets/sponsors/Microsoft_PowerPlateform_Cameroun-removebg-preview.png", "Microsoft PowerPlateform Cameroun", "https://www.linkedin.com/company/communaut%C3%A9-microsoft-powerplatform"), - ]; - - private Session[] MicrosoftSessions = [ - new( - "Keynote", - null, - [ new Speaker("Boris Gautier", "Software, SI, DevOps and Lead Engineer", "", null, null, null)], - new TimeOnly(10, 00), - new TimeOnly(10, 30), - SessionType.Keynote, Room.Microsoft), - new( - "Copilot: prise en main de copilot sur Microsoft 365", - null, - [ new Speaker("Tchassem Eric", "CEO of PRODITECH", "", null, null, null)], - new TimeOnly(10, 30), - new TimeOnly(11, 00), - SessionType.Talk, Room.Microsoft), - new( - "ITIA", - null, - [ new Speaker("ITIA", "ITIA", "", null, null, null)], - new TimeOnly(11, 00), - new TimeOnly(11, 15), - SessionType.Advertisement, Room.Microsoft), - new( - "Git and GitHub for Dummies", - null, - [ new Speaker("Steve Yonkeu", "Software Engineer", "", null, null, null)], - new TimeOnly(11, 15), - new TimeOnly(11, 45), - SessionType.Talk, Room.Microsoft), - new( - "Microsoft Power BI - Initiation à Power BI : Exploration des données et création de tableaux de bord interactifs", - null, - [ new Speaker("BITÉE Méryl", "Ing @ ARII, Architecte des Technologies du Numériques", "", null, null, null)], - new TimeOnly(11, 45), - new TimeOnly(12, 15), - SessionType.Talk, Room.Microsoft), - new( - "Break", - null, - [ new Speaker("Break", "Break", "", null, null, null)], - new TimeOnly(12, 15), - new TimeOnly(12, 45), - SessionType.Break, Room.Microsoft), - new( - "Tech Community", - null, - [ new Speaker("Tech Community", "Tech Community", "", null, null, null)], - new TimeOnly(12, 45), - new TimeOnly(13, 00), - SessionType.Advertisement, Room.Microsoft), - new( - "Développer une application web moderne avec Python et .NET : Une approche hybride pour les développeurs web", - null, - [ new Speaker("Johanna Felicia", "Software Engineer", "", null, null, null)], - new TimeOnly(13, 00), - new TimeOnly(13, 30), - SessionType.Talk, Room.Microsoft), - new( - "Overview of Microsoft AI solutions", - null, - [ new Speaker("Kana Azeuko Sherelle", "Machine Learning Engineer", "", null, null, null)], - new TimeOnly(13, 30), - new TimeOnly(14, 00), - SessionType.Talk, Room.Microsoft), - ]; - - private Session[] DotnetSessions = [ - new( - "Keynote", - null, - [ new Speaker("Doriane Mangamtcheuth", "Analyste M365 | Power Platform | Microsoft Dynamics 365", "", null, null, null)], - new TimeOnly(10, 00), - new TimeOnly(10, 30), - SessionType.Keynote, Room.Dotnet), - new( - "Deploy .NET Aspire app to Kubernetes using Azure DevOps pipelines", - null, - [ new Speaker("Vahid Farahmandian", "CEO of Spoota Co", "", null, null, null)], - new TimeOnly(10, 30), - new TimeOnly(11, 00), - SessionType.Talk, Room.Dotnet), - new( - "CODEC", - null, - [ new Speaker("CODEC", "CODEC", "", null, null, null)], - new TimeOnly(11, 00), - new TimeOnly(11, 15), - SessionType.Advertisement, Room.Dotnet), - new( - "Moderniser son architecture avec .NET et Azure", - null, - [ new Speaker("NTONGA Franck Loïc", "DevOps Engineer", "", null, null, null)], - new TimeOnly(11, 15), - new TimeOnly(11, 45), - SessionType.Talk, Room.Dotnet), - new( - "Pourquoi choisir .NET 9 en 2025: Fonctionnalités, Avantages et Innovations", - null, - [ new Speaker("Djoufson Che", "Software Engineer @ L'Agence Digitale", "", null, null, null)], - new TimeOnly(11, 45), - new TimeOnly(12, 15), - SessionType.Talk, Room.Dotnet), - new( - "Break", - null, - [ new Speaker("Break", "Break", "", null, null, null)], - new TimeOnly(12, 15), - new TimeOnly(12, 45), - SessionType.Break, Room.Dotnet), - new( - "Tech Community", - null, - [ new Speaker("Examboot", "Examboot", "", null, null, null)], - new TimeOnly(12, 45), - new TimeOnly(13, 00), - SessionType.Advertisement, Room.Dotnet), - new( - "Le Domain-Driven Design du point de vue du client", - null, - [ new Speaker("Aguekeng Arolle", "Software Engineer @ RHOPEN LABS", "", null, null, null)], - new TimeOnly(13, 00), - new TimeOnly(13, 30), - SessionType.Talk, Room.Dotnet), - new( - "Cross-Platform Development Simplified: Building a Sync-Enabled To-Do App with .NET MAUI and Parse", - null, - [ new Speaker("Yvan Brunel", ".NET Developer", "", null, null, null)], - new TimeOnly(13, 30), - new TimeOnly(14, 00), - SessionType.Talk, Room.Dotnet), - ]; - - private void ShowDotnetSessions() - { - _dotnetSessionsClass = string.Empty; - _microsoftSessionsClass = "hidden"; - StateHasChanged(); - } - - private void ShowMicrosoftSessions() - { - _dotnetSessionsClass = "hidden"; - _microsoftSessionsClass = string.Empty; - StateHasChanged(); - } - - record Activity( - string Title, - string Desctiption, - string ImageUrl, - string Label - ); - - record Partner( - string ImageUrl, - string Name, - string? Website - ); -} diff --git a/app/Components/Pages/NET.Conf/Home.razor.cs b/app/Components/Pages/NET.Conf/Home.razor.cs new file mode 100644 index 0000000..34ed133 --- /dev/null +++ b/app/Components/Pages/NET.Conf/Home.razor.cs @@ -0,0 +1,188 @@ +using app.domain.ViewModels; + +namespace app.Components.Pages.NET_Conf; + +public partial class Home +{ + private string EventUrl = "https://forms.office.com/r/ChLwZEYr53"; + private string SpeakerLink = "https://forms.office.com/r/debtL0TDmA"; + private string SponsorLink = "https://forms.office.com/r/YnKLW60s73"; + + private string _dotnetSessionsClass = string.Empty; + private string _microsoftSessionsClass = "hidden"; + + private Activity[] Activities = [ + new ("Inspiring Sessions and Conferences", "Dive into cutting-edge topics and explore the latest in .NET technology through insightful sessions and talks. Learn from experts as they cover a wide range of topics, from web and mobile development to cloud solutions and artificial intelligence", "/assets/activities/activity-2.jpeg", "Tech"), + new ("Meet Microsoft Experts", "Gain exclusive insights from Microsoft employees who work directly on .NET and related technologies. This is your chance to hear directly from those shaping the future of .NET and to ask questions that matter to your projects.", "/assets/featured/net9.png", "Culture"), + new ("Networking and Connections", "Build meaningful connections with fellow developers, industry professionals, and tech enthusiasts. Exchange ideas, discuss solutions, and expand your network within the vibrant .NET community of Cameroon and beyond.", "/assets/featured/carousel-2.png", "Community"), + ]; + + private Partner[] Partners = [ + new ("/assets/sponsors/dotnetfondation.webp", ".NET Foundation", "https://dotnetfoundation.org"), + new ("/assets/sponsors/proditech.png", "Proditech Consulting", "https://proditech-digital.com"), + new ("/assets/sponsors/itia-removebg-preview.png", "ITIA Solutions Consulting", "https://itia-consulting.com"), + new ("/assets/sponsors/codec.png", "Codec", "https://codec.cm"), + new ("/assets/sponsors/tcd-cmr.png", "Tech Communities Day Cameroon", "https://www.linkedin.com/company/tech-communities-day-cameroon"), + new ("/assets/sponsors/examboot.jpg", "Examboot", "https://examboot.net/"), + new ("/assets/sponsors/Microsoft_PowerPlateform_Cameroun-removebg-preview.png", "Microsoft PowerPlateform Cameroun", "https://www.linkedin.com/company/communaut%C3%A9-microsoft-powerplatform"), + ]; + + private Session[] MicrosoftSessions = [ + new( + "Keynote", + null, + [ new Speaker("Boris Gautier", "Software, SI, DevOps and Lead Engineer", "", null, null, null)], + new TimeOnly(10, 00), + new TimeOnly(10, 30), + SessionType.Keynote, Room.Microsoft), + new( + "Copilot: prise en main de copilot sur Microsoft 365", + null, + [ new Speaker("Tchassem Eric", "CEO of PRODITECH", "", null, null, null)], + new TimeOnly(10, 30), + new TimeOnly(11, 00), + SessionType.Talk, Room.Microsoft), + new( + "ITIA", + null, + [ new Speaker("ITIA", "ITIA", "", null, null, null)], + new TimeOnly(11, 00), + new TimeOnly(11, 15), + SessionType.Advertisement, Room.Microsoft), + new( + "Git and GitHub for Dummies", + null, + [ new Speaker("Steve Yonkeu", "Software Engineer", "", null, null, null)], + new TimeOnly(11, 15), + new TimeOnly(11, 45), + SessionType.Talk, Room.Microsoft), + new( + "Microsoft Power BI - Initiation à Power BI : Exploration des données et création de tableaux de bord interactifs", + null, + [ new Speaker("BITÉE Méryl", "Ing @ ARII, Architecte des Technologies du Numériques", "", null, null, null)], + new TimeOnly(11, 45), + new TimeOnly(12, 15), + SessionType.Talk, Room.Microsoft), + new( + "Break", + null, + [ new Speaker("Break", "Break", "", null, null, null)], + new TimeOnly(12, 15), + new TimeOnly(12, 45), + SessionType.Break, Room.Microsoft), + new( + "Tech Community", + null, + [ new Speaker("Tech Community", "Tech Community", "", null, null, null)], + new TimeOnly(12, 45), + new TimeOnly(13, 00), + SessionType.Advertisement, Room.Microsoft), + new( + "Développer une application web moderne avec Python et .NET : Une approche hybride pour les développeurs web", + null, + [ new Speaker("Johanna Felicia", "Software Engineer", "", null, null, null)], + new TimeOnly(13, 00), + new TimeOnly(13, 30), + SessionType.Talk, Room.Microsoft), + new( + "Overview of Microsoft AI solutions", + null, + [ new Speaker("Kana Azeuko Sherelle", "Machine Learning Engineer", "", null, null, null)], + new TimeOnly(13, 30), + new TimeOnly(14, 00), + SessionType.Talk, Room.Microsoft), + new( + "PRODITECH", + null, + [ new Speaker("PRODITECH", "PRODITECH", "", null, null, null)], + new TimeOnly(14, 00), + new TimeOnly(14, 15), + SessionType.Advertisement, Room.Dotnet), + ]; + + private Session[] DotnetSessions = [ + new( + "Keynote", + null, + [ new Speaker("Doriane Mangamtcheuth", "Analyste M365 | Power Platform | Microsoft Dynamics 365", "", null, null, null)], + new TimeOnly(10, 00), + new TimeOnly(10, 30), + SessionType.Keynote, Room.Dotnet), + new( + "Deploy .NET Aspire app to Kubernetes using Azure DevOps pipelines", + null, + [ new Speaker("Vahid Farahmandian", "CEO of Spoota Co", "", null, null, null)], + new TimeOnly(10, 30), + new TimeOnly(11, 00), + SessionType.Talk, Room.Dotnet), + new( + "CODEC", + null, + [ new Speaker("CODEC", "CODEC", "", null, null, null)], + new TimeOnly(11, 00), + new TimeOnly(11, 15), + SessionType.Advertisement, Room.Dotnet), + new( + "Moderniser son architecture avec .NET et Azure", + null, + [ new Speaker("NTONGA Franck Loïc", "DevOps Engineer", "", null, null, null)], + new TimeOnly(11, 15), + new TimeOnly(11, 45), + SessionType.Talk, Room.Dotnet), + new( + "Pourquoi choisir .NET 9 en 2025: Fonctionnalités, Avantages et Innovations", + null, + [ new Speaker("Djoufson Che", "Software Engineer @ L'Agence Digitale", "", null, null, null)], + new TimeOnly(11, 45), + new TimeOnly(12, 15), + SessionType.Talk, Room.Dotnet), + new( + "Break", + null, + [ new Speaker("Break", "Break", "", null, null, null)], + new TimeOnly(12, 15), + new TimeOnly(12, 45), + SessionType.Break, Room.Dotnet), + new( + "Examboot", + null, + [ new Speaker("Examboot", "Examboot", "", null, null, null)], + new TimeOnly(12, 45), + new TimeOnly(13, 00), + SessionType.Advertisement, Room.Dotnet), + new( + "Le Domain-Driven Design du point de vue du client", + null, + [ new Speaker("Aguekeng Arolle", "Software Engineer @ RHOPEN LABS", "", null, null, null)], + new TimeOnly(13, 00), + new TimeOnly(13, 30), + SessionType.Talk, Room.Dotnet), + new( + "Cross-Platform Development Simplified: Building a Sync-Enabled To-Do App with .NET MAUI and Parse", + null, + [ new Speaker("Yvan Brunel", ".NET Developer", "", null, null, null)], + new TimeOnly(13, 30), + new TimeOnly(14, 00), + SessionType.Talk, Room.Dotnet), + new( + "PowerPlatform Cameroon", + null, + [ new Speaker("PowerPlatform Cameroon", "PowerPlatform Cameroon", "", null, null, null)], + new TimeOnly(14, 00), + new TimeOnly(14, 15), + SessionType.Advertisement, Room.Dotnet), + ]; + + record Activity( + string Title, + string Desctiption, + string ImageUrl, + string Label + ); + + record Partner( + string ImageUrl, + string Name, + string? Website + ); +} diff --git a/app/Program.cs b/app/Program.cs index 22e30fb..233b422 100644 --- a/app/Program.cs +++ b/app/Program.cs @@ -1,6 +1,7 @@ using app.Api.Identity; using app.Api.Projects; using app.Components; +using app.Components.Pages.NET_Conf; using app.Extensions; using EntityFrameworkCore.Seeder.Extensions; var builder = WebApplication.CreateBuilder(args);