Explorar o código

Merge pull request #420 from rnetro/landingalpha

Adding alpha message to landing
Jason Grout %!s(int64=8) %!d(string=hai) anos
pai
achega
cf96d84bfd
Modificáronse 2 ficheiros con 27 adicións e 2 borrados
  1. 17 2
      src/landing/index.css
  2. 10 0
      src/landing/plugin.ts

+ 17 - 2
src/landing/index.css

@@ -46,8 +46,8 @@
   background-size: 193px 40px;
   background-repeat: no-repeat;
   background-position: center top;
-  padding-bottom: 20px;
-  border-bottom: 1px solid #BDBDBD;
+  padding-bottom: 4px;
+
 }
 
 
@@ -57,6 +57,21 @@
   width: 100%;
 }
 
+.jp-Landing-subtitle {
+  font-size: 20px;
+  background-color: white;
+  width: 100%;
+  padding-bottom: 2px;
+}
+
+.jp-Landing-subtext {
+  font-size: 12px;
+  color: #BABABA;
+  background-color: white;
+  border-bottom: 1px solid #BDBDBD;
+  width: 100%;
+  padding-bottom: 10px;
+}
 
 .jp-Landing-header {
 

+ 10 - 0
src/landing/plugin.ts

@@ -45,6 +45,16 @@ function activateLanding(app: Application, services: ServiceManager): void {
   logo.className = 'jp-ImageJupyterLab jp-Landing-logo';
   dialog.appendChild(logo);
 
+  let subtitle = document.createElement('span');
+  subtitle.textContent = 'alpha';
+  subtitle.className = 'jp-Landing-subtitle';
+  dialog.appendChild(subtitle);
+
+  let subtext = document.createElement('span');
+  subtext.textContent = 'This is not ready for general usage yet.';
+  subtext.className = 'jp-Landing-subtext';
+  dialog.appendChild(subtext);
+
   let header = document.createElement('span');
   header.textContent = 'Start a new activity:';
   header.className = 'jp-Landing-header';