From 8e7116cb5ca8f3a19eb77c137c1dfad529acaa4d Mon Sep 17 00:00:00 2001 From: Khoi Ngo <67892332+BillQK@users.noreply.github.com> Date: Wed, 18 Jun 2025 22:33:19 -0400 Subject: [PATCH] feat: interactive demo --- .../infrastructure/workspace/manager.ex | 1 - apps/gitlock_phx/assets/css/landing.css | 14 + .../controllers/landing_html.ex | 48 +- .../controllers/landing_html/index.html.heex | 3 + .../live/hotspots_preview_live.ex | 691 ++++++++++++++++++ 5 files changed, 755 insertions(+), 2 deletions(-) create mode 100644 apps/gitlock_phx/lib/gitlock_phx_web/live/hotspots_preview_live.ex diff --git a/apps/gitlock_core/lib/gitlock_core/infrastructure/workspace/manager.ex b/apps/gitlock_core/lib/gitlock_core/infrastructure/workspace/manager.ex index 2f4790c..fc6227c 100644 --- a/apps/gitlock_core/lib/gitlock_core/infrastructure/workspace/manager.ex +++ b/apps/gitlock_core/lib/gitlock_core/infrastructure/workspace/manager.ex @@ -358,7 +358,6 @@ defmodule GitlockCore.Infrastructure.Workspace.Manager do ["clone"] ++ Enum.flat_map(opts, fn {:depth, n} when is_integer(n) -> ["--depth", to_string(n)] - {:branch, b} when is_binary(b) -> ["--branch", b] {:single_branch, true} -> ["--single-branch"] _ -> [] end) diff --git a/apps/gitlock_phx/assets/css/landing.css b/apps/gitlock_phx/assets/css/landing.css index 20702f0..115b697 100644 --- a/apps/gitlock_phx/assets/css/landing.css +++ b/apps/gitlock_phx/assets/css/landing.css @@ -495,3 +495,17 @@ body { fill: white; } } +@keyframes fade-in { + from { + opacity: 0; + transform: translateY(10px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +.animate-fade-in { + animation: fade-in 0.5s ease-out; +} diff --git a/apps/gitlock_phx/lib/gitlock_phx_web/controllers/landing_html.ex b/apps/gitlock_phx/lib/gitlock_phx_web/controllers/landing_html.ex index f35d393..cc5358c 100644 --- a/apps/gitlock_phx/lib/gitlock_phx_web/controllers/landing_html.ex +++ b/apps/gitlock_phx/lib/gitlock_phx_web/controllers/landing_html.ex @@ -222,7 +222,7 @@ defmodule GitlockPhxWeb.LandingHTML do BETA -
+ Analyze any GitHub repository and see instant insights +
+No significant hotspots found in this repository. Great job! 🎉
+Try with any GitHub repository URL
+Example: https://github.com/phoenixframework/phoenix
+