You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ad...@apache.org on 2016/11/05 04:51:03 UTC

[18/50] incubator-mynewt-site git commit: Landing page formatting.

Landing page formatting.

Removes excess bootstrap containers & rows
Shrinks the footer
Enlarges the font size for taglines and highlights


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/commit/75dfe098
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/75dfe098
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/75dfe098

Branch: refs/heads/develop
Commit: 75dfe09858c5429ebb60589b41a63254febb49fe
Parents: 9d206a1
Author: Gavin Jefferies <ga...@runtime.io>
Authored: Fri Oct 7 10:29:14 2016 -0700
Committer: Gavin Jefferies <ga...@runtime.io>
Committed: Tue Oct 11 14:04:32 2016 -0700

----------------------------------------------------------------------
 custom-theme/base.html             |  9 ++-------
 custom-theme/css/custom.css        | 33 ++++++++++++++++----------------
 custom-theme/css/v2.css            | 24 ++++++++++++++++-------
 custom-theme/footer.html           | 28 +++++++++------------------
 custom-theme/landing.html          | 34 ++++++++++++++++-----------------
 custom-theme/main-banner.html      | 24 +++++++++++------------
 custom-theme/quick-start.html      |  4 ++--
 custom-theme/secondary-banner.html | 16 ++++++----------
 docs/index.md                      |  2 +-
 mkdocs.yml                         |  8 ++++----
 10 files changed, 85 insertions(+), 97 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/75dfe098/custom-theme/base.html
----------------------------------------------------------------------
diff --git a/custom-theme/base.html b/custom-theme/base.html
index 20831ad..55b4544 100644
--- a/custom-theme/base.html
+++ b/custom-theme/base.html
@@ -14,12 +14,11 @@
 	<title>{% if page_title %}{{ page_title }} - {% endif %}{{ site_name }}</title>
 
         <link href="{{ base_url }}/css/bootstrap-3.0.3.min.css" rel="stylesheet">
-        <link href="{{ base_url }}/css/font-awesome-4.0.3.css" rel="stylesheet">
         <link rel="stylesheet" href="{{ base_url }}/css/highlight.css">
         <link href="{{ base_url }}/css/base.css" rel="stylesheet">
         <link href="{{ base_url }}/css/custom.css" rel="stylesheet">
         <link href="{{ base_url }}/css/v2.css" rel="stylesheet">
-        <link href='https://fonts.googleapis.com/css?family=Roboto:400,500,700,900,300,100' rel='stylesheet' type='text/css'>
+        <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
         <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
         {%- for path in extra_css %}
         <link href="{{ path }}" rel="stylesheet">
@@ -89,16 +88,12 @@
                         <div class="row">
                             {% include 'next_prev_links.html' %}
                         </div>
-                        <div class="row">
-                            {% include 'footer.html' %}
-                        </div>
+                        {% include 'footer.html' %}
                     </div>
                 </div>
             {% endif %}
             {% if page_title in full_width_page_titles %}
-            <div class="row">
                 {% include 'footer.html' %}
-            </div>
             {% endif %}
         </div>
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/75dfe098/custom-theme/css/custom.css
----------------------------------------------------------------------
diff --git a/custom-theme/css/custom.css b/custom-theme/css/custom.css
index 74c48b2..2f8e57e 100644
--- a/custom-theme/css/custom.css
+++ b/custom-theme/css/custom.css
@@ -183,22 +183,12 @@ div.col-md-2 {
 
 footer {
     background-color: #F7F8FA;
-    font-size: 18px;
     text-align: center;
-    padding-top: 20px;
-    padding-bottom: 20px;
-    color: #414042;
+    padding-top: 10px;
+    padding-bottom: 10px;
     border-top: double #42567E;
 }
 
-.copyright-logos {
-    padding: 25px 0;
-}
-
-.copyright-logos img {
-    max-width: 100%;
-}
-
 footer .copyright {
     font-size: 14px;
     display: block;
@@ -206,11 +196,20 @@ footer .copyright {
     width: 80%;
 }
 
-footer .footnote {
-    font-size: 14px;
-    width: 80%;
-    display: block;
-    margin: 0 auto;
+footer .logos {
+    display: flex;
+    font-size: 10px;
+    flex-wrap: nowrap;
+    justify-content: space-between;
+    align-items: center;
+}
+
+footer .logos img {
+    width: 200px;
+}
+
+footer .logos .footnote {
+    padding: 10px 40px;
 }
 
 .goal p {

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/75dfe098/custom-theme/css/v2.css
----------------------------------------------------------------------
diff --git a/custom-theme/css/v2.css b/custom-theme/css/v2.css
index 9760e59..92ae109 100644
--- a/custom-theme/css/v2.css
+++ b/custom-theme/css/v2.css
@@ -25,31 +25,41 @@
 }
 
 .v2-landing .tagline {
-    margin-top: 10px;
-    margin-bottom: 40px;
+    padding: 50px;
+    font-size: 18px;
 }
 
-.v2-landing .highlights {
-    padding-right: 100px;
+.v2-landing .tagline .product {
+    font-weight: bolder;
 }
 
 .v2-landing .highlights .highlight {
     margin-bottom: 40px;
 }
 
+.v2-landing .highlights .highlight p {
+    font-size: 18px;
+}
+
 .v2-landing .highlights img {
+    margin-top: 40px;
     width: 100%;
 }
 
-.v2-landing .highlights .scroll-image {
-    overflow-y: scroll;
-    height: 200px;
+.v2-landing .highlights .truncate-image {
+    overflow-y: hidden;
+    height: 300px;
 }
 
 .v2-landing .updates img {
     width: 100%;
 }
 
+.v2-landing .updates ul {
+    list-style: none;
+    padding-left: 0;
+}
+
 .v2-sidebar > div {
     background-color: #F6F7F9;
     padding-left: 15px;

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/75dfe098/custom-theme/footer.html
----------------------------------------------------------------------
diff --git a/custom-theme/footer.html b/custom-theme/footer.html
index f20a4d6..93e5725 100644
--- a/custom-theme/footer.html
+++ b/custom-theme/footer.html
@@ -1,26 +1,16 @@
-<footer>
-    <div class="row">
-        <div class="col-md-12">
-            {% if copyright %}
-                <p class="copyright">{{ copyright }}</p>
-            {% endif %}
-        </div>
-    </div>
-    <div class="copyright-logos">
-        <div class="row">
-            <div class="col-xs-6 text-left">
-                <img src="/img/asf_logo_wide_small.png" alt="Apache" title="Apache">
-            </div>
-            <div class="col-xs-6 text-right">
-                <img src="/img/egg-logo2.png" alt="Apache Incubator" title="Apache Incubator">
-            </div>
-        </div>
+<footer class="row">
+    <div class="col-xs-12">
+        {% if copyright %}
+            <p class="copyright">{{ copyright }}</p>
+        {% endif %}
     </div>
-    <div class="row">
-        <div class="col-md-12">
+    <div class="col-xs-12">
+        <div class="logos">
+            <img src="/img/asf_logo_wide_small.png" alt="Apache" title="Apache">
             <small class="footnote">
                 MyNewt is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
             </small>
+            <img src="/img/egg-logo2.png" alt="Apache Incubator" title="Apache Incubator">
         </div>
     </div>
 </footer>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/75dfe098/custom-theme/landing.html
----------------------------------------------------------------------
diff --git a/custom-theme/landing.html b/custom-theme/landing.html
index c76d048..df9fc3c 100644
--- a/custom-theme/landing.html
+++ b/custom-theme/landing.html
@@ -1,11 +1,11 @@
 {% include 'main-banner.html' %}
 
-<div class="container v2-landing">
+<div class="v2-landing">
 
-    <div class="row tagline">
-        <div class="col-md-12 text-center">
-            <p>
-                {% include 'fix_up_content.html' %}
+    <div class="row">
+        <div class="col-md-12">
+            <p class="tagline text-center">
+                <span class="product">Apache Mynewt</span> is a real-time, modular operating system for connected IoT devices that need to operate for long periods of time under power, memory, and storage constraints. The first connectivity stack offered is BLE 4.2.
             </p>
         </div>
     </div>
@@ -16,11 +16,11 @@
 
             <div class="row highlight">
                 <div class="col-md-6">
-                    <h3>Utilities</h3>
+                    <h2>Utilities</h2>
                     <p>Utilities such as boot loaders, file systems, time-series data, JSON formatted log request/response, and more </p>
                 </div>
-                <div class="col-md-6">
-                    <div class="scroll-image">
+                <div class="col-xs-8 col-md-6">
+                    <div class="truncate-image">
                         <img src="/img/json_logs.png">
                     </div>
                 </div>
@@ -28,40 +28,40 @@
 
             <div class="row highlight">
                 <div class="col-md-6">
-                    <h3>Bluetooth Low Energy</h3>
+                    <h2>Bluetooth Low Energy</h2>
                     <p>High-performance networking stacks, starting with Bluetooth Low Energy 4.2 source code for both host and controller</p>
                 </div>
-                <div class="col-md-6">
+                <div class="col-xs-8 col-md-6">
                     <img src="/img/NimBLE_throughput.png" style="width:66%">
                 </div>
             </div>
 
             <div class="row highlight">
                 <div class="col-md-6">
-                    <h3>Highly Configurable</h3>
+                    <h2>Highly Configurable</h2>
                     <p>Direct access to peripherals for granular control to better utilize the resources of the target embedded platform</p>
                 </div>
-                <div class="col-md-6">
+                <div class="col-xs-8 col-md-6">
                     <img src="/img/concurrent_conn.png" style="width:66%">
                 </div>
             </div>
 
             <div class="row highlight">
                 <div class="col-md-6">
-                    <h3>Secure</h3>
+                    <h2>Secure</h2>
                     <p>Secure yet simple image and configuration management</p>
                 </div>
-                <div class="col-md-6">
+                <div class="col-xs-8 col-md-6">
                     <img src="/img/secure_img.png" style="width:110%">
                 </div>
             </div>
 
             <div class="row highlight">
                 <div class="col-md-6">
-                    <h3>Easy to use</h3>
+                    <h2>Easy to use</h2>
                     <p>Easily composable modules and HAL (Hardware Abstraction Layer) for portability </p>
                 </div>
-                <div class="col-md-6">
+                <div class="col-xs-8 col-md-6">
                     <img src="/img/newt-img.png">
                 </div>
             </div>
@@ -72,7 +72,7 @@
 
             <img src="/img/OS_arch.png">
 
-            <h3>Supported Boards</h3>
+            <h2>Supported Boards</h2>
 
             <ul>
                 <li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/75dfe098/custom-theme/main-banner.html
----------------------------------------------------------------------
diff --git a/custom-theme/main-banner.html b/custom-theme/main-banner.html
index 28a551c..ed433d4 100644
--- a/custom-theme/main-banner.html
+++ b/custom-theme/main-banner.html
@@ -1,16 +1,14 @@
-<div class="container">
-    <div class="row v2-main-banner">
-
-        <div class="col-md-8 v2-vcenter">
-            <img class="logo" src="/img/logo.svg">
-            <h4 class="tagline">Modular OS to operate an IoT network</h4>
-        </div><!-- (need this comment because of the inline-blocks)
-    --><div class="col-md-4 v2-vcenter">
-            <div class="news bg-orange text-center">
-                <h4>Mynewt 0.9.0 release is available now. </h4>
-                <a href="/download/">Download!</a>
-            </div>
-        </div>
+<div class="row v2-main-banner">
 
+<div class="col-xs-12 col-md-8 v2-vcenter">
+    <img class="logo" src="/img/logo.svg">
+    <h4 class="tagline">Modular OS to operate an IoT network</h4>
+</div><!-- (need this comment because of the inline-blocks)
+--><div class="col-xs-12 col-md-4 v2-vcenter">
+    <div class="news bg-orange text-center">
+        <h4>Mynewt 0.9.0 release is available now. </h4>
+        <a href="/download/">Download!</a>
     </div>
 </div>
+
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/75dfe098/custom-theme/quick-start.html
----------------------------------------------------------------------
diff --git a/custom-theme/quick-start.html b/custom-theme/quick-start.html
index 9c58658..abca805 100644
--- a/custom-theme/quick-start.html
+++ b/custom-theme/quick-start.html
@@ -1,8 +1,8 @@
 {% include 'secondary-banner.html' %}
 
-<div class="container v2-quick-start">
+<div class="v2-quick-start">
 
- <div class="container small-no-padding">
+ <div class="small-no-padding">
     <div class="row">
         <div class="col-md-12 content">
             {% block content %}

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/75dfe098/custom-theme/secondary-banner.html
----------------------------------------------------------------------
diff --git a/custom-theme/secondary-banner.html b/custom-theme/secondary-banner.html
index 6c36a9d..11ef112 100644
--- a/custom-theme/secondary-banner.html
+++ b/custom-theme/secondary-banner.html
@@ -1,12 +1,8 @@
-<div class="container">
-    <div class="row v2-main-banner">
-         <div class="col-md-8 v2-vcenter">
-            <img class="logo" src="/img/logo.svg">
-            <h4 class="tagline">Modular OS to operate an IoT network</h4>
-        </div><!-- (need this comment because of the inline-blocks)
-    --><div class="col-md-4 v2-vcenter">
-                    </div>
-
-        
+<div class="row v2-main-banner">
+    <div class="col-md-8 v2-vcenter">
+        <img class="logo" src="/img/logo.svg">
+        <h4 class="tagline">Modular OS to operate an IoT network</h4>
+    </div><!-- (need this comment because of the inline-blocks)
+ --><div class="col-md-4 v2-vcenter">
     </div>
 </div>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/75dfe098/docs/index.md
----------------------------------------------------------------------
diff --git a/docs/index.md b/docs/index.md
index bc1906c..8daa8aa 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -1 +1 @@
-Apache Mynewt is a real-time, modular operating system for connected IoT devices that need to operate for long periods of time under power, memory, and storage constraints. The first connectivity stack offered is BLE 4.2.
+[//]: # (This is not used - see landing.html for content)

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/75dfe098/mkdocs.yml
----------------------------------------------------------------------
diff --git a/mkdocs.yml b/mkdocs.yml
index a7dd702..47cf117 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -28,7 +28,7 @@ pages:
             - 'Blinky on Arduino Zero': 'os/tutorials/arduino_zero.md'
             - 'Blinky on Arduino Primo': 'os/tutorials/blinky_primo.md'
             - 'Blinky on Olimex': 'os/tutorials/olimex.md'
-            - 'Blinky on STM32F303': 
+            - 'Blinky on STM32F303':
                 - toc: 'os/tutorials/STM32F303.md'
                 - 'Pinwheel Blinky': 'os/tutorials/pin-wheel-mods.md'
             - 'Blinky on nRF52': 'os/tutorials/nRF52.md'
@@ -43,10 +43,10 @@ pages:
         - 'Write a Test Suite for a Package': 'os/tutorials/unit_test.md'
         - 'Air-quality Sensor project': 'os/tutorials/air_quality_sensor.md'
         - 'Add task to manage multiple events': 'os/tutorials/event_queue.md'
-        - 'Project Slinky for remote comms': 
+        - 'Project Slinky for remote comms':
             - 'Slinky on sim device': 'os/tutorials/project-slinky.md'
             - 'Slinky on STM32 board': 'os/tutorials/project-target-slinky.md'
-        - 'Enable newtmgr in any app': 'os/tutorials/add_newtmgr.md' 
+        - 'Enable newtmgr in any app': 'os/tutorials/add_newtmgr.md'
         - 'BLE app to check stats via console': 'os/tutorials/bletiny_project.md'
         - 'BLE peripheral project':
             - toc: 'os/tutorials/bleprph/bleprph-intro.md'
@@ -525,6 +525,6 @@ extra:
             location: "Grand Ballroom C, JW Marriott Resort and Spa Hotel, Las Vegas, NV"
             date: 'Time: 16:10 - 16:45, Date: 26 September 2016, 2016'
 
-copyright: 'Copyright &copy; 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator'
+copyright: 'Copyright &copy; 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.'
 
 google_analytics: ['UA-72162311-1', 'auto']