Use shared partials (#24)

* add partials repo as submodule

* use header nav partial

* update header nav to use partial

* added missing popup html

* add update script

* updated submodule(s)
This commit is contained in:
Sam Thomson 2018-11-28 15:29:37 +07:00 committed by Andy Tudhope
parent 5f98d3dac6
commit 2063113431
5 changed files with 15 additions and 13 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "themes/navy/layout/partial/shared-partials"]
path = themes/navy/layout/partial/shared-partials
url = https://github.com/status-im/status.im-partials

View File

@ -9,7 +9,8 @@
"clean": "rm -rf public/*",
"build": "gulp run && hexo generate",
"eslint": "eslint .",
"deploy": "hexo deploy"
"deploy": "hexo deploy",
"update-submodules": "git submodule update --recursive --remote"
},
"dependencies": {
"gulp": "^3.9.1",

View File

@ -7,7 +7,7 @@
{{ partial('partial/header') }}
{% endif %}
{{ body }}
{{ partial('partial/footer') }}
{{ partial('partial/shared-partials/partials/footer') }}
</div>
{{ partial('partial/after_footer') }}
</body>

View File

@ -1,15 +1,7 @@
<div class="header">
<div class="header-left">
<a class="logo" href={{url_for_lang('/')}}></a>
<ul class="main-nav">
<li class="item--to-show"><a href="https://status.im/get/" class="">App</a></li>
<li class="item--to-show"> <a href="https://our.status.im/tag/nimbus/">Blog</a> </li>
<li class="item--to-show"> <a href={{url_for_lang('docs')}}>Docs</a></li>
<li class="item--dropdown item--dropdown-projects"> <a href="#" class="">Projects</a></li>
<li><a href="https://status.im/contribute/">Contribute</a></li>
<li class="item--dropdown"><a href="#" class="item--dropdown-community">Community</a></li>
<li class="item--more"><a href="#" class="item--more">More</a></li>
</ul>
{{ partial('partial/shared-partials/partials/header-nav') }}
</div>
<div class="header-right">
<a href="http://get.status.im/chat/public/status-nimbus" class="button button--secondary" style="margin-right: 8px">Nimbus Status Chat</a>
@ -38,8 +30,13 @@
<div class="mobile-nav-footer">
<a href="http://get.status.im/chat/public/status-nimbus" class="button button--orange">Nimbus Status Chat</a>
</div>
<header class="dropdown">
<nav>
{{ partial('partial/shared-partials/partials/header-nav') }}
</nav>
</header>
</div>
<div class="mobile-nav-overlay"></div>
<div class="popup-overlay"></div>
</div>
<div class="popup-wrap popup-wrap--community">
@ -49,7 +46,7 @@
<div class="popup__inner">
<div class="cards cards--three cards--three--even cards--community cards--community--light">
<div class="card">
<a href={{url_for_lang('get')}} class="card-inner">
<a href="https://get.status.im/chat/public/status" class="card-inner">
<div class="community-icon community-icon--join"></div>
<h4>Join the chat in Status</h4>
<p class="secondary-text">Whisper sweet, encrypted nothings on a distributed network that no-one owns.</p>

@ -0,0 +1 @@
Subproject commit 100498f37bca143184217d3531d33bd5c78f22f0