Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make cgran.org look like gnuradio #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions pelicanconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
PATH = 'content'

TIMEZONE = 'US/Eastern'
#SITEURL = 'http://nathanwest.us/cgran'
SITEURL = 'http://www.cgran.org'

DEFAULT_LANG = u'en'
Expand All @@ -25,17 +24,16 @@
FILES_TO_COPY = (
('src/projects.html', 'projects/index.html'),
)

# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True

THEME= 'pybombs-theme'

DIRECT_TEMPLATES = ['index',]
PLUGIN_PATHS = ['plugins/pelican-md-metayaml']
PLUGINS = ['md_metayaml']
DIRECT_TEMPLATES = ['index',]
PAGE_PATHS = ['oot_modules']
LOAD_CONTENT_CACHE=False
ARTICLE_EXCLUDE=['oot_modules']
#STATIC_PATHS = ["js"]

## custom page generated with a jinja2 template
15 changes: 5 additions & 10 deletions pybombs-theme/static/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
.status-badge {
box-sizing: border-box;
background-color: #fd6b5c;
color: snow;
padding-left: 5px;
padding-top: 3px;
padding-right: 5px;
padding-bottom: 3px;
display: inline-block;
margin-bottom: 5px;
.img {
display: block;
max-width: 100%;
margin-left: auto;
margin-right: auto;
}
.btn-group {
box-shadow: none;
Expand Down
6 changes: 3 additions & 3 deletions pybombs-theme/static/css/material.css
Original file line number Diff line number Diff line change
Expand Up @@ -18902,7 +18902,7 @@ legend {
float: right;
}
.navbar {
background-color: #ff5722;
background-color: #fff;
border: 0;
border-radius: 0;
}
Expand Down Expand Up @@ -19033,8 +19033,8 @@ fieldset[disabled] .navbar .btn-link:focus {
}
.navbar.navbar,
.navbar-default.navbar {
background-color: #ff5722;
color: #fff;
background-color: #fff;
color: #72706f;
margin-bottom: 0px;
}
.navbar.navbar .navbar-form .form-control-wrapper input.form-control::placeholder,
Expand Down
1 change: 1 addition & 0 deletions pybombs-theme/static/css/snackbar.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pybombs-theme/static/css/snackbar.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added pybombs-theme/static/images/assets/btn-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed pybombs-theme/static/images/assets/cgran-penta.png
Binary file not shown.
Binary file added pybombs-theme/static/images/assets/favicon.ico
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions pybombs-theme/static/js/snackbar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pybombs-theme/static/js/snackbar.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

104 changes: 65 additions & 39 deletions pybombs-theme/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,45 +1,64 @@
<!DOCTYPE html>
<head lang="en">
<meta charset="utf-8">
<title>{{ SITENAME }}</title>
<link href="{{ SITEURL }}/theme/css/bootstrap.min.css" rel="stylesheet">
<link href="{{ SITEURL }}/theme/css/bootstrap-table.min.css" rel="stylesheet">
<link href="{{ SITEURL }}/theme/css/material.css" rel="stylesheet">
<link href="{{ SITEURL }}/theme/css/ripples.min.css" rel="stylesheet">
<link href="{{ SITEURL }}/theme/css/font-awesome.min.css" rel="stylesheet">
<link href="{{ SITEURL }}/theme/css/custom.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>{{ SITENAME }}</title>
<script type="text/javascript">
navigator.registerProtocolHandler("pybombs",
"http://www.cgran.org/?uri=%s", "Pybombs URL")
</script>
<link href="{{ SITEURL }}/theme/css/bootstrap.min.css" rel="stylesheet">
<link href="{{ SITEURL }}/theme/css/bootstrap-table.min.css" rel="stylesheet">
<link href="{{ SITEURL }}/theme/css/material.css" rel="stylesheet">
<link href="{{ SITEURL }}/theme/css/ripples.min.css" rel="stylesheet">
<link href="{{ SITEURL }}/theme/css/font-awesome.min.css" rel="stylesheet">
<link href="{{ SITEURL }}/theme/css/custom.css" rel="stylesheet">
<link href="{{ SITEURL }}/theme/css/snackbar.min.css" rel="stylesheet">
<link rel="shortcut icon" href="{{ SITEURL }}/theme/images/assets/favicon.ico"
type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="bs-component">
<div class="navbar navbar-default">
<div class ="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ SITEURL }}/index.html">CGRAN</a>
<a class="navbar-brand" href="{{ SITEURL }}/projects">Projects</a>
</div>
<div class="navbar-collapse collapse navbar-responsive-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="bootstrap-elements.html" data-target="#" class="dropdown-toggle" data-toggle="dropdown">Documentation<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="https://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules">Create OOT Module</a></li>
<li><a href="https://gnuradio.org/redmine/projects/pybombs/wiki/Contributing">Submit OOT Module</a></li>
<li class="divider"></li>
<li><a href="http://gnuradio.org/redmine/projects/pybombs/wiki">PyBOMBS Wiki</a></li>
<li><a href="https://gnuradio.org/doc/doxygen/index.html">GNU Radio Manual</a></li>
<li class="divider"></li>
<li><a href="http://libvolk.org/doxygen/index.html">VOLK Documentation</a></li>
</ul>
<li><a href="https://www.gnuradio.org/redmine/projects/gnuradio/wiki">GNU Radio</a></li>
<li><a href="http://libvolk.org/">VOLK</a></li>
</div>
</div>
<div class ="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse"
data-target=".navbar-responsive-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ SITEURL }}/index.html">
<img src="{{ SITEURL }}/theme/images/assets/btn-icon.png"
style="height: 30px; padding-right: 5px;">CGRAN</a>
<a class="navbar-brand" href="{{ SITEURL }}/projects">Projects</a>
</div>
<div class="navbar-collapse collapse navbar-responsive-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="bootstrap-elements.html" data-target="#"
class="dropdown-toggle"
data-toggle="dropdown">Documentation<bclass="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="https://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules"
target=blank>Create OOT Module</a></li>
<li><a href="https://gnuradio.org/redmine/projects/pybombs/wiki/Contributing"
target=blank>Submit OOT Module</a></li>
<li class="divider"></li>
<li><a href="http://gnuradio.org/redmine/projects/pybombs/wiki"
target=blank>PyBOMBS Wiki</a></li>
<li><a href="https://gnuradio.org/doc/doxygen/index.html"
target=blank>GNU Radio Manual</a></li>
<li class="divider"></li>
<li><a href="http://libvolk.org/doxygen/index.html"
target=blank>VOLK Documentation</a></li>
</ul>
<li><a href="https://www.gnuradio.org/redmine/projects/gnuradio/wiki"
target=blank>GNU Radio</a></li>
<li><a href="http://libvolk.org/"
target=blank>VOLK</a></li>
</div>
</div>
</div>
</div>
{% block content %}
Expand All @@ -54,6 +73,7 @@
<!-- Material and ripple js -->
<script src="{{ SITEURL }}/theme/js/material.min.js"></script>
<script src="{{ SITEURL }}/theme/js/ripples.min.js"></script>
<script src="{{ SITEURL }}/theme/js/snackbar.min.js"></script>
<script>
$(document).ready(function() {
$.material.init();
Expand All @@ -62,12 +82,18 @@
<script>
$(function () {
$('#tableId').bootstrapTable(); // init via javascript

$(window).resize(function () {
$('#tableId').bootstrapTable('resetView');
});
});
</script>
<script>

$(function() {
$.snackbar({content: "Psst ! Install from CGRAN works only if PyBOMBS or PYBOMBSQtGUI is installed", timeout: 5000});
});
</script>
<script>
jQuery.fn.bootstrapTable.defaults.icons = { paginationSwitchDown: "fa fa-chevron-down",
paginationSwitchUp: "fa fa-chevron-up",
Expand All @@ -76,8 +102,8 @@
columns: "fa fa-filter"};
</script>
</body>
<footer>
<div class="footerbottom">
<footer class="footer">
<div class="container" style="text-align:center; padding-top: 10px; padding-bottom: 10px;">
<p>
&copy; 2015 Ravi Sharan and Nathan West<br>
This page is licensed under a <a href="http://creativecommons.org/licenses/by-nd/3.0/us/"> Creative Commons Attribution-NoDerivs 3.0 United States License</a>
Expand Down
55 changes: 25 additions & 30 deletions pybombs-theme/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,54 +1,49 @@
{% extends "base.html" %}
{% block content %}
<div class="headerband" id="banner" style="padding: 20px 0px 20px 0px;">
<div class="headerband" id="banner" style="
background-image: url('theme/images/assets/gnu.jpg');
padding: 20px 0px 20px 0px;
background-size: cover;
background-position: center center;">
<div class="row">
<div class="container">
<div class="col-lg-4 col-md-4" style="text-align: center;">
<img src="theme/images/assets/cgran_logo.png"/>
</div>
<div class="col-lg-7 col-md-7" style="text-align: center;">
<h3 style="color: #fd6b5c">The Comprehensive GNU Radio Archive Network</h3>
<p class="lead" style="padding-top: 30px; color: #757575">
The Comprehensive GNU Radio Archive Network (CGRAN) is a free
open source repository for 3rd party GNU Radio applications
a.k.a Out Of Tree Modules that are not officially supported by
the GNU Radio project.
</p>
</div>
<div class="col-xs-1 col-md-1" id="headimage">
<a href="#front-matter-detail" class="btn btn-warning btn-fab btn-raised"
data-toggle="collapse" aria-expanded="false" aria-controls="front-matter-detail"
style="position: absolute; top: 215px; margin-left: 20px;">
<i class="fa fa-chevron-down" style="color: #e5e5e5"></i>
</a>
<div class="col-lg-12 col-md-12" style="text-align: center;">
<h2 style="color: #fdfdfd">The Comprehensive GNU Radio Archive Network</h2>
<p class="lead" style="padding-top: 30px; color: #fff">
CGRAN is a free and open source repository for 3rd party GNU Radio
applications a.k.a Out Of Tree Modules that are not officially
supported by the GNU Radio project.
</p>
</div>
</div>
</div>
</div>

<div class="headerband collapse" id="front-matter-detail" style="padding: 0px">
<div class="headerband collapse" style="padding: 0px">
<div style="background: #FFF8E1" id="headimage">
<div class="row">
<div class="container">
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="row">
<div class="col-md-3" style="padding-top: 25px;" id="headimage">
<a href="https://gnuradio.org/redmine/projects/gnuradio/wiki"><img src="theme/images/assets/gr_logo_white.png "></a>
<a href="https://gnuradio.org/redmine/projects/gnuradio/wiki"><img
src="theme/images/assets/gr_logo_white.png "></a>
</div>
<div class="col-md-9">
<p class="lead" style="padding-top: 30px; color: #757575;">
GNU Radio is a free software development toolkit that provides
<div class="col-md-9>
<p class="lead" style="padding-top: 30px; color: #757575;>
GNU Radio is a free software development toolkit that provides
signal processing blocks to implement software-defined radios and
signal processing systems.
</p>
signal processing systems.
</p>
</div>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="row">
<div class="col-md-3" style="padding-top: 25px;" id="headimage">
<a href="https://github.com/gnuradio/pybombs/"><img src="theme/images/assets/circlebombs.png"></a>
</div>
<a href="https://github.com/gnuradio/pybombs/"><img
src="theme/images/assets/circlebombs.png"></a>
</div>
<div class="col-md-9">
<p class="lead" style="padding-top: 30px; color: #757575">
PyBOMBS is the GNU Radio install management system for resolving
Expand All @@ -64,8 +59,8 @@ <h3 style="color: #fd6b5c">The Comprehensive GNU Radio Archive Network</h3>

<div style="background: #fff; padding-bottom: 50px;">
<div class="container" id="gr-table">
<div style="text-align: center; padding: 20px 0px 0px 0px">
<h2>Browse~Checkout~Hack</h2>
<div style="text-align: center; padding: 20px 0px 0px 0px">
<h2>Browse ~ Checkout ~ Hack</h2>
</div>

<table data-toggle="table"
Expand Down
Loading