# Copyright (c) 2013, 2014 Michele Bini # This program is free software: you can redistribute it and/or modify # it under the terms of the version 3 of the GNU General Public License # as published by the Free Software Foundation. # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . { htmlcup } = require 'htmlcup' title = "Vaquitas need you!" fs = require 'fs' datauri = (t, x)-> "data:#{t};base64,#{new Buffer(fs.readFileSync(x)).toString("base64")}" datauripng = (x)-> datauri "image/png", x datauriicon = (x)-> datauri "image/x-icon", x icon = datauriicon "vaquita.ico" pixyvaquita = datauripng "pixyvaquita_v2.png" pixyvaquita2 = datauripng "pixyvaquita_v105_v.png" htmlcup.html5Page -> @head -> @meta charset:"utf-8" @link rel:"shortcut icon", href:icon @title title @style type: "text/css", """ body { /* background:pink; */ /* background: #69B2FF; */ /* background: #21AFF8; */ /* background: #0286E8; */ background: #1096EE; text-align: center; font-size: 22px; font-family: 'Helvetica', 'Times', serif; text-shadow: 0 1px 1px blue; } .banner { border: 5px solid white; border: 5px solid white rgba(255,255,255,0.9); box-shadow: 0 2px 4px blue; margin: 1em; } p { color:white; color:rgba(255,255,255,0.9); margin-top:0.418em; margin-bottom:0.418em; margin-left:auto; margin-right:auto; width:22em; max-width:100%; } a { /* color:rgb(200,255,255); color:rgba(200,255,255,0.9); */ color:white; color:rgba(255,255,255,0.9); text-decoration:none; display: inline-block; border: 1px solid white; padding: 0 0.2em; border-radius: 0.2em; -moz-border-radius: 0.2em; -webkit-border-radius: 0.2em; -ie-border-radius: 0.2em; } a:hover { background-color:rgba(20,70,180,1.0); } .petition { margin:0.418em; padding:0.618em; } .petition a { font-size:127.2%; box-shadow: 0 2px 4px blue; margin:0.3em; } .page { width: 100%; height: 100%; margin: 0; border: 0; } .centering { display: table; padding: 0; } .centered { display: table-cell; vertical-align: middle; text-align: center; } .inline-block { display: inline-block; } .dynamic-section { display: inline-block; vertical-align:middle; max-width:100%; } .dynamic-section.dynsec-vertical { display: block; } .flip-lr { -moz-transform: scaleX(-1); -o-transform: scaleX(-1); -webkit-transform: scaleX(-1); transform: scaleX(-1); filter: FlipH; -ms-filter: "FlipH"; } .pixelart { image-rendering:optimizeSpeed; /* Legal fallback */ image-rendering:-moz-crisp-edges; /* Firefox */ image-rendering:-o-crisp-edges; /* Opera */ image-rendering:-webkit-optimize-contrast; /* Safari */ image-rendering:optimize-contrast; /* CSS3 Proposed */ image-rendering:crisp-edges; /* CSS4 Proposed */ image-rendering:pixelated; /* CSS4 Proposed */ -ms-interpolation-mode:nearest-neighbor; /* IE8+ */ } """ @body -> @div class:"centering page", -> @section class:"centered", -> @section class:"dynamic-section", -> @img class:"banner", src:"vaquita1.jpg", title:"This vaquita was set free by a mysterious artist who prefers to stay anonymous ☺" @section class:"dynamic-section", -> @p "Please don't kill this baby!" @p -> @a target:"_blank", href:"http://en.wikipedia.org/wiki/Vaquita", "Vaquitas" @span " are the smallest and rarest marine cetacean, they are mammalians like us." @p "Their population has decreased from an estimated 576 in 1997 to 97 individuals in 2014, which means that could be extinct as early as 2017" @p "A really protected marine sanctuary is Vaquitas' only chance of survival; each year literally tens of them die in fishing nets; according to recent research, this is because of the illegal fishing of Totoaba" @p "Vaquitas only live in a small area of the Gulf of California and share their habitat with the Totoaba" @p class:"petition", -> @span 'Petition you can sign: ' @a target:"_blank" # href: 'http://www.thepetitionsite.com/569/482/287/extend-protections-for-critically-endangered-vaquita-porpoises/', "Extend Protections for Critically Endangered Vaquita Porpoises" href:'http://act.oceanconservancy.org/site/MessageViewer?dlv_id=41469&em_id=30824.0&', "Ocean Conservancy .org: Save the vaquita from extinction!" @p -> @a href: 'http://www.youtube.com/watch?v=27pJ2S5RT8g', "Video of a baby Vaquita" @section class:"dynamic-section dynsec-vertical", -> @img src:pixyvaquita, title:"Please be our friend!", width:"150", height:"90", class:"flip-lr pixelart" @a href:"/The-Moon-is-sinking/game.html", "Vilma Vaquita - demo game" @img src:pixyvaquita2, title:"Play with us!", width:"150", height:"90", class:"pixelart"