Beta site frontend as static files
70
frontend/404.html
Executable file
@ -0,0 +1,70 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Colouring London</title>
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="main.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p class="beta-banner" role="alert" >
|
||||
|
||||
Hello! Welcome to the prototype (beta) site for Colouring London. <a
|
||||
href="http://colouringlondon.org">Find out more.</a>
|
||||
|
||||
</p>
|
||||
<header class="main-header">
|
||||
<nav class="navbar navbar-light navbar-expand">
|
||||
<a href="index.html" class="logo navbar-brand" id="top">
|
||||
<div class="grid">
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
</div>
|
||||
<h1 class="logotype">
|
||||
<span>Colouring</span>
|
||||
<span>London</span>
|
||||
</h1>
|
||||
</a>
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item"><a href="maps.html" class="nav-link">View Maps</a></li>
|
||||
<li class="nav-item"><a href="about.html" class="nav-link">About</a></li>
|
||||
<li class="nav-item"><a href="404.html" class="nav-link">Log in</a></li>
|
||||
<li class="nav-item"><a href="404.html" class="nav-link">Sign up</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="beta">
|
||||
<article>
|
||||
<div class="main-col">
|
||||
<h1 class="h2">Page not found</h1>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet.js"
|
||||
integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw=="
|
||||
crossorigin=""></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.4.4/proj4.js" integrity="sha256-ROS+XfN+WVpU3giGt7Fwy92u3h4at1gN7Z5xQ2Ke1lw=" crossorigin="anonymous"></script>
|
||||
<script src="main.js"></script>
|
||||
</body>
|
||||
</html>
|
291
frontend/about.html
Executable file
@ -0,0 +1,291 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Colouring London</title>
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="main.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p class="beta-banner" role="alert" >
|
||||
|
||||
Hello! Welcome to the prototype (beta) site for Colouring London. <a
|
||||
href="http://colouringlondon.org">Find out more.</a>
|
||||
|
||||
</p>
|
||||
<header class="main-header">
|
||||
<nav class="navbar navbar-light navbar-expand">
|
||||
<a href="index.html" class="logo navbar-brand" id="top">
|
||||
<div class="grid">
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
</div>
|
||||
<h1 class="logotype">
|
||||
<span>Colouring</span>
|
||||
<span>London</span>
|
||||
</h1>
|
||||
</a>
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item"><a href="maps.html" class="nav-link">View Maps</a></li>
|
||||
<li class="nav-item active"><a href="about.html" class="nav-link">About</a></li>
|
||||
<li class="nav-item"><a href="404.html" class="nav-link">Log in</a></li>
|
||||
<li class="nav-item"><a href="404.html" class="nav-link">Sign up</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="beta">
|
||||
<article>
|
||||
<div class="main-col">
|
||||
<h1 class="h2">Can you help us capture information on every building in London?</h1>
|
||||
|
||||
<p>
|
||||
|
||||
How many buildings are there in London? What are their characteristics? Where
|
||||
are they located and how do they contribute to the city? How adaptable are
|
||||
they? How long will they last, and what are the environmental and
|
||||
socio-economic implications of demolition?
|
||||
|
||||
</p>
|
||||
<p>
|
||||
|
||||
Colouring London is being designed to address these questions by crowdsourcing
|
||||
and visualising information on London’s buildings. We’re releasing the
|
||||
prototype for testing in the late summer. See the slideshow below for what it
|
||||
will look like.
|
||||
|
||||
</p>
|
||||
|
||||
<a class="btn btn-center" href="#sign-up">Sign up for updates</a>
|
||||
|
||||
<div class="carousel">
|
||||
<button class="carousel-control offscreen-text back">Back</button>
|
||||
<ul class="carousel-content">
|
||||
<li><img src="images/slide-1-welcome.png" alt="Welcome"></li>
|
||||
<li><img src="images/slide-2-categories.png" alt="Categories"></li>
|
||||
<li><img src="images/slide-3-edit.png" alt="Add/edit data"></li>
|
||||
<li><img src="images/slide-4-view.png" alt="View maps"></li>
|
||||
<li><img src="images/slide-5-download.png" alt="Download data"></li>
|
||||
<li><img src="images/slide-6-showcase.png" alt="Showcase"></li>
|
||||
<li><img src="images/slide-7-partners.png" alt="Partners"></li>
|
||||
</ul>
|
||||
<button class="carousel-control offscreen-text next">Next</button>
|
||||
</div>
|
||||
|
||||
|
||||
<a class="btn btn-center" href="files/colouring-london-online-exhibition.pdf">View online exhibition</a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div class="main-col">
|
||||
<p>
|
||||
|
||||
Colouring London is being designed and built by the Centre for Advanced Spatial
|
||||
Analysis (CASA), University College London and funded by Historic England.
|
||||
Ordnance Survey is providing building footprints required to collect the data,
|
||||
facilitated by the GLA, and giving access to its API and technical support. It
|
||||
will launch in 2019.
|
||||
|
||||
</p>
|
||||
|
||||
<ul class="logo-list">
|
||||
<li><a href="https://www.ucl.ac.uk/bartlett/casa/"><img src="images/logo-casa.png" alt="Centre for Advanced Spatial Analysis (CASA)"></a></li>
|
||||
<li><a href="https://www.ucl.ac.uk/"><img src="images/logo-ucl.png" alt="University College London"></a></li>
|
||||
<li><a href="https://www.historicengland.org.uk/"><img src="images/logo-he.png" alt="Historic England"></a></li>
|
||||
<li><a href="https://www.ordnancesurvey.co.uk/"><img src="images/logo-os.png" alt="Ordnance Survey"></a></li>
|
||||
<li><a href="https://www.london.gov.uk/"><img src="images/logo-gla.png" alt="Supported by the Mayor of London"></a></li>
|
||||
</ul>
|
||||
|
||||
<a href="supporters.html" class="btn">People and Supporting Organisations</a>
|
||||
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div class="main-col">
|
||||
<h2 class="h1">Data Categories</h2>
|
||||
|
||||
<p>
|
||||
|
||||
12 categories have been chosen in consultation with specialists working in a
|
||||
range of areas, from energy analysis and sustainable urban planning and design
|
||||
to building conservation, community planning, architecture and historical
|
||||
research.
|
||||
|
||||
</p>
|
||||
|
||||
<ol class="data-category-list">
|
||||
<li class="bold-yellow">
|
||||
<h3 class="category">Location</h3>
|
||||
<p class="description">Where is it?</p>
|
||||
</li><!--
|
||||
--><li class="bright-yellow">
|
||||
<h3 class="category">Use</h3>
|
||||
<p class="description">How is it used?</p>
|
||||
</li><!--
|
||||
--><li class="bold-orange">
|
||||
<h3 class="category">Type</h3>
|
||||
<p class="description">How was it first used?</p>
|
||||
</li><!--
|
||||
--><li class="red">
|
||||
<h3 class="category">Age</h3>
|
||||
<p class="description">When was it built?</p>
|
||||
</li><!--
|
||||
--><li class="pastel-pink">
|
||||
<h3 class="category">Size</h3>
|
||||
<p class="description">How big is it?</p>
|
||||
</li><!--
|
||||
--><li class="pastel-purple">
|
||||
<h3 class="category">Construction</h3>
|
||||
<p class="description">How is it built?</p>
|
||||
</li><!--
|
||||
--><li class="blue-grey">
|
||||
<h3 class="category">Design/Build</h3>
|
||||
<p class="description">Who built it?</p>
|
||||
</li><!--
|
||||
--><li class="bright-green">
|
||||
<h3 class="category">Street Front</h3>
|
||||
<p class="description">How does it relate to the street?</p>
|
||||
</li><!--
|
||||
--><li class="pastel-green">
|
||||
<h3 class="category">Greenery</h3>
|
||||
<p class="description">Is it near a tree or park?</p>
|
||||
</li><!--
|
||||
--><li class="bright-blue">
|
||||
<h3 class="category">Protection</h3>
|
||||
<p class="description">Is it designated?</p>
|
||||
</li><!--
|
||||
--><li class="pale-grey">
|
||||
<h3 class="category">Demolitions</h3>
|
||||
<p class="description">How many rebuilds on the site?</p>
|
||||
</li><!--
|
||||
--><li class="pale-brown">
|
||||
<h3 class="category">Like Me?</h3>
|
||||
<p class="description">Do you like it?</p>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div class="main-col">
|
||||
<h2 class="h1">Once built, our platform will allow you to:</h2>
|
||||
</div>
|
||||
|
||||
<section class="pale-pink">
|
||||
<div class="main-col">
|
||||
<h3 class="h2">View maps</h3>
|
||||
|
||||
<p>
|
||||
|
||||
To view the data, navigate to the ‘View Maps’ page and find the category that
|
||||
interests you.
|
||||
|
||||
</p>
|
||||
|
||||
<img class="border-image" src="images/slide-4-view.png" alt="Preview of view maps page">
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="pale-yellow">
|
||||
<div class="main-col">
|
||||
<h3 class="h2">Add and edit data</h3>
|
||||
|
||||
<p>
|
||||
|
||||
Find a building and add or edit data for any of the 12 core categories.
|
||||
|
||||
</p>
|
||||
|
||||
<img class="border-image" src="images/slide-3-edit.png" alt="Preview of add/edit data page">
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="pale-orange">
|
||||
<div class="main-col">
|
||||
<h3 class="h2">See how people are using our data</h3>
|
||||
|
||||
<p>
|
||||
|
||||
Find links to visualisations and analysis, art projects and applications
|
||||
relating to the evolution of London, housing, energy, planning, heritage and
|
||||
history—or something we haven’t imagined yet.
|
||||
|
||||
</p>
|
||||
|
||||
<img class="border-image" src="images/slide-6-showcase.png" alt="Preview of data showcase page">
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="pale-green">
|
||||
<div class="main-col">
|
||||
<h3 class="h2">Download, remix and reuse</h3>
|
||||
|
||||
<p>
|
||||
|
||||
Access bulk downloads of data created through the project to use and reuse
|
||||
under a liberal open data license. Let us know and we’ll feature showcase
|
||||
projects on the Colouring London site.
|
||||
|
||||
</p>
|
||||
|
||||
<img class="border-image" src="images/slide-5-download.png" alt="Preview of download page">
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="main-col">
|
||||
|
||||
<form id="sign-up" action="https://tinyletter.com/colouringlondon" method="post" target="popupwindow"
|
||||
onsubmit="window.open('https://tinyletter.com/colouringlondon', 'popupwindow', 'scrollbars=yes,width=800,height=600');return true">
|
||||
<h3 class="h1">Keep in touch</h3>
|
||||
<p>
|
||||
|
||||
Receive occasional newsletters about the project as it develops. You can
|
||||
read previous newsletters in our <a
|
||||
href="https://tinyletter.com/colouringlondon/archive"
|
||||
target="_blank">newsletter archive</a>.
|
||||
|
||||
</p>
|
||||
<label for="tlemail">Enter your email address:</label>
|
||||
<input class="form-control" type="email" name="email" id="tlemail" placeholder="name@example.com" />
|
||||
<input type="hidden" value="1" name="embed"/>
|
||||
<small class="form-text text-muted">
|
||||
<a href="https://tinyletter.com" target="_blank">powered by TinyLetter</a>.
|
||||
We'll never share your email address.
|
||||
</small>
|
||||
<input class="btn btn-full" type="submit" value="Sign up for updates" />
|
||||
</form>
|
||||
|
||||
<a class="btn btn-half" href="files/colouring-london-online-exhibition.pdf" target="_blank">View online exhibition</a><!--
|
||||
--><a class="btn btn-half" href="faq.html">FAQ</a>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet.js"
|
||||
integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw=="
|
||||
crossorigin=""></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.4.4/proj4.js" integrity="sha256-ROS+XfN+WVpU3giGt7Fwy92u3h4at1gN7Z5xQ2Ke1lw=" crossorigin="anonymous"></script>
|
||||
<script src="main.js"></script>
|
||||
</body>
|
||||
</html>
|
6
frontend/bootstrap.min.css
vendored
Executable file
87
frontend/building-edit.html
Executable file
@ -0,0 +1,87 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Colouring London</title>
|
||||
<link rel="stylesheet" href="bootstrap.min.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css"
|
||||
integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ=="
|
||||
crossorigin=""/>
|
||||
<link rel="stylesheet" href="main.css">
|
||||
</head>
|
||||
<body>
|
||||
<p class="beta-banner" role="alert" >
|
||||
|
||||
Hello! Welcome to the prototype (beta) site for Colouring London. <a
|
||||
href="http://colouringlondon.org">Find out more about the project.</a>
|
||||
|
||||
</p>
|
||||
<header class="main-header">
|
||||
<nav class="navbar navbar-light navbar-expand">
|
||||
<a href="index.html" class="logo navbar-brand" id="top">
|
||||
<div class="grid">
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
</div>
|
||||
<h1 class="logotype">
|
||||
<span>Colouring</span>
|
||||
<span>London</span>
|
||||
</h1>
|
||||
</a>
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item active"><a href="maps.html" class="nav-link">View Maps</a></li>
|
||||
<li class="nav-item"><a href="about.html" class="nav-link">About</a></li>
|
||||
<li class="nav-item"><a href="404.html" class="nav-link">Log in</a></li>
|
||||
<li class="nav-item"><a href="404.html" class="nav-link">Sign up</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="beta">
|
||||
<div id="map"></div>
|
||||
<div id="legend">
|
||||
<h2 class="h2">Edit Building</h2>
|
||||
<form action="building-view.html" method="GET">
|
||||
<h3 class="h3">Age</h3>
|
||||
<label for="">Year built</label>
|
||||
<input type="text" value="2018">
|
||||
<label for="">Source</label>
|
||||
<input type="text">
|
||||
<label for="">Facade date</label>
|
||||
<input type="text" value="2018">
|
||||
|
||||
<h3 class="h3">Size</h3>
|
||||
<label for="">Number of storeys</label>
|
||||
<input type="text" value="3">
|
||||
|
||||
<h3 class="h3">Like Me!</h3>
|
||||
<label for="">Like this building?</label>
|
||||
<input type="checkbox" checked>
|
||||
|
||||
<input type="submit" value="Save" class="btn">
|
||||
</form>
|
||||
</div>
|
||||
<script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet.js"
|
||||
integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw=="
|
||||
crossorigin=""></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.4.4/proj4.js" integrity="sha256-ROS+XfN+WVpU3giGt7Fwy92u3h4at1gN7Z5xQ2Ke1lw=" crossorigin="anonymous"></script>
|
||||
<script src="main.js"></script>
|
||||
</body>
|
||||
</html>
|
82
frontend/building-view.html
Executable file
@ -0,0 +1,82 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Colouring London</title>
|
||||
<link rel="stylesheet" href="bootstrap.min.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css"
|
||||
integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ=="
|
||||
crossorigin=""/>
|
||||
<link rel="stylesheet" href="main.css">
|
||||
</head>
|
||||
<body>
|
||||
<p class="beta-banner" role="alert" >
|
||||
|
||||
Hello! Welcome to the prototype (beta) site for Colouring London. <a
|
||||
href="http://colouringlondon.org">Find out more about the project.</a>
|
||||
|
||||
</p>
|
||||
<header class="main-header">
|
||||
<nav class="navbar navbar-light navbar-expand">
|
||||
<a href="index.html" class="logo navbar-brand" id="top">
|
||||
<div class="grid">
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
</div>
|
||||
<h1 class="logotype">
|
||||
<span>Colouring</span>
|
||||
<span>London</span>
|
||||
</h1>
|
||||
</a>
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item active"><a href="maps.html" class="nav-link">View Maps</a></li>
|
||||
<li class="nav-item"><a href="about.html" class="nav-link">About</a></li>
|
||||
<li class="nav-item"><a href="404.html" class="nav-link">Log in</a></li>
|
||||
<li class="nav-item"><a href="404.html" class="nav-link">Sign up</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="beta">
|
||||
<div id="map"></div>
|
||||
<div id="legend">
|
||||
<h2 class="h2">View Building</h2>
|
||||
|
||||
<h3 class="h3">Age</h3>
|
||||
<p>Year built: 2018</p>
|
||||
<p>Source:</p>
|
||||
<p>Facade date: 2018</p>
|
||||
|
||||
<h3 class="h3">Size</h3>
|
||||
<p>Number of storeys: 3</p>
|
||||
|
||||
<h3 class="h3">Like Me!</h3>
|
||||
<p>Likes: 25</p>
|
||||
|
||||
<a href="building-edit.html" class="btn">Edit</a>
|
||||
<a href="maps.html">< Back to maps</a>
|
||||
</div>
|
||||
<script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet.js"
|
||||
integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw=="
|
||||
crossorigin=""></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.4.4/proj4.js" integrity="sha256-ROS+XfN+WVpU3giGt7Fwy92u3h4at1gN7Z5xQ2Ke1lw=" crossorigin="anonymous"></script>
|
||||
<script src="main.js"></script>
|
||||
</body>
|
||||
</html>
|
BIN
frontend/files/colouring-london-online-exhibition.pdf
Normal file
BIN
frontend/fonts/gidole-regular-webfont.woff
Executable file
BIN
frontend/fonts/gidole-regular-webfont.woff2
Executable file
BIN
frontend/fonts/glacialindifference-regular-webfont.ttf
Executable file
BIN
frontend/fonts/glacialindifference-regular-webfont.woff
Executable file
BIN
frontend/fonts/glacialindifference-regular-webfont.woff2
Executable file
BIN
frontend/images/arrow-back.png
Executable file
After Width: | Height: | Size: 1.3 KiB |
BIN
frontend/images/arrow-next.png
Executable file
After Width: | Height: | Size: 1.3 KiB |
BIN
frontend/images/data-categories.png
Executable file
After Width: | Height: | Size: 69 KiB |
BIN
frontend/images/edit.png
Executable file
After Width: | Height: | Size: 254 KiB |
BIN
frontend/images/housing-outline.jpg
Executable file
After Width: | Height: | Size: 143 KiB |
BIN
frontend/images/logo-casa.png
Executable file
After Width: | Height: | Size: 19 KiB |
BIN
frontend/images/logo-gla.png
Executable file
After Width: | Height: | Size: 8.7 KiB |
BIN
frontend/images/logo-he.png
Executable file
After Width: | Height: | Size: 6.2 KiB |
BIN
frontend/images/logo-os.png
Executable file
After Width: | Height: | Size: 25 KiB |
BIN
frontend/images/logo-ucl.png
Executable file
After Width: | Height: | Size: 1.6 KiB |
BIN
frontend/images/london-evolution-3d-square.jpg
Executable file
After Width: | Height: | Size: 67 KiB |
BIN
frontend/images/london-evolution-3d.jpg
Executable file
After Width: | Height: | Size: 67 KiB |
BIN
frontend/images/showcase.png
Executable file
After Width: | Height: | Size: 544 KiB |
BIN
frontend/images/slide-1-welcome.png
Executable file
After Width: | Height: | Size: 136 KiB |
BIN
frontend/images/slide-2-categories.png
Executable file
After Width: | Height: | Size: 31 KiB |
BIN
frontend/images/slide-3-edit.png
Executable file
After Width: | Height: | Size: 123 KiB |
BIN
frontend/images/slide-4-view.png
Executable file
After Width: | Height: | Size: 188 KiB |
BIN
frontend/images/slide-5-download.png
Executable file
After Width: | Height: | Size: 41 KiB |
BIN
frontend/images/slide-6-showcase.png
Executable file
After Width: | Height: | Size: 126 KiB |
BIN
frontend/images/slide-7-partners.png
Executable file
After Width: | Height: | Size: 41 KiB |
BIN
frontend/images/view.png
Executable file
After Width: | Height: | Size: 680 KiB |
70
frontend/index.html
Executable file
@ -0,0 +1,70 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Colouring London</title>
|
||||
<link rel="stylesheet" href="bootstrap.min.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css"
|
||||
integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ=="
|
||||
crossorigin=""/>
|
||||
<link rel="stylesheet" href="main.css">
|
||||
</head>
|
||||
<body>
|
||||
<p class="beta-banner" role="alert" >
|
||||
|
||||
Hello! Welcome to the prototype (beta) site for Colouring London. <a
|
||||
href="http://colouringlondon.org">Find out more about the project.</a>
|
||||
|
||||
</p>
|
||||
<header class="main-header">
|
||||
<nav class="navbar navbar-light navbar-expand">
|
||||
<a href="index.html" class="logo navbar-brand" id="top">
|
||||
<div class="grid">
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
</div>
|
||||
<h1 class="logotype">
|
||||
<span>Colouring</span>
|
||||
<span>London</span>
|
||||
</h1>
|
||||
</a>
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item"><a href="maps.html" class="nav-link">View Maps</a></li>
|
||||
<li class="nav-item"><a href="about.html" class="nav-link">About</a></li>
|
||||
<li class="nav-item"><a href="404.html" class="nav-link">Log in</a></li>
|
||||
<li class="nav-item"><a href="404.html" class="nav-link">Sign up</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="beta">
|
||||
<div id="map"></div>
|
||||
<div class="jumbotron welcome-float">
|
||||
<h1>Welcome to Colouring London</h1>
|
||||
<p class="lead">Colour in, view and download data on London's buildings</p>
|
||||
<a href="maps.html" class="btn btn-lg">Get Started</a>
|
||||
</div>
|
||||
<script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet.js"
|
||||
integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw=="
|
||||
crossorigin=""></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.4.4/proj4.js" integrity="sha256-ROS+XfN+WVpU3giGt7Fwy92u3h4at1gN7Z5xQ2Ke1lw=" crossorigin="anonymous"></script>
|
||||
<script src="main.js"></script>
|
||||
</body>
|
||||
</html>
|
614
frontend/main.css
Executable file
@ -0,0 +1,614 @@
|
||||
/**
|
||||
* Typography
|
||||
*/
|
||||
@font-face {
|
||||
font-family: 'glacial_cl';
|
||||
src: url('fonts/glacialindifference-regular-webfont.woff2') format('woff2'),
|
||||
url('fonts/glacialindifference-regular-webfont.woff') format('woff');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
html,
|
||||
body {
|
||||
font-family: 'glacial_cl', sans-serif;
|
||||
background: #fff;
|
||||
color: #222;
|
||||
}
|
||||
.h2 {
|
||||
font-family: 'glacial_cl', sans-serif;
|
||||
font-weight: normal;
|
||||
padding: 0.1em 0 0.2em;
|
||||
margin: 0;
|
||||
}
|
||||
.h3, .h4, .h5 {
|
||||
font-family: 'glacial_cl', sans-serif;
|
||||
font-weight: normal;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
p {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
/**
|
||||
* Main Layout
|
||||
*/
|
||||
main.beta {
|
||||
position: absolute;
|
||||
top: 122px;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
#map {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
#legend {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 20em;
|
||||
bottom: 0;
|
||||
padding: 1em;
|
||||
background: #fff;
|
||||
z-index: 1000;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.welcome-float {
|
||||
z-index: 10000;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
margin-left: -20em;
|
||||
width: 40em;
|
||||
top: 1em;
|
||||
background-color: rgba(255,255,255,0.8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Legend
|
||||
*/
|
||||
.maps-list {
|
||||
list-style: none;
|
||||
padding-left: 17px;
|
||||
}
|
||||
.maps-list li {
|
||||
position: relative;
|
||||
}
|
||||
.maps-list li:before {
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: -15px;
|
||||
top: 7px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background-color: #000;
|
||||
content: ' ';
|
||||
}
|
||||
.maps-list li:nth-child(1)::before {
|
||||
background-color: #ffad00;
|
||||
}
|
||||
.maps-list li:nth-child(2)::before {
|
||||
background-color: #72b2fe;
|
||||
}
|
||||
.maps-list li:nth-child(3)::before {
|
||||
background-color: #e96762;
|
||||
}
|
||||
|
||||
/**
|
||||
* Text pages
|
||||
*/
|
||||
section {
|
||||
overflow: hidden;
|
||||
margin: 2.25em 0 4em;
|
||||
padding: 2em 0 4em;
|
||||
}
|
||||
.main-col {
|
||||
max-width: 40em;
|
||||
margin: 0 auto;
|
||||
padding: 0 1em;
|
||||
}
|
||||
hr {
|
||||
display: block;
|
||||
height: 1px;
|
||||
border: 0;
|
||||
background: #000;
|
||||
width: 100%;
|
||||
margin: 2em 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Banner
|
||||
*/
|
||||
.beta-banner {
|
||||
width: 100%;
|
||||
padding: 0.25em 1em;
|
||||
background: #c57d00;
|
||||
color: #fff;
|
||||
margin: 0;
|
||||
}
|
||||
.beta-banner a:hover,
|
||||
.beta-banner a:focus,
|
||||
.beta-banner a {
|
||||
color: #fff;
|
||||
border-bottom-color: #fff;
|
||||
}
|
||||
.beta-banner a:hover,
|
||||
.beta-banner a:focus {
|
||||
border-bottom-width: 2px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Main header
|
||||
*/
|
||||
.main-header {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
border-bottom: 3px solid #222;
|
||||
}
|
||||
.main-header .navbar {
|
||||
padding: 0.75em 0.75em;
|
||||
}
|
||||
.main-header .navbar-brand {
|
||||
margin: 0 1em 0 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Logo
|
||||
*/
|
||||
.logo {
|
||||
display: block;
|
||||
font-size: 2em;
|
||||
width: 6em;
|
||||
padding: 0;
|
||||
text-transform: uppercase;
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
}
|
||||
.logo .logotype {
|
||||
font-size: 1em;
|
||||
margin: 0 0 -3px 0;;
|
||||
display: inline-block;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
.logo .logotype span {
|
||||
display: block;
|
||||
font-size: 0.75em;
|
||||
letter-spacing: 0.15em;
|
||||
}
|
||||
.logo .logotype span:first-child {
|
||||
font-size: 0.625em;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
.logo .grid {
|
||||
position: relative;
|
||||
top: -1px;
|
||||
display: inline-block;
|
||||
vertical-align: bottom;
|
||||
font-size: 0;
|
||||
}
|
||||
.logo .row {
|
||||
display: block;
|
||||
margin: 0 0 5px 0;
|
||||
}
|
||||
.logo .row:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.logo .cell {
|
||||
display: inline-block;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
margin: 0 3px 0 0;
|
||||
}
|
||||
.logo .row:nth-child(1) .cell:nth-child(1) {
|
||||
animation: pulse 47s infinite;
|
||||
animation-delay: -1.5s;
|
||||
}
|
||||
.logo .row:nth-child(1) .cell:nth-child(2) {
|
||||
animation: pulse 32s infinite;
|
||||
animation-delay: -0.5s;
|
||||
}
|
||||
.logo .row:nth-child(1) .cell:nth-child(3) {
|
||||
animation: pulse 49s infinite;
|
||||
animation-delay: -6s;
|
||||
}
|
||||
.logo .row:nth-child(1) .cell:nth-child(4) {
|
||||
animation: pulse 35s infinite;
|
||||
animation-delay: -10s;
|
||||
}
|
||||
.logo .row:nth-child(2) .cell:nth-child(1) {
|
||||
animation: pulse 34s infinite;
|
||||
animation-delay: -7.2s;
|
||||
}
|
||||
.logo .row:nth-child(2) .cell:nth-child(2) {
|
||||
animation: pulse 58s infinite;
|
||||
animation-delay: -15s;
|
||||
}
|
||||
.logo .row:nth-child(2) .cell:nth-child(3) {
|
||||
animation: pulse 31s infinite;
|
||||
animation-delay: -5s;
|
||||
}
|
||||
.logo .row:nth-child(2) .cell:nth-child(4) {
|
||||
animation: pulse 46s infinite;
|
||||
animation-delay: -4.5s;
|
||||
}
|
||||
.logo .row:nth-child(3) .cell:nth-child(1) {
|
||||
animation: pulse 32s infinite;
|
||||
animation-delay: -3.5s;
|
||||
}
|
||||
.logo .row:nth-child(3) .cell:nth-child(2) {
|
||||
animation: pulse 49s infinite;
|
||||
animation-delay: -8.5s;
|
||||
}
|
||||
.logo .row:nth-child(3) .cell:nth-child(3) {
|
||||
animation: pulse 35s infinite;
|
||||
animation-delay: -4s;
|
||||
}
|
||||
.logo .row:nth-child(3) .cell:nth-child(4) {
|
||||
animation: pulse 34s infinite;
|
||||
animation-delay: -17s;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%, 100% {
|
||||
background-color: #ffad00;
|
||||
}
|
||||
8% {
|
||||
background-color: #ffad00;
|
||||
}
|
||||
10% {
|
||||
background-color: #72b2fe;
|
||||
}
|
||||
16% {
|
||||
background-color: #72b2fe;
|
||||
}
|
||||
18% {
|
||||
background-color: #5ec233;
|
||||
}
|
||||
24% {
|
||||
background-color: #5ec233;
|
||||
}
|
||||
26% {
|
||||
background-color: #e96762;
|
||||
}
|
||||
32% {
|
||||
background-color: #e96762;
|
||||
}
|
||||
34% {
|
||||
background-color: #e099c1;
|
||||
}
|
||||
40% {
|
||||
background-color: #e099c1;
|
||||
}
|
||||
42% {
|
||||
background-color: #7d6f94;
|
||||
}
|
||||
48% {
|
||||
background-color: #7d6f94;
|
||||
}
|
||||
50% {
|
||||
background-color: #eb7905;
|
||||
}
|
||||
56% {
|
||||
background-color: #eb7905;
|
||||
}
|
||||
58% {
|
||||
background-color: #72b889;
|
||||
}
|
||||
64% {
|
||||
background-color: #72b889;
|
||||
}
|
||||
66% {
|
||||
background-color: #f0d106;
|
||||
}
|
||||
72% {
|
||||
background-color: #f0d106;
|
||||
}
|
||||
74% {
|
||||
background-color: #a6a6a7;
|
||||
}
|
||||
80% {
|
||||
background-color: #a6a6a7;
|
||||
}
|
||||
82% {
|
||||
background-color: #918e6e;
|
||||
}
|
||||
88% {
|
||||
background-color: #918e6e;
|
||||
}
|
||||
90% {
|
||||
background-color: #ffad00;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Text content
|
||||
*/
|
||||
figure img {
|
||||
max-width: 100%;
|
||||
}
|
||||
figure a:hover img,
|
||||
figure a:focus img,
|
||||
figure a:active img {
|
||||
opacity: 0.8;
|
||||
}
|
||||
.icon-pad {
|
||||
padding: 0 4em 1em;
|
||||
text-align: center;
|
||||
}
|
||||
.icon-pad svg {
|
||||
max-width: 10em;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
p a,
|
||||
small a {
|
||||
color: #52a5f8;
|
||||
border-bottom: 1px solid #52a5f8;
|
||||
}
|
||||
p a:hover,
|
||||
small a:hover,
|
||||
p a:focus,
|
||||
small a:focus,
|
||||
p a:active,
|
||||
small a:active {
|
||||
color: #006fdf;
|
||||
border-bottom-color: #006fdf;
|
||||
text-decoration: none;
|
||||
}
|
||||
p a.btn:hover,
|
||||
p a.btn:focus,
|
||||
p a.btn:active {
|
||||
color: #fff;
|
||||
}
|
||||
.text-muted {
|
||||
color: #878d96 !important;
|
||||
}
|
||||
|
||||
|
||||
input {
|
||||
font-family: 'glacial_cl', sans-serif;
|
||||
}
|
||||
h1, h2, h3, h4 {
|
||||
font-weight: normal;
|
||||
}
|
||||
.h1 {
|
||||
font-size: 2em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.h2 {
|
||||
font-size: 1.5em;
|
||||
margin: 0.25em 0 0.5em;
|
||||
}
|
||||
p, li, dd {
|
||||
line-height: 1.3;
|
||||
}
|
||||
dd {
|
||||
margin: 0 0 1.5em;
|
||||
}
|
||||
small {
|
||||
font-size: 0.75em;
|
||||
}
|
||||
.text-muted {
|
||||
color: #878d96 !important;
|
||||
}
|
||||
.border-image {
|
||||
border: 1px solid #000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Form
|
||||
*/
|
||||
input[type="text"],
|
||||
input[type="email"] {
|
||||
display: block;
|
||||
width: 100%;
|
||||
border: 1px solid #222;
|
||||
padding: 0.5em 0.25em;
|
||||
margin: 0 0 0.5em;
|
||||
}
|
||||
label {
|
||||
margin: 0.5em 0 0;
|
||||
}
|
||||
form .btn {
|
||||
margin-top: 1em;
|
||||
}
|
||||
.btn {
|
||||
background: #cecfd3;
|
||||
border: 0;
|
||||
border-radius: 1em;
|
||||
margin: 0.5em 0;
|
||||
padding: 0.5em 1em;
|
||||
width: 100%;
|
||||
font-size: 1em;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn:hover,
|
||||
.btn:focus,
|
||||
.btn:active {
|
||||
background-color: #bcbec0;
|
||||
}
|
||||
.btn.btn-half {
|
||||
width: 49%;
|
||||
margin-left: 0;
|
||||
margin-right: 2%;
|
||||
min-width: 11.45em;
|
||||
}
|
||||
.btn.btn-half:nth-child(2n+1) {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Colours
|
||||
*/
|
||||
.white {
|
||||
background-color: #fff;
|
||||
}
|
||||
.bold-yellow {
|
||||
background-color: #ffad00;
|
||||
}
|
||||
.bright-yellow {
|
||||
background-color: #f0d106;
|
||||
}
|
||||
.pale-yellow {
|
||||
background-color: #fff021;
|
||||
}
|
||||
.bold-orange {
|
||||
background-color: #eb7905;
|
||||
}
|
||||
.pale-orange {
|
||||
background-color: #ffc04e;
|
||||
}
|
||||
.red {
|
||||
background-color: #e96762;
|
||||
}
|
||||
.pastel-pink {
|
||||
background-color: #e099c1;
|
||||
}
|
||||
.pale-pink {
|
||||
background-color: #ffcde5;
|
||||
}
|
||||
.pastel-purple {
|
||||
background-color: #7d6f94;
|
||||
}
|
||||
.blue-grey {
|
||||
background-color: #6f879c;
|
||||
}
|
||||
.bright-green {
|
||||
background-color: #5ec233;
|
||||
}
|
||||
.pastel-green {
|
||||
background-color: #72b889;
|
||||
}
|
||||
.pale-green {
|
||||
background-color: #73ebaf;
|
||||
}
|
||||
.bright-blue {
|
||||
background-color: #72b2fe;
|
||||
}
|
||||
.pale-grey {
|
||||
background-color: #a6a6a7;
|
||||
}
|
||||
.pale-brown {
|
||||
background-color: #918e6e;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Content
|
||||
*/
|
||||
img {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
}
|
||||
.offscreen-text {
|
||||
overflow: hidden;
|
||||
text-indent: -999px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Carousel
|
||||
*/
|
||||
.carousel {
|
||||
position: relative;
|
||||
}
|
||||
.carousel-control {
|
||||
display: none;
|
||||
}
|
||||
.carousel.active .carousel-control {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 1.75em;
|
||||
border: 0;
|
||||
background-color: #fff;
|
||||
background-position: center center;
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
cursor: pointer;
|
||||
}
|
||||
.carousel.active .carousel-control:hover,
|
||||
.carousel.active .carousel-control:active,
|
||||
.carousel.active .carousel-control:focus {
|
||||
border: 0;
|
||||
outline: none;
|
||||
opacity: 0.6;
|
||||
}
|
||||
.carousel button::-moz-focus-inner {
|
||||
border:0;
|
||||
}
|
||||
.carousel-control.next {
|
||||
right: -1em;
|
||||
background-image: url('images/arrow-next.png');
|
||||
}
|
||||
.carousel-control.back {
|
||||
left: -1em;
|
||||
background-image: url('images/arrow-back.png');
|
||||
}
|
||||
.carousel-content {
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.carousel-content li {
|
||||
text-align: center;
|
||||
}
|
||||
.carousel.active .carousel-content li {
|
||||
display: none;
|
||||
}
|
||||
.carousel.active .carousel-content li.current {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* Logos
|
||||
*/
|
||||
.logo-list {
|
||||
text-align: center;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.logo-list li {
|
||||
display: inline-block;
|
||||
width: 8em;
|
||||
padding: 0 0.25em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.logo-list li:first-child {
|
||||
width: 4em;
|
||||
}
|
||||
|
||||
/**
|
||||
* Data categories
|
||||
*/
|
||||
.data-category-list {
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
list-style: none;
|
||||
margin: 0 -0.75em;
|
||||
}
|
||||
.data-category-list li {
|
||||
display: inline-block;
|
||||
vertical-align: bottom;
|
||||
width: 9em;
|
||||
height: 9em;
|
||||
margin: 0.375em;
|
||||
padding: 0.1em;
|
||||
}
|
||||
.data-category-list .category {
|
||||
text-align: center;
|
||||
font-size: 1.5em;
|
||||
margin: 1.4em 0 0.5em;
|
||||
}
|
||||
.data-category-list .description {
|
||||
text-align: center;
|
||||
font-size: 1em;
|
||||
margin: 0;
|
||||
}
|
94
frontend/main.js
Executable file
@ -0,0 +1,94 @@
|
||||
/**
|
||||
* Background map
|
||||
*/
|
||||
function map(){
|
||||
var OS_API_KEY = 'NVUxtY5r8eA6eIfwrPTAGKrAAsoeI9E9';
|
||||
|
||||
var light = L.tileLayer('https://api2.ordnancesurvey.co.uk/mapping_api/v1/service/zxy/{tilematrixSet}/{layer}/{z}/{x}/{y}.png?key={key}', {
|
||||
key: OS_API_KEY,
|
||||
tilematrixSet: 'EPSG:3857',
|
||||
layer: 'Light 3857'
|
||||
});
|
||||
|
||||
var night = L.tileLayer('https://api2.ordnancesurvey.co.uk/mapping_api/v1/service/zxy/{tilematrixSet}/{layer}/{z}/{x}/{y}.png?key={key}', {
|
||||
key: OS_API_KEY,
|
||||
tilematrixSet: 'EPSG:3857',
|
||||
layer: 'Night 3857'
|
||||
});
|
||||
|
||||
var baseMaps = {
|
||||
"Light": light,
|
||||
"Dark": night
|
||||
};
|
||||
|
||||
var map = L.map('map', {
|
||||
layers: light,
|
||||
zoomControl: false,
|
||||
attributionControl: false,
|
||||
maxZoom: 18,
|
||||
minZoom: 7,
|
||||
center: ([51.507222, -0.1275]),
|
||||
zoom: 14,
|
||||
doubleClickZoom: false,
|
||||
});
|
||||
|
||||
var attr = L.control.attribution({prefix: ""});
|
||||
attr.addAttribution("Contains OS data © Crown copyright: OS Maps baselayers and building outlines. Building attribute data is © Colouring London contributors");
|
||||
attr.addTo(map);
|
||||
L.control.zoom({position: 'topright'}).addTo(map);
|
||||
L.control.layers(baseMaps, {}, {position: 'topright'}).addTo(map);
|
||||
}
|
||||
|
||||
/**
|
||||
* Simple carousel
|
||||
*
|
||||
* Based on example code by Christian Heilmann
|
||||
* http://christianheilmann.com/2015/04/08/keeping-it-simple-coding-a-carousel/
|
||||
*/
|
||||
carousel = function(){
|
||||
var box = document.querySelector('.carousel');
|
||||
if (!box) {
|
||||
return
|
||||
}
|
||||
var next = box.querySelector('.next');
|
||||
var prev = box.querySelector('.back');
|
||||
// Define the global counter, the items and the
|
||||
// current item
|
||||
var counter = 0;
|
||||
var items = box.querySelectorAll('.carousel-content li');
|
||||
var amount = items.length;
|
||||
var current = items[0];
|
||||
box.classList.add('active');
|
||||
// navigate through the carousel
|
||||
function navigate(direction) {
|
||||
// hide the old current list item
|
||||
current.classList.remove('current');
|
||||
|
||||
// calculate the new position
|
||||
counter = (counter + direction) % amount;
|
||||
counter = counter < 0 ? amount - 1 : counter;
|
||||
// set new current element
|
||||
// and add CSS class
|
||||
current = items[counter];
|
||||
current.classList.add('current');
|
||||
}
|
||||
// add event handlers to buttons
|
||||
next.addEventListener('click', function(ev) {
|
||||
navigate(1);
|
||||
});
|
||||
prev.addEventListener('click', function(ev) {
|
||||
navigate(-1);
|
||||
});
|
||||
// show the first element
|
||||
// (when direction is 0 counter doesn't change)
|
||||
navigate(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* "Cut the mustard" and setup page
|
||||
*/
|
||||
if('querySelector' in document
|
||||
&& 'addEventListener' in window) {
|
||||
carousel();
|
||||
map();
|
||||
}
|
74
frontend/maps.html
Executable file
@ -0,0 +1,74 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Colouring London</title>
|
||||
<link rel="stylesheet" href="bootstrap.min.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css"
|
||||
integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ=="
|
||||
crossorigin=""/>
|
||||
<link rel="stylesheet" href="main.css">
|
||||
</head>
|
||||
<body>
|
||||
<p class="beta-banner" role="alert" >
|
||||
|
||||
Hello! Welcome to the prototype (beta) site for Colouring London. <a
|
||||
href="http://colouringlondon.org">Find out more about the project.</a>
|
||||
|
||||
</p>
|
||||
<header class="main-header">
|
||||
<nav class="navbar navbar-light navbar-expand">
|
||||
<a href="index.html" class="logo navbar-brand" id="top">
|
||||
<div class="grid">
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
<div class="cell"></div>
|
||||
</div>
|
||||
</div>
|
||||
<h1 class="logotype">
|
||||
<span>Colouring</span>
|
||||
<span>London</span>
|
||||
</h1>
|
||||
</a>
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item active"><a href="maps.html" class="nav-link">View Maps</a></li>
|
||||
<li class="nav-item"><a href="about.html" class="nav-link">About</a></li>
|
||||
<li class="nav-item"><a href="404.html" class="nav-link">Log in</a></li>
|
||||
<li class="nav-item"><a href="404.html" class="nav-link">Sign up</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="beta">
|
||||
<div id="map"></div>
|
||||
<div id="legend">
|
||||
<h2>View Maps</h2>
|
||||
<ul class="maps-list">
|
||||
<li>Year Built</li>
|
||||
<li>Size</li>
|
||||
<li>Like Me!</li>
|
||||
</ul>
|
||||
<a href="building-view.html">(Mock) View building detail</a>
|
||||
</div>
|
||||
<script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet.js"
|
||||
integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw=="
|
||||
crossorigin=""></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.4.4/proj4.js" integrity="sha256-ROS+XfN+WVpU3giGt7Fwy92u3h4at1gN7Z5xQ2Ke1lw=" crossorigin="anonymous"></script>
|
||||
<script src="main.js"></script>
|
||||
</body>
|
||||
</html>
|