Browse Source

Add a "feature overview" section to the homepage.

While I'm not too happy with things as they currently are, it's a start.
This also removes the icon from the "Download" button.
Florian Kissling 10 years ago
parent
commit
dc679f7cbd

+ 9 - 1
docs/_sass/_jumbotron.scss

@@ -6,7 +6,15 @@
   padding-right: 0;
   padding-right: 0;
 
 
   h1 {
   h1 {
-    font-size: 36px;
     color: #777;
     color: #777;
+    font-size: 36px;
+    margin-top: 10px;
+  }
+
+  .version {
+    color: #999;
+    font-size: 14px;
+    font-weight: normal;
+    margin-bottom: 30px;
   }
   }
 }
 }

+ 24 - 7
docs/_sass/_s2-docs-home.scss

@@ -1,19 +1,36 @@
 .notice-previous {
 .notice-previous {
-  padding: 15px 20px;
-  color: #777;
-  background-color: #FAFAFA;
+  background: #f6f6f6;
+  color: #666;
   border-bottom: 1px solid #eee;
   border-bottom: 1px solid #eee;
-  a {
-    font-weight: bold;
-  }
+  padding: 15px 20px;
 }
 }
 
 
 .s2-docs-home .jumbotron {
 .s2-docs-home .jumbotron {
   margin-bottom: 0;
   margin-bottom: 0;
+  color: #000;
+  h1 {
+    color: #000;
+    margin-top: 20px;
+  }
 }
 }
 
 
 #lead {
 #lead {
 	text-align: center;
 	text-align: center;
 	max-width: 800px;
 	max-width: 800px;
-	margin: 0 auto 80px;
+	margin: 0 auto 40px;
+}
+
+.s2-docs-featurette {
+  color: #777;
+  text-align: center;
+  padding: 15px 0;
+
+  .fa {
+    font-size: 28px;
+    color: #777;
+  }
+
+  h4 {
+    margin: 30px 0 15px;
+  }
 }
 }

+ 5 - 1
docs/_sass/_s2-docs-layout.scss

@@ -1,8 +1,12 @@
 .s2-docs-container {
 .s2-docs-container {
   line-height: 1.6;
   line-height: 1.6;
-  //font-size: 16px;
 }
 }
 
 
 section {
 section {
   margin-bottom: 40px;
   margin-bottom: 40px;
 }
 }
+
+.page-header {
+  padding-bottom: 19px;
+  margin-bottom: 29px;
+}

+ 0 - 1
docs/_sass/_s2-docs-nav.scss

@@ -14,7 +14,6 @@
   .navbar-nav > .active > a:hover,
   .navbar-nav > .active > a:hover,
   .navbar-nav > .active > a:focus {
   .navbar-nav > .active > a:focus {
     background-color: #f0f0f0;
     background-color: #f0f0f0;
-    //background-color: #FFF;
     color: #000;
     color: #000;
   }
   }
 
 

+ 5 - 10
docs/css/s2-docs.scss

@@ -19,16 +19,6 @@
   margin-bottom: 20px;
   margin-bottom: 20px;
 }
 }
 
 
-
-.version {
-  color: #999;
-}
-
-.page-header {
-  padding-bottom: 19px;
-  margin-bottom: 29px;
-}
-
 /* Inline code within headings retain the heading's background-color */
 /* Inline code within headings retain the heading's background-color */
 h2 code,
 h2 code,
 h3 code,
 h3 code,
@@ -48,3 +38,8 @@ pre {
   background-color: #f7f7f9;
   background-color: #f7f7f9;
   border: 1px solid #e1e1e8;
   border: 1px solid #e1e1e8;
 }
 }
+
+.half-rule {
+  width: 100px;
+  margin: 40px auto;
+}

+ 46 - 3
docs/index.html

@@ -12,12 +12,11 @@ slug: home
     </p>
     </p>
     <p>
     <p>
       <a href="https://github.com/select2/select2/releases" class="btn btn-outline-inverse btn-lg">
       <a href="https://github.com/select2/select2/releases" class="btn btn-outline-inverse btn-lg">
-        <i class="fa fa-arrow-down fa-lg"></i>
-        Download
+        Download Select2
       </a>
       </a>
     </p>
     </p>
     <p class="version">
     <p class="version">
-      Version 4.0.0
+      Currently v4.0.0</a>
     </p>
     </p>
   </div>
   </div>
 </main>
 </main>
@@ -31,6 +30,50 @@ slug: home
     options.
     options.
   </section>
   </section>
 
 
+  <hr class="half-rule">
+
+  <div class="row s2-docs-featurette">
+    <div class="col-sm-4">
+      <i class="fa fa-language"></i>
+      <h4>In your language</h4>
+      <p>Select2 comes with support for <a href="#">RTL environments</a>, <a href="#">searching with diacritics</a> and <a href="#">over 40 languages</a> built-in.</p>
+    </div>
+
+    <div class="col-sm-4">
+      <i class="fa fa-paint-brush"></i>
+      <h4>Fits in with your theme</h4>
+      <p>Fully skinnable, CSS built with Sass and seamlessly fitting Bootstrap 3.</p>
+    </div>
+
+    <div class="col-sm-4">
+      <i class="fa fa-database"></i>
+      <h4>Remote data support</h4>
+      <p><a href="#">Using AJAX</a> you can efficiently search large lists of items.</p>
+    </div>
+  </div>
+
+  <div class="row s2-docs-featurette">
+    <div class="col-sm-4">
+      <i class="fa fa-plug"></i>
+      <h4>Fully extensible</h4>
+      <p>The <a href="#">plugin system</a> allows you to easily customize Select2 to work exactly how you want it to.</p>
+    </div>
+
+    <div class="col-sm-4">
+      <i class="fa fa-tag"></i>
+      <h4>Dynamic item creation</h4>
+      <p>Allow users to type in a new option and <a href="#">add it on the fly</a>.</p>
+    </div>
+
+    <div class="col-sm-4">
+      <i class="fa fa-plug"></i>
+      <h4>Remote data support</h4>
+      <p><a href="#">Using AJAX</a> you can efficiently search large lists of items.</p>
+    </div>
+  </div>
+
+  <hr class="half-rule">
+
   <section id="getting-started">
   <section id="getting-started">
     <h2>
     <h2>
       Getting started with Select2
       Getting started with Select2