Skip to content

Commit

Permalink
feat(citizenScience): background and styling for citizen science abou…
Browse files Browse the repository at this point in the history
…t page
  • Loading branch information
peichins committed Aug 9, 2018
1 parent bc8c1cb commit 79257c8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
15 changes: 15 additions & 0 deletions src/app/citizenScience/_citizenScience.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
.dark-background {
color: white;
background: rgba(0,0,0,0.9);

form {
color: #0a0a0a;
}


}

.about-content {
padding: 20px;
}


.citizen-science {

Expand Down
4 changes: 2 additions & 2 deletions src/app/citizenScience/bristlebird/about.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@


<div class="cs-main-container">
<div class="main wrapper clearfix">
<div class="main wrapper clearfix dark-background about-content">


<h2>Welcome to the Ipswich State School Ecoacoustics Citizen Science Project</h2>
<h2>Welcome to the Eastern Bristlebird Citizen Science Project</h2>

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sollicitudin blandit ante, blandit
cursus urna tempus nec. Suspendisse non mi ex. Phasellus rhoncus convallis auctor. Nam leo quam,
Expand Down
10 changes: 8 additions & 2 deletions src/app/citizenScience/bristlebird/bristlebird.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
class BristlebirdAboutController {
constructor($scope,
$location) {
$location,
backgroundImage,
paths) {

$scope.citizenScientistName = "";

$scope.getStarted = function () {
localStorage.setItem("citizenScientistName", $scope.citizenScientistName);
$location.path("/citsci/bristlebird/listen");
};

backgroundImage.currentBackground = paths.site.assets.backgrounds.citizenScience + "1.jpg";
}
}

Expand Down Expand Up @@ -125,7 +129,7 @@ class BristlebirdController {
function (item, oldVal) {
if (item) {
self.showAudio(item.audioRecordingId, item.startTimeSeconds, item.endTimeSeconds);
// for now, we cycle through backgrounds arbitrarily, based on the id of the sample number
// for now, we cycle through backgrounds arbitrarily, based on the id of the sample
// todo: store background images as part of the dataset or cs project
var backgroundPath = self.backgroundPaths[parseInt(item.id) % (self.backgroundPaths.length - 1)];
backgroundImage.currentBackground = backgroundPath;
Expand Down Expand Up @@ -191,5 +195,7 @@ angular
[
"$scope",
"$location",
"backgroundImage",
"conf.paths",
BristlebirdAboutController
]);

0 comments on commit 79257c8

Please sign in to comment.