You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by dm...@apache.org on 2020/12/08 20:31:36 UTC

[ignite-website] branch ignite-13779 updated: More changes to homepage (#43)

This is an automated email from the ASF dual-hosted git repository.

dmagda pushed a commit to branch ignite-13779
in repository https://gitbox.apache.org/repos/asf/ignite-website.git


The following commit(s) were added to refs/heads/ignite-13779 by this push:
     new cd1ef46  More changes to homepage (#43)
cd1ef46 is described below

commit cd1ef4656df5c1580635738b68a4bd67e0131202
Author: Mauricio Stekl <ma...@stekl.org>
AuthorDate: Tue Dec 8 17:31:29 2020 -0300

    More changes to homepage (#43)
    
    * initial rework of features  section  on the homepage
    
    * more adjustments to new features section; menu opens with hover; responsiveness fixes; other minor tweaks
---
 css/ignite-redesign.css                   |   2 +-
 css/prism.css                             | 104 ++++++++++++-----------------
 includes/footer.html                      |   2 +-
 includes/header.html                      |   2 +-
 includes/scripts.html                     |   2 +
 index.html                                |  34 +++++-----
 js/jquery.bootstrap-dropdown-hover.min.js |  10 +++
 scss/ignite-redesign.scss                 | 106 ++++++++++++++----------------
 8 files changed, 127 insertions(+), 135 deletions(-)

diff --git a/css/ignite-redesign.css b/css/ignite-redesign.css
index 64a6e0d..e0f1cba 100644
--- a/css/ignite-redesign.css
+++ b/css/ignite-redesign.css
@@ -1 +1 @@
-@charset "UTF-8";code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class [...]
\ No newline at end of file
+@charset "UTF-8";code[class*=language-],pre[class*=language-]{color:#ccc;background:0 0;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=langu [...]
\ No newline at end of file
diff --git a/css/prism.css b/css/prism.css
index a6097b0..d78bd7e 100644
--- a/css/prism.css
+++ b/css/prism.css
@@ -1,16 +1,15 @@
 /* PrismJS 1.22.0
-https://prismjs.com/download.html#themes=prism&languages=markup+clike+javascript+bash+c+csharp+cpp+java+sql&plugins=line-numbers+normalize-whitespace+toolbar+copy-to-clipboard */
+https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+clike+javascript+bash+c+csharp+cpp+java+sql&plugins=line-numbers+normalize-whitespace+toolbar+copy-to-clipboard */
 /**
- * prism.js default theme for JavaScript, CSS and HTML
- * Based on dabblet (http://dabblet.com)
- * @author Lea Verou
+ * prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
+ * Based on https://github.com/chriskempson/tomorrow-theme
+ * @author Rose Pritchard
  */
 
  code[class*="language-"],
  pre[class*="language-"] {
-	 color: black;
+	 color: #ccc;
 	 background: none;
-	 text-shadow: 0 1px white;
 	 font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
 	 font-size: 1em;
 	 text-align: left;
@@ -28,25 +27,7 @@ https://prismjs.com/download.html#themes=prism&languages=markup+clike+javascript
 	 -moz-hyphens: none;
 	 -ms-hyphens: none;
 	 hyphens: none;
- }
- 
- pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
- code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
-	 text-shadow: none;
-	 background: #b3d4fc;
- }
  
- pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
- code[class*="language-"]::selection, code[class*="language-"] ::selection {
-	 text-shadow: none;
-	 background: #b3d4fc;
- }
- 
- @media print {
-	 code[class*="language-"],
-	 pre[class*="language-"] {
-		 text-shadow: none;
-	 }
  }
  
  /* Code blocks */
@@ -58,7 +39,7 @@ https://prismjs.com/download.html#themes=prism&languages=markup+clike+javascript
  
  :not(pre) > code[class*="language-"],
  pre[class*="language-"] {
-	 background: #f5f2f0;
+	 background: #2d2d2d;
  }
  
  /* Inline code */
@@ -69,64 +50,61 @@ https://prismjs.com/download.html#themes=prism&languages=markup+clike+javascript
  }
  
  .token.comment,
+ .token.block-comment,
  .token.prolog,
  .token.doctype,
  .token.cdata {
-	 color: slategray;
- }
- 
- .token.punctuation {
 	 color: #999;
  }
  
- .token.namespace {
-	 opacity: .7;
+ .token.punctuation {
+	 color: #ccc;
  }
  
- .token.property,
  .token.tag,
- .token.boolean,
- .token.number,
- .token.constant,
- .token.symbol,
+ .token.attr-name,
+ .token.namespace,
  .token.deleted {
-	 color: #905;
+	 color: #e2777a;
  }
  
- .token.selector,
- .token.attr-name,
- .token.string,
- .token.char,
- .token.builtin,
- .token.inserted {
-	 color: #690;
+ .token.function-name {
+	 color: #6196cc;
  }
  
- .token.operator,
- .token.entity,
- .token.url,
- .language-css .token.string,
- .style .token.string {
-	 color: #9a6e3a;
-	 /* This background color was intended by the author of this theme. */
-	 background: hsla(0, 0%, 100%, .5);
+ .token.boolean,
+ .token.number,
+ .token.function {
+	 color: #f08d49;
  }
  
- .token.atrule,
- .token.attr-value,
- .token.keyword {
-	 color: #07a;
+ .token.property,
+ .token.class-name,
+ .token.constant,
+ .token.symbol {
+	 color: #f8c555;
  }
  
- .token.function,
- .token.class-name {
-	 color: #DD4A68;
+ .token.selector,
+ .token.important,
+ .token.atrule,
+ .token.keyword,
+ .token.builtin {
+	 color: #cc99cd;
  }
  
+ .token.string,
+ .token.char,
+ .token.attr-value,
  .token.regex,
- .token.important,
  .token.variable {
-	 color: #e90;
+	 color: #7ec699;
+ }
+ 
+ .token.operator,
+ .token.entity,
+ .token.url {
+	 color: #67cdcc;
  }
  
  .token.important,
@@ -141,6 +119,10 @@ https://prismjs.com/download.html#themes=prism&languages=markup+clike+javascript
 	 cursor: help;
  }
  
+ .token.inserted {
+	 color: green;
+ }
+ 
  pre[class*="language-"].line-numbers {
 	 position: relative;
 	 padding-left: 3.8em;
diff --git a/includes/footer.html b/includes/footer.html
index 809f186..44d715d 100644
--- a/includes/footer.html
+++ b/includes/footer.html
@@ -1,5 +1,5 @@
 <!-- REMEMBER TO COPY ALL CHANGES TO download.html -->
-<footer id="footer" class="">
+<footer id="footer" class="bg-gray-shadow">
     <div class="wrapper">
     <div class="container">
         <div class="row">
diff --git a/includes/header.html b/includes/header.html
index 17899ba..910c9df 100644
--- a/includes/header.html
+++ b/includes/header.html
@@ -4,7 +4,7 @@
     <!--#include virtual="/includes/promotion_banner.html" -->
 
     <div class="container">
-        <nav id="nav" class=" navbar navbar-expand-lg d-flex bd-highlight mb-3" role="navigation">
+        <nav id="nav" class=" navbar navbar-expand-lg d-flex bd-highlight mb-3 fixed-top" role="navigation">
             <a href="/" class="mr-auto p-2 bd-highlight navbar-brand" aria-label="Ignite Homepage"><img
                     src="/images/ignite_logo_full.svg" alt="Apache Ignite Logo"></a>
 
diff --git a/includes/scripts.html b/includes/scripts.html
index 5bc591a..17d4469 100644
--- a/includes/scripts.html
+++ b/includes/scripts.html
@@ -27,6 +27,7 @@
 <script defer src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
 <script src="/js/bootstrap.min.js" ></script>
 <script src="/js/prism.js?20201203" ></script>
+<script src="/js/jquery.bootstrap-dropdown-hover.min.js"></script>
 
 
 <script type="text/javascript">
@@ -40,6 +41,7 @@
         document.querySelector('head').appendChild(msViewportStyle)
     }
     
+    jQuery('#navbar [data-toggle="dropdown"]').bootstrapDropdownHover({});
     
 </script>
 
diff --git a/index.html b/index.html
index f5e2b38..38f374e 100644
--- a/index.html
+++ b/index.html
@@ -171,11 +171,14 @@ under the License.
     <div id="main-banner" class="wrapper-main-banner bg-gray-shadow">
         <div class="wrapper">
             <div class="container">
-                <h1><strong>Apache Ignite</strong>
-                    distributed database for building data-intensive and high-performance
-                    applications delivering in-memory speed at a petabyte scale
-
-                </h1>
+                <h1><strong>The distributed database for <br />in-memory speed at petabyte scale</strong></h1> 
+                
+            <p>
+                               Apache Ignite® is designed for data-intensive and high-performance applications.
+                               The database that scales unlimitedly across given memory and disk resources.
+                                The database that supports SQL, transactional, compute and machine learning APIs natively.
+                           </p>
+                
 
 
                 <div class="buttons">
@@ -413,7 +416,7 @@ under the License.
                         <!-- Tabs content -->
                         <div class="tab-content" id="v-pills-tabContent">
 
-                            <div class="tab-pane fade active" id="feat-vtab-c-multitier" role="tabpanel"
+                            <div class="tab-pane  active show" id="feat-vtab-c-multitier" role="tabpanel"
                                  aria-labelledby="feat-vtab-multitier">
                                 <h3>Multi-Tier Storage</h3>
 
@@ -456,7 +459,7 @@ under the License.
                                                     </code>
                                                 </pre>
                                         </div>
-                                        <div class="tab-pane fade" id="storage-java">
+                                        <div class="tab-pane " id="storage-java">
                                                 <pre class="language-java">
                                                     <code>
                                                     IgniteConfiguration cfg = new IgniteConfiguration();
@@ -468,7 +471,7 @@ under the License.
                                                     </code>
                                                 </pre>
                                         </div>
-                                        <div class="tab-pane fade" id="storage-csharp">
+                                        <div class="tab-pane " id="storage-csharp">
                                                 <pre class="language-csharp">
                                                     <code>
                                                     var cfg = new IgniteConfiguration
@@ -495,7 +498,7 @@ under the License.
                                    class="btn btn-secondary">Learn More</a>
                             </div>
 
-                            <div class="tab-pane fade show" id="feat-vtab-c-sql" role="tabpanel"
+                            <div class="tab-pane  " id="feat-vtab-c-sql" role="tabpanel"
                                  aria-labelledby="feat-vtab-sql">
                                 <h3>Distributed SQL</h3>
                                 <p class="text-muted">
@@ -535,7 +538,7 @@ under the License.
                                    class="btn btn-secondary">Learn More</a>
                             </div>
 
-                            <div class="tab-pane fade " id="feat-vtab-c-acid" role="tabpanel"
+                            <div class="tab-pane  " id="feat-vtab-c-acid" role="tabpanel"
                                  aria-labelledby="feat-vtab-acid">
                                 <h3>ACID Transactions</h3>
                                 <p class="text-muted">
@@ -606,7 +609,7 @@ under the License.
                                    class="btn btn-secondary">Learn More</a>
                             </div>
 
-                            <div class="tab-pane fade " id="feat-vtab-c-colocated" role="tabpanel"
+                            <div class="tab-pane  " id="feat-vtab-c-colocated" role="tabpanel"
                                  aria-labelledby="feat-vtab-colocated">
                                 <h3>Co-located Compute</h3>
                                 <p class="text-muted">
@@ -662,7 +665,7 @@ under the License.
                                    class="btn btn-secondary">Learn More</a>
                             </div>
 
-                            <div class="tab-pane fade " id="feat-vtab-c-ml" role="tabpanel"
+                            <div class="tab-pane  " id="feat-vtab-c-ml" role="tabpanel"
                                  aria-labelledby="feat-vtab-ml">
                                 <h3>Machine Learning</h3>
                                 <p class="text-muted">
@@ -708,7 +711,7 @@ under the License.
                                    class="btn btn-secondary">Learn More</a>
                             </div>
 
-                            <div class="tab-pane fade " id="feat-vtab-c-conquery" role="tabpanel"
+                            <div class="tab-pane  " id="feat-vtab-c-conquery" role="tabpanel"
                                  aria-labelledby="feat-vtab-conquery">
                                 <h3>Continuous Queries</h3>
                                 <p class="text-muted">
@@ -858,8 +861,9 @@ under the License.
     });
 
 
-    jQuery('#home-features-vtab .nav-link').hover(function () {
-        jQuery(this).click();
+    jQuery('#home-features-vtab .nav-link').hover(function (e) {
+        
+        jQuery(this).tab('show');
     });
 </script>
 </body>
diff --git a/js/jquery.bootstrap-dropdown-hover.min.js b/js/jquery.bootstrap-dropdown-hover.min.js
new file mode 100644
index 0000000..b601a24
--- /dev/null
+++ b/js/jquery.bootstrap-dropdown-hover.min.js
@@ -0,0 +1,10 @@
+/*
+ *  Bootstrap Dropdown Hover - v4.2.0
+ *  Open dropdown menus on mouse hover, the proper way.
+ *  http://www.virtuosoft.eu/code/bootstrap-dropdown-hover/
+ *
+ *  Made by István Ujj-Mészáros
+ *  Under Apache License v2.0 License
+ */
+
+!function(o){"function"==typeof define&&define.amd?define(["jquery"],o):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),o(t),t}:o(jQuery)}(function(i){var n,r,d="bootstrapDropdownHover",o={clickBehavior:"sticky",hideTimeout:200},s=!1;function a(e,t){this.element=i(e),this.settings=i.extend({},o,t,this.element.data()),this._defaults=o,this._name=d,this.init()}function u(e){var t,o [...]
\ No newline at end of file
diff --git a/scss/ignite-redesign.scss b/scss/ignite-redesign.scss
index fdedce9..64b137a 100644
--- a/scss/ignite-redesign.scss
+++ b/scss/ignite-redesign.scss
@@ -156,7 +156,7 @@ strong {
                     padding-right: 1.3em;
                     padding-left: 1.3em;
                     cursor: pointer;
-                    transition: padding 0.5s ease;
+                    // transition: padding 0.5s ease;
                     
                 }
                 .dropdown-toggle:after {
@@ -332,19 +332,17 @@ strong {
 
     h1 {
         font-weight: 300;
-        font-size: 32px;
+        font-size: 34px;
         line-height: 1.4em;
         text-align: center;
+        margin-bottom: 1em;
 
-        strong {
-            display: block;
-        }
     }
     p {
-        font-size: 24px;
         font-weight: 300;
-        width: 80%;
-        line-height: 1.5em;
+        font-size: 24px;
+        line-height: 1.6em;
+        text-align: center;
         margin-bottom: 1.5em;
     }
     .btn {
@@ -645,11 +643,12 @@ section.section-block {
     h2 {
         text-align: center;
         font-size: 32px;
-        text-transform: uppercase;
+        
         margin-bottom: 2em;
 
         strong {
             color: theme-color('primary');
+
             font-weight: 900;
         }
     }
@@ -677,13 +676,15 @@ section.section-block {
    
     #home-features-vtab {
         a.nav-link {
-            display: block;
+            display: flex;
+            align-items: center;
             width: 100%;
             background-color: theme-color('primary');
             color: #ffffff;
-            margin-bottom: 1em;
-            transition: all 0.5s ease-in-out;
+            margin-bottom: 1.35em;
+            transition: background-color 0.5s ease-in-out;
             box-shadow: 0 15px 8px -10px #d5d5d5;
+            padding: 0.75em 1em;
 
             svg {
                 width: 50px;
@@ -704,6 +705,9 @@ section.section-block {
                 background-color: theme-color('secondary');
             }
             
+            &:last-of-type {
+                margin-bottom: 0;
+            }
         }
     }
 
@@ -727,11 +731,20 @@ section.section-block {
             }
 
             pre {
-                margin:  0 0 1em;
+                margin:  0 0 1em 0;
+                max-height: 235px;
             }
             code {
                 font-size: 14px;
             }
+
+            .nav-tabs {
+                .nav-item {
+                    a {
+                        font-size: 1.1em;
+                    }
+                }
+            }
         }
     }
         
@@ -1278,12 +1291,6 @@ article {
         }
     }
 
-    #intro-text {
-        p {
-            padding: 0;
-        }
-    }
-
     #home-use-cases {
         #use-cases-tabs {
             width: 85%;
@@ -1299,34 +1306,17 @@ article {
             }
         }
     }
-    #home-extras {
-        #home-links {
-            ul {
-                padding: 0;
-            }
-        }
-    }
-    #home-features {
-        .feature {
-            a {
-                p {
-                    font-size: 15px;
-                }
-            }
-        }
+    #home-features #v-pills-tabContent .tab-pane pre {
+        max-height: 225px;
     }
+    
 }
 
 // Medium devices (tablets, less than 992px)
 // @media (max-width: 991.98px) { ... }
 @include media-breakpoint-down(md) {
     
-    #intro-text {
-        p {
-            font-size: 20px;
-        }
-    }
-
+    
     article {
         header {
             padding-top: 3rem;
@@ -1460,17 +1450,14 @@ article {
         }
     }
     #home-features {
-        .row {
-            padding: 0 2rem;
+        #v-pills-tabContent .tab-pane pre {
+            max-height: 200px;
         }
-        .feature {
-            padding: 0 10px;
-            a {
-                h3 {
-                    font-size: 18px;
-                }
-                p {
+        #home-features-vtab {
+            a.nav-link {
+                span {
                     font-size: 14px;
+                    margin-left: 7px;
                 }
             }
         }
@@ -1571,13 +1558,20 @@ article {
             }
         }
     }
-    #home-extras {
-        #home-links {
-            ul {
-                li {
-                    a {
-                        padding: 5px 0;
-                    }
+    #home-features {
+        #home-features-vtab {
+            a.nav-link {
+                padding: .75em 2em;
+                margin-bottom: 0.5em;
+
+
+                span {
+                    font-size: 16px;
+
+                }
+
+                &:last-of-type {
+                    margin-bottom: 1.5em;
                 }
             }
         }