planet.plone.org/svx: Back to work - WIP theme

sven <jenkins-z4DKO/[email protected]> Fri, 28 Jul 2017 03:06:38 -0700 (PDT)
Newsgroups gmane.comp.web.zope.plone.cvs
Message-ID <[email protected]>
Repository: planet.plone.org
Branch: refs/heads/svx
Date: 2017-07-28T12:06:12+02:00
Author: sven (svx) <[email protected]>
Commit: https://github.com/plone/planet.plone.org/commit/fe8036bdddd9334abcbd0dcfcb34ba83f7bc4dfa

Back to work - WIP theme

Files changed:
M planet/planet.ini
M planet/planet.theme/css-v2/fedora_planet.css
M planet/planet.theme/templates/inc/masthead.tmpl
M planet/planet.theme/templates/index.html.tmpl
M scripts/setup.sh

diff --git a/planet/planet.ini b/planet/planet.ini
index 4987461..a0b4bf7 100644
--- a/planet/planet.ini
+++ b/planet/planet.ini
@@ -1,5 +1,5 @@
 [Planet]
-name = Fedora People
+name = Plone People
 link = fedoraplanet.org/
 owner_name = Fedora Admin
 owner_email = admin-rxtnV0ftBwyoClj4AeEUq9i2O/[email protected]
@@ -24,18 +24,18 @@ spider_threads = 20
 # The facewidth of the defined blog defaults to 64.
 
 [DEFAULT]
-face = http://fedoraplanet.org/images-v2/heads/default.png
+face = https://pbs.twimg.com/profile_images/529604804339703810/gbZJABAb_80x80.png
 
-[http://dailypackage.fedorabook.com/index.php?/feeds/index.rss2]
-name = fedora daily package
-face = /images-v2/heads/fdp.png
-fasname = admin
+#[https://www.stevemcmahon.com/steves-blog/plone/atom.xml]
+#name = Steve McMahon
+#face = /images-v2/heads/fdp.png
+#fasname = admin
 
-[http://www.redhatmagazine.com/category/fedora/feed]
-name = Red Hat Magazine Feed
-fasname = admin
+[https://www.starzel.de/blog/plone-blog/RSS]
+name = Starzel.de
+#fasname = admin
 
-[http://fedorauniversity.wordpress.com/feed/]
-name = Fedora University Tour
-fasname = admin
+[http://maurits.vanrees.org/weblog/topics/plone/@@atom.xml]
+name = Maurits van Rees
+#fasname = admin
 
diff --git a/planet/planet.theme/css-v2/fedora_planet.css b/planet/planet.theme/css-v2/fedora_planet.css
index b742e06..4d0f844 100644
--- a/planet/planet.theme/css-v2/fedora_planet.css
+++ b/planet/planet.theme/css-v2/fedora_planet.css
@@ -34,3 +34,86 @@ text-align: center;
 width: inherit !important;
 height: inherit !important;
 }
+
+/*
+ * Start Bootstrap - Logo Nav (http://startbootstrap.com/)
+ * Copyright 2013-2016 Start Bootstrap
+ * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
+ */
+
+body {
+    padding-top: 70px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */
+}
+
+.navbar-fixed-top .nav {
+    padding: 15px 0;
+}
+
+.navbar-fixed-top .navbar-brand {
+    padding: 0 15px;
+}
+
+@media(min-width:768px) {
+    body {
+        padding-top: 100px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */
+    }
+
+    .navbar-fixed-top .navbar-brand {
+        padding: 15px 0;
+    }
+}
+
+.topbar{
+font-size: 11px;
+font-weight: 600;
+text-transform: uppercase;
+background: #1f1238;
+width: 100%;
+overflow: hidden;
+border-bottom: 1px solid black;
+}          
+.topcontainer{
+margin-right: auto;
+margin-left: auto;
+padding-left: 15px;
+padding-right: 15px
+}
+@media (min-width: 968px){
+.topcontainer{
+  width: 750px;
+  }
+}
+@media (min-width: 992px){
+.topcontainer{
+  width: 970px;
+  }
+}
+@media (min-width: 1200px){
+.topcontainer{
+  width: 1170px;
+  }
+}
+.topbar ul{
+  margin-right: 2.5em;
+  float: right;
+  margin: 0;
+  padding: 0;
+  list-style: none;
+}
+.topbar ul li{
+  float: left;
+}
+.topbar a{
+color: #e5e5e5;
+text-decoration: none;
+padding: 7px 8px 5px 8px;
+line-height: 11px;
+display: inline-block;
+font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
+font-size: 11px;
+font-weight: 600;
+}
+.topbar a:hover{
+color: #fff;
+background: #2a184b;
+}
diff --git a/planet/planet.theme/templates/inc/masthead.tmpl b/planet/planet.theme/templates/inc/masthead.tmpl
index d09c01c..6904f82 100644
--- a/planet/planet.theme/templates/inc/masthead.tmpl
+++ b/planet/planet.theme/templates/inc/masthead.tmpl
@@ -1,24 +1,54 @@
 <div class="navbar navbar-full masthead">
-  <div class="container">
-    <a href="/"><img src="/images-v2/fedoraplanet_logo.png" alt="fedora" height="40px"></a>
-    <ul class="nav navbar-nav nav-pills pull-xs-right">
-      <li class="nav-item dropdown"><a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button">About</a>
-        <ul class="dropdown-menu dropdown-menu-right">
-          <a href="http://get.fedoraproject.org/" class="dropdown-item">Get Fedora</a>
-          <a href="http://fedoramagazine.org" class="dropdown-item">Fedora Magazine</a>
-          <a href="https://communityblog.fedoraproject.org/" class="dropdown-item">Fedora Community Blog</a>
-          <a href="http://join.fedoraproject.org/" class="dropdown-item">Join Fedora</a>
-        </ul>
-      </li>
-      <li class="nav-item dropdown"><a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button">Sub-Planets</a>
-        <ul class="dropdown-menu dropdown-menu-right">
-          <a href="/desktop" class="dropdown-item">Desktop</a>
-          <a href="/design" class="dropdown-item">Design</a>
-          <a href="/summer-coding" class="dropdown-item">Summer Coding</a>
-          <a href="/security" class="dropdown-item">Security</a>
-        </ul>
-      </li>
-      <li class="nav-item"><a href="https://fedoraproject.org/wiki/Planet_HowTo" class="nav-link">Add Blog</a></li>
-    </ul>
-  </div>
+<!-- Navigation -->
+    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
+       <!--test -->
+        <div class="topbar">
+            <div class="topcontainer">
+              <ul id="links-select">
+                <li>
+                  <a href="https://plone.org" title="Main Website">
+                    plone.org
+                  </a>
+                </li>
+                <li>
+                  <a href="http://plone.com" title="Plone.com">
+                    plone.com
+                  </a>
+                </li>
+                <li>
+                  <a href="https://training.plone.org" title="Training">
+                    training.plone.org
+                  </a>
+                </li>
+                <li>
+                  <a href="http://docs.plone.org" title="Documentation">
+                    docs.plone.org
+                  </a>
+                </li>
+              </ul>
+            </div>
+          </div>
+       <!-- end test -->
+  <!-- #<div class="container">
+  #  <a href="/"><img src="/images-v2/fedoraplanet_logo.png" alt="fedora" height="40px"></a>
+  #  <ul class="nav navbar-nav nav-pills pull-xs-right">
+  #    <li class="nav-item dropdown"><a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button">About</a>
+  #      <ul class="dropdown-menu dropdown-menu-right">
+  #        <a href="http://get.fedoraproject.org/" class="dropdown-item">Get Fedora</a>
+  #        <a href="http://fedoramagazine.org" class="dropdown-item">Fedora Magazine</a>
+  #        <a href="https://communityblog.fedoraproject.org/" class="dropdown-item">Fedora Community Blog</a>
+  #        <a href="http://join.fedoraproject.org/" class="dropdown-item">Join Fedora</a>
+  #      </ul>
+  #    </li>
+  #    <li class="nav-item dropdown"><a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button">Sub-Planets</a>
+  #      <ul class="dropdown-menu dropdown-menu-right">
+  #        <a href="/desktop" class="dropdown-item">Desktop</a>
+  #        <a href="/design" class="dropdown-item">Design</a>
+  #        <a href="/summer-coding" class="dropdown-item">Summer Coding</a>
+  #        <a href="/security" class="dropdown-item">Security</a>
+  #      </ul>
+  #    </li>
+  #    <li class="nav-item"><a href="https://fedoraproject.org/wiki/Planet_HowTo" class="nav-link">Add Blog</a></li>
+  #  </ul>
+  #</div> -->
 </div>
diff --git a/planet/planet.theme/templates/index.html.tmpl b/planet/planet.theme/templates/index.html.tmpl
index 3ced202..f7f54d5 100644
--- a/planet/planet.theme/templates/index.html.tmpl
+++ b/planet/planet.theme/templates/index.html.tmpl
@@ -8,7 +8,7 @@
       <div class="container p-t-2">
         <div>
           <h2 class="p-b-2"><TMPL_VAR title>
-            <div class="btn-group pull-xs-right" role="group" aria-label="Button group with nested dropdown">
+            <!-- <div class="btn-group pull-xs-right" role="group" aria-label="Button group with nested dropdown">
               <a class="btn btn-sm btn-secondary" href="heads.html">Blog List</a>
 
               <div class="btn-group" role="group">
@@ -22,7 +22,7 @@
                   <a class="dropdown-item" href="foafroll.xml">FOAF blogroll</a>
                 </div>
               </div>
-            </div>
+            </div> -->
           </h2>
 
         </div>
@@ -44,7 +44,7 @@
                             </a>
                           </h2>
                             <small>Posted by <a href="<TMPL_VAR channel_link ESCAPE="HTML">"><TMPL_VAR channel_name></a>
-                            <span class="fas-account">(<img src="https://fedoraproject.org/w/uploads/a/ac/Infra-icon_fas.png" alt="Fedora Account System Username" name="Fedora Account System Username"><a href="https://admin.fedoraproject.org/accounts/user/view/<TMPL_VAR channel_fasname ESCAPE="HTML">"><TMPL_VAR channel_fasname ESCAPE="HTML"></a>)</span>
+                            <!-- <span class="fas-account">(<img src="https://fedoraproject.org/w/uploads/a/ac/Infra-icon_fas.png" alt="Fedora Account System Username" name="Fedora Account System Username"><a href="https://admin.fedoraproject.org/accounts/user/view/<TMPL_VAR channel_fasname ESCAPE="HTML">"><TMPL_VAR channel_fasname ESCAPE="HTML"></a>)</span> -->
                             on <a href="<TMPL_VAR link>"><TMPL_VAR date></a>
                             </small>
                         </div>
diff --git a/scripts/setup.sh b/scripts/setup.sh
index 7ab03c1..461a78d 100644
--- a/scripts/setup.sh
+++ b/scripts/setup.sh
@@ -26,7 +26,7 @@ sudo apt-get install -y nginx
 git clone https://github.com/rubys/venus.git /srv/venus/source
 
 # Set permissions for vargrant
-chown -R vagrant:vagrant /srv/venus
+chown -R ubuntu:ubuntu /srv/venus
 
 # Setup nginx
 cat > /etc/nginx/conf.d/planet.plone.org.conf << "EOF"



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot