Skip to content

Commit

Permalink
update layout and HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Oct 14, 2019
1 parent 2d0beb5 commit 9553fd8
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 70 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ acme.json

# DockerHub token and paths
dockerhub.env

# dev artifacts
__pycache__
Binary file added services/home/app/static/pygeoapi-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions services/home/app/templates/_layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{% block title %}{% endblock %} - pygeoapi Demo Server</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="language" content="en-US">
<meta name="description" content="pygeoapi provides an API to geospatial data">
<meta name="keywords" content="geospatial,data,api">
<link rel="canonical" href="https://demo.pygeoapi.io">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/mini-default.min.css">
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script>
<![endif]-->
<!-- Place this tag in your head or just before your close body tag. -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
</head>
<body>
<header class="sticky row">
<div class="col-sm-12 col-md-10 col-md-offset-1">
<a href="{{ config.site_url }}" class="logo" role="button">
<img src="{{ config.site_url }}/static/pygeoapi-logo.png" title="pygeoapi" style="height:40px;vertical-align: middle;"/></a>
<a title="Fork me on GitHub" href="https://github.com/geopython/demo.pygeoapi.io"><img style="z-index: -1; position: fixed; top: 0; right: 0; border: 0;" src="https://github.blog/wp-content/uploads/2008/12/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"/></a>
</div>
</header>
<main>
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-10 col-md-offset-1">
{% block body %}
{% endblock %}
</div>
</div>
</div>
</main>
<footer style="text-align: center;">Powered by <a title="pygeoapi" href="https://pygeoapi.io"><img src="{{ config.site_url }}/static/pygeoapi-logo.png" title="pygeoapi logo" style="height:24px;vertical-align: middle;"/></a></footer>
</footer>
</body>
</html>
2 changes: 1 addition & 1 deletion services/home/app/templates/error.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'layout.html' %}
{% extends '_layout.html' %}

{% block body %}

Expand Down
25 changes: 7 additions & 18 deletions services/home/app/templates/home.html
Original file line number Diff line number Diff line change
@@ -1,45 +1,34 @@
{% extends 'layout.html' %}
{% extends '_layout.html' %}

{% block title %}Home{% endblock %}
{% block body %}

<div class="container">
<h2>Welcome to pygeoapi Demo Server</h2>
<p>
This server mainly runs instances of
the <a href="https://pygeoapi.io">pygeoapi</a> service. <br/>
Find the major links below.
This server mainly runs instances of the <a title="pygeoapi" href="https://pygeoapi.io">pygeoapi</a> service.
</p>
<table style="width: auto;" class="table table-bordered table-condensed table-responsive">
<thead>
<tr>
<th width="80%">Name</th>
<th>Link</th>
<th width="50%">Demonstrations</th>
</tr>
</thead>
<tr>
<td>pygeoapi - latest GitHub 'master' version</td>
<td><a target="_blank" href="/master" class="btn btn-success" role="button">Link</a></td>
<td><a target="_blank" href="/master" class="btn btn-success">pygeoapi - latest GitHub 'master' version</a></td>
</tr>
<tr>
<td>pygeoapi - latest stable version</td>
<td><a target="_blank" href="/stable" class="btn btn-success" role="button">Link</a></td>
<td><a target="_blank" href="/stable" class="btn btn-success">pygeoapi - latest stable version</a></td>
</tr>
<tr>
<td>Project Home</td>
<td><a target="_blank" href="https://pygeoapi.io/" class="btn btn-success" role="button">Link</a></td>
</tr>
<tr>
<td>Test Client - by OpenGeoGroep</td>
<td><a target="_blank" href="https://opengeogroep.github.io/ogc-api-features-testclient/src/index.html" class="btn btn-success" role="button">Link</a></td>
<td><a target="_blank" href="https://opengeogroep.github.io/ogc-api-features-testclient/src/index.html" class="btn btn-success">Test Client - by OpenGeoGroep</a></td>
</tr>
</table>
<p>
The setup and configuration of this server
<a href="https://github.com/geopython/demo.pygeoapi.io">can be found in GitHub</a>.<br/>
Can be handy to start running your own pygeoapi instance!
</p>


</div>

{% endblock %}
50 changes: 0 additions & 50 deletions services/home/app/templates/layout.html

This file was deleted.

2 changes: 1 addition & 1 deletion services/home/app/templates/pygeoapi.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'layout.html' %}
{% extends '_layout.html' %}

{% block body %}

Expand Down

0 comments on commit 9553fd8

Please sign in to comment.