Explorar o código

Added 'Take a tour' button

Roshan Prabhakar %!s(int64=8) %!d(string=hai) anos
pai
achega
9f46e2a132
Modificáronse 2 ficheiros con 9 adicións e 0 borrados
  1. 6 0
      src/landing/index.css
  2. 3 0
      src/landing/plugin.ts

+ 6 - 0
src/landing/index.css

@@ -103,3 +103,9 @@
   font-size: 12px;
   padding-top: 8px;
 }
+
+.jp-Landing-tour {
+    color: #f37a3c;
+    margin-top: 20px;
+    cursor: pointer;
+}

+ 3 - 0
src/landing/plugin.ts

@@ -80,6 +80,9 @@ function activateLanding(app: Application, services: ServiceManager): void {
   tour.textContent = 'Take a tour';
   tour.className = 'jp-Landing-tour';
   dialog.appendChild(tour);
+  tour.addEventListener('click', () => {
+    app.commands.execute('about-jupyterlab:show');
+  });
 
   img = body.getElementsByClassName('jp-ImageConsole')[0];
   img.addEventListener('click', () => {