From ada25da0a04a418a8e69532d0cf359ab14b5d8c2 Mon Sep 17 00:00:00 2001 From: Alexey Kazakov Date: Fri, 30 Aug 2024 11:39:26 -0700 Subject: [PATCH] Simplify social event support in internal landing page (#456) * Activation code field in internal landing page --- pkg/assets/assets_test.go | 5 +- pkg/assets/static/OpenShift-RGB.svg | 1 + .../static/OpenShift_Data_Science-RGB.svg | 1 + pkg/assets/static/index.html | 84 ++++++++++++------- pkg/assets/static/landingpage.css | 32 +++++++ pkg/assets/static/landingpage.js | 22 ++++- 6 files changed, 113 insertions(+), 32 deletions(-) create mode 100644 pkg/assets/static/OpenShift-RGB.svg create mode 100644 pkg/assets/static/OpenShift_Data_Science-RGB.svg diff --git a/pkg/assets/assets_test.go b/pkg/assets/assets_test.go index 266a66fe..f4196aad 100644 --- a/pkg/assets/assets_test.go +++ b/pkg/assets/assets_test.go @@ -26,12 +26,13 @@ func TestContent(t *testing.T) { // then require.NoError(t, err) - require.Len(t, entries, 9) - names := make([]string, 9) + require.Len(t, entries, 11) + names := make([]string, 11) for i, e := range entries { names[i] = e.Name() } assert.ElementsMatch(t, []string{ + "OpenShift-RGB.svg", "OpenShift_Data_Science-RGB.svg", "codereadyws-logo.svg", "index.html", "landingpage.js", "redhat-logo.svg", "silent-check-sso.html", "favicon.ico", "landingpage.css", "openshift-logo.svg", "rhdeveloper-logo.svg", diff --git a/pkg/assets/static/OpenShift-RGB.svg b/pkg/assets/static/OpenShift-RGB.svg new file mode 100644 index 00000000..021a8d66 --- /dev/null +++ b/pkg/assets/static/OpenShift-RGB.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/pkg/assets/static/OpenShift_Data_Science-RGB.svg b/pkg/assets/static/OpenShift_Data_Science-RGB.svg new file mode 100644 index 00000000..c0f413db --- /dev/null +++ b/pkg/assets/static/OpenShift_Data_Science-RGB.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/pkg/assets/static/index.html b/pkg/assets/static/index.html index ba463fa3..4eb684fa 100644 --- a/pkg/assets/static/index.html +++ b/pkg/assets/static/index.html @@ -6,7 +6,7 @@ - OpenShift Developer Sandbox + Developer Sandbox for Red Hat OpenShift
@@ -24,9 +24,14 @@
-
-
-
+
+ +
+
+
+
+
+