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/05/20 07:31:52 UTC
[03/18] incubator-mynewt-site git commit: banner re-style
banner re-style
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/2989c8a0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/2989c8a0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/2989c8a0
Branch: refs/heads/master
Commit: 2989c8a0216e00c46b73be82fdbe139ac347bbe1
Parents: 16f8b0e
Author: Gavin Jefferies <ga...@runtime.io>
Authored: Wed May 18 17:23:39 2016 -0700
Committer: Gavin Jefferies <ga...@runtime.io>
Committed: Wed May 18 17:23:39 2016 -0700
----------------------------------------------------------------------
custom-theme/base.html | 1 +
custom-theme/css/v2.css | 25 +++++++++++++++++++++++++
custom-theme/landing.html | 37 ++++++++++++-------------------------
custom-theme/main-banner.html | 18 +++++++++++++-----
custom-theme/nav.html | 12 +++++-------
5 files changed, 56 insertions(+), 37 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2989c8a0/custom-theme/base.html
----------------------------------------------------------------------
diff --git a/custom-theme/base.html b/custom-theme/base.html
index 03a5b4a..fead76a 100644
--- a/custom-theme/base.html
+++ b/custom-theme/base.html
@@ -17,6 +17,7 @@
<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 rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
{%- for path in extra_css %}
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2989c8a0/custom-theme/css/v2.css
----------------------------------------------------------------------
diff --git a/custom-theme/css/v2.css b/custom-theme/css/v2.css
new file mode 100644
index 0000000..d914811
--- /dev/null
+++ b/custom-theme/css/v2.css
@@ -0,0 +1,25 @@
+.v2-main-banner {
+ background-color: #F6F7F9;
+}
+
+.v2-main-banner .logo {
+ height: 150px;
+}
+
+.v2-main-banner .tagline {
+ margin-left: 20px;
+ margin-bottom: 40px; /* align with logo text */
+ display: inline-block;
+ vertical-align: bottom;
+}
+
+.v2-main-banner .news {
+ padding: 10px;
+ border-radius: 5px;
+}
+
+.v2-vcenter {
+ display: inline-block;
+ vertical-align: middle;
+ float: none;
+}
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2989c8a0/custom-theme/landing.html
----------------------------------------------------------------------
diff --git a/custom-theme/landing.html b/custom-theme/landing.html
index c325dfe..d24acd0 100644
--- a/custom-theme/landing.html
+++ b/custom-theme/landing.html
@@ -1,6 +1,4 @@
{% include 'main-banner.html' %}
-<br>
-<br>
<div class="container">
<div class="row">
@@ -10,21 +8,10 @@
{% endblock %}
</div>
</div>
-
-<div class="bg-orange padded event-callout content">
- <div class="row">
- <div class="row">
- <div class="col-md-12 text-center">
- <h3>Pre-GA release version of Mynewt 0.8.0 with BLE 4.2 support is available now. </h3>
- <p> <a href="http://mynewt.apache.org/download"> Download! </a> </p>
- </div>
- </div>
- </div>
-</div>
<div class="row">
<div class="col-md-8">
- <h2 style="font-weight:600">Apache Mynewt OS highlights:</h2>
+ <h2 style="font-weight:600">Apache Mynewt OS highlights:</h2>
<div class="row">
<div class="column col-md-6 goal text-center">
<div class="goal-image">
@@ -42,7 +29,7 @@
<p>High-performance, highly-configurable networking stacks, starting with Bluetooth Low Energy 4.2</p>
</div>
</div>
-
+
<div class="row">
<div class="column col-md-6 goal text-center">
<div class="goal-image">
@@ -51,7 +38,7 @@
</div>
<p>Secure yet simple image and configuration management</p>
</div>
-
+
<div class="column col-md-6 goal text-center">
<div class="goal-image">
<span class="helper"></span>
@@ -61,14 +48,14 @@
</div>
</div>
</div>
-
+
<div class="col-md-4">
<h2 style="font-weight:600">Supported Boards:</h2>
- <li>
- <a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF52832/"> nRF52 DK </a> from Nordic Semiconductor (Cortex-M4)
+ <li>
+ <a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF52832/"> nRF52 DK </a> from Nordic Semiconductor (Cortex-M4)
</li>
- <li>
- <a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF51822"> nRF51 DK </a> from Nordic Semiconductor (Cortex-M0)
+ <li>
+ <a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF51822"> nRF51 DK </a> from Nordic Semiconductor (Cortex-M0)
</li>
<li>
<a href="https://www.rigado.com/products/bmd-300-eval-kit/"> BMD-300-EVAL-ES </a> from Rigado (Cortex-M4)
@@ -87,16 +74,16 @@
</li>
<li>
<a href="http://www.arduino.org/products/boards/4-arduino-boards/arduino-m0-pro"> Arduino M0 Pro </a> (Cortex-M0)
- </li>
+ </li>
<h2 style="font-weight:600">Architecture:</h2>
<div class="column goal text-center">
<div class="goal-image">
<span class="helper"></span>
<img src="/img/OS_arch.png">
</div>
- </div>
+ </div>
</div>
-
+
</div>
-</div>
\ No newline at end of file
+</div>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2989c8a0/custom-theme/main-banner.html
----------------------------------------------------------------------
diff --git a/custom-theme/main-banner.html b/custom-theme/main-banner.html
index 411ee2d..4b6e4b1 100644
--- a/custom-theme/main-banner.html
+++ b/custom-theme/main-banner.html
@@ -1,8 +1,16 @@
-<div class="row"
- <div class="column col-md-12">
- <div class="main-banner">
- <img src="/img/logo.svg">
- <hsp class="hidden-xs">Modular OS to operate embedded environments of IoT devices</hsp>
+<div class="container">
+ <div class="row v2-main-banner">
+
+ <div class="col-md-8 v2-vcenter">
+ <img class="logo" src="/img/logo.svg">
+ <h2 class="tagline">Modular OS to operate an IoT network</h2>
+ </div><!--
+ --><div class="col-md-4 v2-vcenter">
+ <div class="news bg-orange text-center">
+ <h3>Pre-GA release version of Mynewt 0.8.0 with BLE 4.2 support is available now. </h3>
+ <a class="btn btn-default" href="http://mynewt.apache.org/download"> Download! </a>
+ </div>
</div>
+
</div>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2989c8a0/custom-theme/nav.html
----------------------------------------------------------------------
diff --git a/custom-theme/nav.html b/custom-theme/nav.html
index 0d823a2..9548994 100644
--- a/custom-theme/nav.html
+++ b/custom-theme/nav.html
@@ -2,7 +2,7 @@
<div class="logo-container">
<img src="/img/logo.svg">
</div>
- <div class="container-fluid">
+ <div class="container">
<!-- Collapsed navigation -->
<div class="navbar-header">
<!-- Expander button -->
@@ -28,15 +28,13 @@
<li class="dropdown">
<a href="/documentation/" class="dropdown-toggle" data-toggle="dropdown">Docs <b class="caret"></b></a>
<ul class="dropdown-menu">
- {% for nav_item in nav %}
- {% if nav_item.title in ['Documentation', 'Mynewt OS Manual', 'Newt Tool Manual', 'Newt Manager Manual', 'Appendix'] %}
- <li {% if nav_item.active %}class="active"{% endif %}>
+ {% for nav_item in nav %} {% if nav_item.title in ['Documentation', 'Mynewt OS Manual', 'Newt Tool Manual', 'Newt Manager Manual', 'Appendix'] %}
+ <li {% if nav_item.active %}class="active" {% endif %}>
<a href="{% if nav_item.url %}{{ nav_item.url }}{% else %}{{ nav_item.children[0].url }}{% endif %}">
{% if nav_item.title == 'Documentation' %}Overview{% else %}{{ nav_item.title }}{% endif %}
</a>
</li>
- {% endif %}
- {% endfor %}
+ {% endif %} {% endfor %}
</ul>
</li>
<li>
@@ -66,5 +64,5 @@
{% endif %}
</ul>
</div>
- # </div>
+ </div>
</div>