From bf0d1449a7388ce1ae3687934f61b44390c21414 Mon Sep 17 00:00:00 2001 From: Djoufson CHE BENE Date: Sat, 11 Jan 2025 23:26:09 +0100 Subject: [PATCH] refactor: disable the .NET Conf registration links --- app/Components/Pages/NET.Conf/Home.razor | 35 ++++++-- app/Components/Pages/NET.Conf/Home.razor.cs | 3 - app/styles/input.css | 4 + app/wwwroot/app.css | 94 +++++---------------- 4 files changed, 53 insertions(+), 83 deletions(-) diff --git a/app/Components/Pages/NET.Conf/Home.razor b/app/Components/Pages/NET.Conf/Home.razor index 395d2bd..7cb10bb 100644 --- a/app/Components/Pages/NET.Conf/Home.razor +++ b/app/Components/Pages/NET.Conf/Home.razor @@ -32,9 +32,9 @@

.NET Conf 2024 Cameroon 🚀🇨🇲

Join the .NET Revolution in Cameroon!

- Register Now - Become a Speaker - Support the Event + Register Now + Become a Speaker + Support the Event
@@ -45,7 +45,24 @@
- +
+
+ 0 + Days +
+
+ 00 + Hours +
+
+ 00 + Minutes +
+
+ 00 + Seconds +
+

Get ready to expand your skills, meet fellow developers, and dive into the latest trends in .NET at this year’s event! Here’s what awaits you

    @@ -97,7 +114,7 @@
  • Get Inspired by Industry Leaders
  • Build Your Professional Network
- Register Now + Register Now
@@ -115,7 +132,7 @@
  • Networking opportunities: interact with experts
  • Personal branding: elevate your image.
  • - Become a Speaker + Become a Speaker Call to speaker photo @@ -157,8 +174,8 @@

    Meet our amazing Sponsors and Partners

    Our sponsors and partners power .NET Conf Cameroon, fostering innovation and growth in our tech community. Join us to showcase your brand and make a lasting impact!

    diff --git a/app/Components/Pages/NET.Conf/Home.razor.cs b/app/Components/Pages/NET.Conf/Home.razor.cs index 144b13c..0ce806c 100644 --- a/app/Components/Pages/NET.Conf/Home.razor.cs +++ b/app/Components/Pages/NET.Conf/Home.razor.cs @@ -8,9 +8,6 @@ public partial class Home 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"), diff --git a/app/styles/input.css b/app/styles/input.css index 57f6303..6d0926b 100644 --- a/app/styles/input.css +++ b/app/styles/input.css @@ -76,6 +76,10 @@ @apply border border-white bg-transparent hover:bg-white transition-all active:bg-slate-100 text-white hover:text-secondary; } +.btn.btn-disabled { + @apply bg-blue-500 text-white font-semibold cursor-not-allowed opacity-50; +} + /* Links */ .link { @apply underline transition-all; diff --git a/app/wwwroot/app.css b/app/wwwroot/app.css index 9636ddb..51be91e 100644 --- a/app/wwwroot/app.css +++ b/app/wwwroot/app.css @@ -680,10 +680,6 @@ video { margin-bottom: 1rem; } -.-mb-px { - margin-bottom: -1px; -} - .mb-2 { margin-bottom: 0.5rem; } @@ -700,10 +696,6 @@ video { margin-bottom: 2rem; } -.me-2 { - margin-inline-end: 0.5rem; -} - .ml-2 { margin-left: 0.5rem; } @@ -744,10 +736,6 @@ video { margin-top: 2rem; } -.mr-1 { - margin-right: 0.25rem; -} - .line-clamp-2 { overflow: hidden; display: -webkit-box; @@ -766,10 +754,6 @@ video { display: block; } -.inline-block { - display: inline-block; -} - .flex { display: flex; } @@ -879,10 +863,6 @@ video { height: 100vh; } -.h-4 { - height: 1rem; -} - .max-h-\[400px\] { max-height: 400px; } @@ -972,10 +952,6 @@ video { width: 100%; } -.w-4 { - width: 1rem; -} - .max-w-2xl { max-width: 42rem; } @@ -1020,6 +996,10 @@ video { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } +.cursor-not-allowed { + cursor: not-allowed; +} + .cursor-pointer { cursor: pointer; } @@ -1142,11 +1122,6 @@ video { border-radius: 0.75rem; } -.rounded-t-lg { - border-top-left-radius: 0.5rem; - border-top-right-radius: 0.5rem; -} - .rounded-br-lg { border-bottom-right-radius: 0.5rem; } @@ -1167,10 +1142,6 @@ video { border-width: 1px; } -.border-b { - border-bottom-width: 1px; -} - .border-b-2 { border-bottom-width: 2px; } @@ -1188,11 +1159,6 @@ video { border-color: rgb(0 0 0 / var(--tw-border-opacity)); } -.border-gray-200 { - --tw-border-opacity: 1; - border-color: rgb(229 231 235 / var(--tw-border-opacity)); -} - .border-gray-400 { --tw-border-opacity: 1; border-color: rgb(156 163 175 / var(--tw-border-opacity)); @@ -1247,6 +1213,11 @@ video { background-color: rgb(96 165 250 / var(--tw-bg-opacity)); } +.bg-blue-500 { + --tw-bg-opacity: 1; + background-color: rgb(59 130 246 / var(--tw-bg-opacity)); +} + .bg-primary { --tw-bg-opacity: 1; background-color: rgb(10 133 95 / var(--tw-bg-opacity)); @@ -1502,11 +1473,6 @@ video { line-height: 1rem; } -.text-xl { - font-size: 1.25rem; - line-height: 1.75rem; -} - .font-bold { font-weight: 700; } @@ -1576,6 +1542,10 @@ video { color: rgb(133 77 14 / var(--tw-text-opacity)); } +.opacity-50 { + opacity: 0.5; +} + .opacity-70 { opacity: 0.7; } @@ -1586,12 +1556,6 @@ video { box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } -.shadow-md { - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - .blur { --tw-blur: blur(8px); filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); @@ -1607,16 +1571,6 @@ video { transition-duration: 150ms; } -.transition-shadow { - transition-property: box-shadow; - transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - transition-duration: 150ms; -} - -.duration-300 { - transition-duration: 300ms; -} - * { font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; scroll-behavior: smooth; @@ -1850,6 +1804,16 @@ video { background-color: rgb(241 245 249 / var(--tw-bg-opacity)); } +.btn.btn-disabled { + cursor: not-allowed; + --tw-bg-opacity: 1; + background-color: rgb(59 130 246 / var(--tw-bg-opacity)); + font-weight: 600; + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); + opacity: 0.5; +} + /* Links */ .link { @@ -2577,15 +2541,3 @@ video { padding-right: 2rem; } } - -@media (prefers-color-scheme: dark) { - .dark\:border-gray-700 { - --tw-border-opacity: 1; - border-color: rgb(55 65 81 / var(--tw-border-opacity)); - } - - .dark\:text-gray-400 { - --tw-text-opacity: 1; - color: rgb(156 163 175 / var(--tw-text-opacity)); - } -}