|
| 1 | +From 331b85e6b233371a7903355fe915b7dca151a4fb Mon Sep 17 00:00:00 2001 |
| 2 | +From: Agriya Khetarpal < [email protected]> |
| 3 | +Date: Tue, 22 Jul 2025 22:16:08 +0530 |
| 4 | +Subject: [PATCH] Customise loading indicator and title for Jupyter Everywhere |
| 5 | + |
| 6 | +--- |
| 7 | + newindex.html | 49 +++++++++++++++++++++++++++++++++++++++++-------- |
| 8 | + 1 file changed, 41 insertions(+), 8 deletions(-) |
| 9 | + |
| 10 | +diff --git a/dist/lab/index.html b/dist/lab/index.html |
| 11 | +index 962feb4..9731e89 100644 |
| 12 | +--- a/dist/lab/index.html |
| 13 | ++++ b/dist/lab/index.html |
| 14 | +@@ -1,7 +1,7 @@ |
| 15 | + <!DOCTYPE html> |
| 16 | + <html> |
| 17 | + <head> |
| 18 | +- <title>JupyterLite</title> |
| 19 | ++ <title>Jupyter Everywhere</title> |
| 20 | + <meta charset="utf-8" /> |
| 21 | + <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 22 | + <meta name="Description" content="WASM powered Jupyter running in the browser." /> |
| 23 | +@@ -33,6 +33,10 @@ |
| 24 | + }.call(this)); |
| 25 | + </script> |
| 26 | + <style> |
| 27 | ++ :root { |
| 28 | ++ --je-lilac: #d8b8dc; |
| 29 | ++ } |
| 30 | ++ |
| 31 | + body { |
| 32 | + margin: 0; |
| 33 | + padding: 0; |
| 34 | +@@ -72,19 +76,45 @@ |
| 35 | + display: block; |
| 36 | + } |
| 37 | + |
| 38 | +- .jupyterlite-loading-indicator-spinner { |
| 39 | +- width: 60px; |
| 40 | +- height: 60px; |
| 41 | ++ .jupyterlite-loading-indicator-container { |
| 42 | ++ position: relative; |
| 43 | ++ width: 70px; |
| 44 | ++ height: 70px; |
| 45 | + margin: 0 auto 20px; |
| 46 | ++ } |
| 47 | ++ |
| 48 | ++ .jupyterlite-loading-indicator-spinner { |
| 49 | ++ width: 100%; |
| 50 | ++ height: 100%; |
| 51 | + border: 6px solid rgba(0, 0, 0, 0.1); |
| 52 | +- border-top: 6px solid #FFDC00; /* Bright yellow color */ |
| 53 | ++ border-top: 6px solid var(--je-lilac); |
| 54 | + border-radius: 50%; |
| 55 | + animation: jupyter-spin 1s linear infinite; |
| 56 | ++ box-sizing: border-box; |
| 57 | + } |
| 58 | + |
| 59 | + body.jp-mod-dark .jupyterlite-loading-indicator-spinner { |
| 60 | + border: 6px solid rgba(255, 255, 255, 0.1); |
| 61 | +- border-top: 6px solid #FFDC00; |
| 62 | ++ border-top: 6px solid var(--je-lilac); |
| 63 | ++ box-sizing: border-box; |
| 64 | ++ } |
| 65 | ++ |
| 66 | ++ .jupyterlite-loading-indicator-logo { |
| 67 | ++ position: absolute; |
| 68 | ++ top: 50%; |
| 69 | ++ left: 50%; |
| 70 | ++ transform: translate(-50%, -50%); |
| 71 | ++ width: 50px; |
| 72 | ++ height: 50px; |
| 73 | ++ background-image: url('logo.svg'); |
| 74 | ++ background-size: cover; |
| 75 | ++ background-repeat: no-repeat; |
| 76 | ++ background-position: center; |
| 77 | ++ z-index: 1001; |
| 78 | ++ } |
| 79 | ++ |
| 80 | ++ body.jp-mod-dark .jupyterlite-loading-indicator-logo { |
| 81 | ++ background-color: #6d28d9; |
| 82 | + } |
| 83 | + |
| 84 | + .jupyterlite-loading-indicator-text { |
| 85 | +@@ -114,8 +144,11 @@ |
| 86 | + </head> |
| 87 | + <body class="jp-ThemedContainer" data-notebook="lab"> |
| 88 | + <div id="jupyterlite-loading-indicator" class="hidden"> |
| 89 | +- <div class="jupyterlite-loading-indicator-spinner"></div> |
| 90 | +- <div class="jupyterlite-loading-indicator-text">Loading JupyterLite...</div> |
| 91 | ++ <div class="jupyterlite-loading-indicator-container"> |
| 92 | ++ <div class="jupyterlite-loading-indicator-spinner"></div> |
| 93 | ++ <div class="jupyterlite-loading-indicator-logo"></div> |
| 94 | ++ </div> |
| 95 | ++ <div class="jupyterlite-loading-indicator-text">Loading Jupyter Everywhere...</div> |
| 96 | + </div> |
| 97 | + <noscript> |
| 98 | + <div style="text-align: center; padding: 20px;"> |
| 99 | +-- |
| 100 | +2.39.5 (Apple Git-154) |
| 101 | + |
0 commit comments