Commit f5afcca3 authored by Dimitris Kardarakos's avatar Dimitris Kardarakos

Find your way in Plasma Mobile web pages

In terms "of KDE's Goals for 2018 and Beyond", Streamlined Onboarding of New Contributors goal has been set up. Regarding Plasma Mobile, we decided to help the growing of Plasma Mobile facilitating onboarding of new contributors. To serve this purpose, a new set of pages have been created. As soon as the potential contributors navigate to the initial page of this part of the site, a set of questions will guide them to a phabricator task. The web site shares code with https://github.com/jdm/asknot, licensed under Mozilla Public License. The http://handlebarsjs.com/ templates' mechanism has also been used, licensed under MIT.
parent 9a1f2f6c
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<title>Find your way in Plasma Mobile</title>
<link rel="stylesheet" type="text/css" href="media/css/style.css" title="Default" />
<link rel="alternate stylesheet" type="text/css" href="media/css/plain.css" title="Bird's Eye View" />
</head>
<body>
<header class="section masthead" id="masthead">
<div id="logo">
<span class="plamo-logo"><img src="media/img/plamo-logo.svg" /></span>
</div>
<div id="lang" hidden>
<span id="lang-selection">Language:</span>
<select>
<option value='en' selected>English</option>
<option value='es'>Español | Spanish</option>
</select>
</div>
</header>
<div id="wrapper">
<div id="responses">
<div id="ok"><a href="javascript:">Tell me more</a></div>
<div id="next">
<a href="javascript:">
<span class="negative">No, not interested</span>
<span class="negative">Show me something else</span>
<span class="negative">Any other task?</span>
<span class="negative">Not sure, something else please?</span>
<span class="negative">Not my line of expertise</span>
<span class="negative">Next please</span>
</a>
</div>
<div id="back"><a href="javascript:">I was wrong, take me back</a></div>
<noscript>
<span>Please enable JavaScript in your browser!</span>
</noscript>
</div>
<div id="footer">Based on <a href="https://github.com/jdm/asknot">asknot</a></div>
</div>
<script src="media/js/jquery-1.11.2.min.js"></script>
<script src="media/js/foopy.js"></script>
<script src="media/js/l10n.js"></script>
<script src="media/js/displayRender.js"></script>
<script src="media/js/handlebars-v4.0.11.js"></script>
<script>
$(document).ready(function() {
DisplayRender.addHelpers();
DisplayRender.renderTemplate();
$('#responses div').show();
});
</script>
<script id="group-template" type="text/x-handlebars-template">
{{#each groups}}
<div class="group" {{group_info}}
<ul class="choices">
{{#each choices}}
<li {{choice_info}}</li>
{{/each}}
</ul>
</div>
{{/each}}
</script>
</body>
</html>
.extra, #responses, #footer, select, #lang {
display: none !important;
}
.question {
display: block !important;
}
.question:before {
content: attr(data-l10n-id) ": ";
}
ul, li {
display: block !important;
sfont-size: 12pt !important;
}
li[target]:after {
content: " - " attr(target);
}
\ No newline at end of file
@charset "utf-8";
@font-face {
font-family: 'Montserrat';
font-weight: normal;
font-style: normal;
src: url("/media/fonts/montserrat-regular.ttf") format("truetype");
}
@font-face {
font-family: 'Open Sans';
font-weight: normal;
font-style: normal;
src: url("opensans-semibold.ttf") format("truetype");
}
@font-face {
font-family: 'Montserrat Light';
font-weight: normal;
font-style: normal;
src: url("/media/fonts/montserrat-light.ttf") format("truetype");
}
* {
margin: 0;
padding: 0;
}
html {
/* background: url("/media/img/bg.png") repeat scroll 0 0 #eee; */
font-family: "Montserrat", sans-serif;
}
header {
position: relative;
min-height: 40px;
padding: 10px 100px;
background: rgba(0,0,0,0.05);
color: #333;
text-transform: uppercase;
font-family: "Montserrat", sans-serif;
}
header .plamo-logo {
float: left;
width: 115px;
height: 30px;
}
header #lang-selection {
background: center left transparent no-repeat;
/*
* Icon attribution
* A’ Design Award & Competition, Onur Müştak Çobanlı and Farhat Datta
* http://www.languageicon.org
*/
background-image: url(" /media/img/language_icon.png");
padding-left: 28px;
padding-bottom: 2px;
}
header #lang {
font-weight: 300;
text-align: right;
}
#wrapper {
font-weight: 300;
text-shadow: 0 1px 0 #fff;
color: #333;
margin-top:0px;
text-align: center;
padding-top: 60px;
}
@media screen and (max-width: 360px) {
#wrapper {
padding-top: 100px;
}
}
select {
background: #fff;
border-color: #b2b2b2;
border-style: solid;
border-width: 1px;
}
.choices li {
display: none;
}
.question {
display: none;
}
.question {
text-align: center;
padding-top: 60px;
}
a {
color: #F17100;
text-shadow: 0 1px 0 rgba(255,255,255,0.9), 0px 1px 1px rgba(255,255,255,0.9);
}
.question {
font-size: 20pt;
padding: 0 10% 0 10%;
}
#responses {
padding-top: 1em;
font-size: 30pt;
background-image: -moz-radial-gradient(center top , ellipse farthest-side, rgba(140, 140, 140, 0.5), rgba(140, 140, 140, 0) 95%), -moz-radial-gradient(center top , ellipse farthest-side, rgba(220, 220, 220, 0.5), rgba(220, 220, 220, 0)), -moz-radial-gradient(center top , ellipse farthest-side, rgba(220, 220, 220, 0.3), rgba(220, 220, 220, 0));
background-image: -webkit-radial-gradient(center top , ellipse farthest-side, rgba(140, 140, 140, 0.5), rgba(140, 140, 140, 0) 95%), -webkit-radial-gradient(center top , ellipse farthest-side, rgba(220, 220, 220, 0.5), rgba(220, 220, 220, 0)), -webkit-radial-gradient(center top , ellipse farthest-side, rgba(220, 220, 220, 0.3), rgba(220, 220, 220, 0));
background-image: -o-radial-gradient(center top , ellipse farthest-side, rgba(140, 140, 140, 0.5), rgba(140, 140, 140, 0) 95%), -o-radial-gradient(center top , ellipse farthest-side, rgba(220, 220, 220, 0.5), rgba(220, 220, 220, 0)), -o-radial-gradient(center top , ellipse farthest-side, rgba(220, 220, 220, 0.3), rgba(220, 220, 220, 0));
background-image: radial-gradient(center top , ellipse farthest-side, rgba(140, 140, 140, 0.5), rgba(140, 140, 140, 0) 95%), radial-gradient(center top , ellipse farthest-side, rgba(220, 220, 220, 0.5), rgba(220, 220, 220, 0)), radial-gradient(center top , ellipse farthest-side, rgba(220, 220, 220, 0.3), rgba(220, 220, 220, 0));
background-size: 100% 5px, 100% 100px, 100% 100%;
background-repeat: no-repeat;
}
#responses div {
margin-bottom: 0.5em;
/**
* display:none needed in case if js is disabled
*/
display:none;
}
#responses div a:hover {
cursor: pointer;
box-shadow: 0 3px rgba(0, 0, 0, 0.1), 0 -4px rgba(0, 0, 0, 0.1) inset, 0px 3px 48px rgba(255,255,255,0.2) inset;
transition: all .12s ease-in-out;
}
#responses div a:active {
cursor: pointer;
box-shadow: 0 3px rgba(0, 0, 0, 0.1) inset, 0 1px rgb(255, 255, 255, 0.1), 0px 3px 48px rgba(0,0,0,0.2) inset;
transition: all .12s ease-in-out;
}
#responses div a {
text-decoration: none;
color: #fff;
text-shadow: 0 1px 0 rgba(0,0,0,0.5);
padding: 2px 10px 8px;
border-radius: 6px;
border: 0 none;
transition: all .12s ease-in-out;
display: inline-block;
max-width: 90%;
}
#ok a {
background-color: #84C83C;
background: -moz-linear-gradient(#84C83C, #66AA1E) repeat scroll 0 0 #84C83C;
background: -webkit-linear-gradient(#84C83C, #66AA1E) repeat scroll 0 0 #84C83C;
background: -o-linear-gradient(#84C83C, #66AA1E) repeat scroll 0 0 #84C83C;
background: linear-gradient(#84C83C, #66AA1E) repeat scroll 0 0 #84C83C;
box-shadow: 0 3px rgba(0, 0, 0, 0.1), 0 -4px rgba(0, 0, 0, 0.1) inset;
}
#next a {
background-color: #669BE1;
background: -moz-linear-gradient(#669BE1, #487DC3) repeat scroll 0 0 #669BE1;
background: -webkit-linear-gradient(#669BE1, #487DC3) repeat scroll 0 0 #669BE1;
background: -o-linear-gradient(#669BE1, #487DC3) repeat scroll 0 0 #669BE1;
background: linear-gradient(#669BE1, #487DC3) repeat scroll 0 0 #669BE1;
box-shadow: 0 3px rgba(0, 0, 0, 0.1), 0 -4px rgba(0, 0, 0, 0.1) inset;
}
#back a {
background-color: #F19932;
background: -moz-linear-gradient(#F19932, #D37B14) repeat scroll 0 0 #F19932;
background: -webkit-linear-gradient(#F19932, #D37B14) repeat scroll 0 0 #F19932;
background: -o-linear-gradient(#F19932, #D37B14) repeat scroll 0 0 #F19932;
background: linear-gradient(#F19932, #D37B14) repeat scroll 0 0 #F19932;
box-shadow: 0 3px rgba(0, 0, 0, 0.1), 0 -4px rgba(0, 0, 0, 0.1) inset;
}
.choices li {
font-size: 32pt;
font-weight: 600;
}
.extra {
color: #666;
font-size: 20pt;
font-weight: 600;
padding-bottom: 1em;
}
#footer {
margin-top: 2em;
color: #666;
}
#footer a {
color: #555;
}
.negative {
display: none;
}
.visible {
display: inline;
}
@media screen and (max-width: 499px) {
#responses{
font-size: 22pt;
}
.choices li {
font-size: 25pt;
}
}
/* RTL View */
html[dir="rtl"] * {
font-family: "Fira Sans", sans-serif;
}
html[dir="rtl"] #lang-selection {
background: center right transparent no-repeat;
padding-left: 0;
padding-right: 28px;
}
html[dir="rtl"] #lang {
text-align: left;
margin-left: 10px;
margin-right: unset;
}
html[dir="rtl"] header .plamo-logo {
float: right;
}
html[dir="rtl"] #lang {
text-align: left;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/** Copyright (c) 2011-2012 Fabien Cazenave, Mozilla.
* Copyright (c) 2018 Dimitris Kardarakos, KDE.W
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
/*jshint browser: true, devel: true, es5: true, globalstrict: true */
'use strict';
document.webL10n = (function(window, document, undefined) {
var gLanguage = 'en';
var gReadyState = 'loading';
// read-only setting -- we recommend to load l10n resources synchronously
var gAsyncResourceLoading = true;
// clear all l10n data
function clear() {
gLanguage = '';
}
// cross-browser API (sorry, oldIE doesn't support getters & setters)
return {
// get|set the document language
getLanguage: function() { return gLanguage; },
setLanguage: function(lang) { clear(); gLanguage = lang; },
// get the direction (ltr|rtl) of the current language
getDirection: function() {
// http://www.w3.org/International/questions/qa-scripts
// Arabic, Hebrew, Farsi, Pashto, Urdu
var rtlList = ['ar', 'he', 'fa', 'ps', 'ur'];
return (rtlList.indexOf(gLanguage) >= 0) ? 'rtl' : 'ltr';
},
// this can be used to prevent race conditions
getReadyState: function() { return gReadyState; }
};
}) (window, document);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment