Skip to content

Commit

Permalink
Create new section for presenting the site
Browse files Browse the repository at this point in the history
  • Loading branch information
crisbal committed Aug 1, 2017
1 parent c9e6086 commit 339d268
Show file tree
Hide file tree
Showing 8 changed files with 222 additions and 48 deletions.
80 changes: 55 additions & 25 deletions WikiToLearnSkin.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ public function executeHeader() {
//$personalToolsCount++;
}
?>

<span class="dropdown-item languages__selector hidden-sm-up"><?php ?></span>
<hr class="languages__divider hidden-sm-up"></hr>
<div class="languages--mobile hidden-sm-up">
Expand Down Expand Up @@ -388,34 +387,43 @@ public function executeHome() {
global $wiki_domain, $wiki;
?>
<main class="page page-home">
<!--
<section class="title">
<h1> <?php echo $this->getMessage('wikitolearnskin-home-claim', false); ?> </h1>
</section>
<section class="departments">
<ul class="departments__content">
<?php
$departmentsCount = intval($this->getMessage("wikitolearnskin-departments-count"));
echo "<div class='departments__row'>";
for($i = 1; $i < ($departmentsCount+1); $i++){
self::makeDepartment(
$this->getMessage("wikitolearnskin-departments-$i-name"),
$this->getImagePath( $this->getMessage("wikitolearnskin-departments-$i-image") ),
$this->getMessage("wikitolearnskin-departments-$i-link"),
$this->getMessage("wikitolearnskin-departments-$i-status")
);
if($i==(round($departmentsCount/2)) && $departmentsCount>5){
echo "</div>";
echo "<div class='departments__row'>";
}
}
echo "</div>";
echo '<div class="clearfix"></div>';
?>
</ul>
-->
<section class="howto">
<div class="howto__left">
<div class="howto__point" data-image-name="edit">
<div class="howto__title">
<i class="fa fa-pencil text-wtl--red"></i>
Scrivi, facendoti aiutare
</div>
<div class="howto__description">
Trasforma note e appunti in qualcosa di utile anche per gli altri. Fatti aiutare da colleghi e amici per assicurarti che ciò che scrivi sia chiaro e senza errori.
</div>
</div>
<div class="howto__point howto__point--faded" data-image-name="book">
<div class="howto__title">
<i class="fa fa-book text-wtl--yellow"></i> Crea libri dinamici
</div>
<div class="howto__description">
L’ultima versione di tutte le pagine è sempre scaricabile in PDF professionali. Questa funzione è comoda anche solo per delle note personali!
</div>
</div>
<div class="howto__point howto__point--faded" data-image-name="awards">
<div class="howto__title">
<i class="fa fa-star text-wtl--green"></i>
Ottieni riconoscimenti di qualità
</div>
<div class="howto__description">
Ogni libro che riceve una revisione da almeno due accademici riceve un badge speciale e viene distribuito a tutto il mondo.
</div>
</div>
</div>
<div class="howto__right">
</div>
</section>
<!--<section class="join-us">

</section>-->
<section class="media">
<div class="media__content">
<div class="media__videocolumn">
Expand Down Expand Up @@ -446,6 +454,28 @@ public function executeHome() {
</div>
</div>
</section>
<section class="departments">
<ul class="departments__content">
<?php
$departmentsCount = intval($this->getMessage("wikitolearnskin-departments-count"));
echo "<div class='departments__row'>";
for($i = 1; $i < ($departmentsCount+1); $i++){
self::makeDepartment(
$this->getMessage("wikitolearnskin-departments-$i-name"),
$this->getImagePath( $this->getMessage("wikitolearnskin-departments-$i-image") ),
$this->getMessage("wikitolearnskin-departments-$i-link"),
$this->getMessage("wikitolearnskin-departments-$i-status")
);
if($i==(round($departmentsCount/2)) && $departmentsCount>5){
echo "</div>";
echo "<div class='departments__row'>";
}
}
echo "</div>";
echo '<div class="clearfix"></div>';
?>
</ul>
</section>
<section class="testimonials">
<div class="testimonials__content">
<div class="testimonial">
Expand Down
59 changes: 59 additions & 0 deletions images/angle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/awards.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/book.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions scripts/home.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
$(document).ready(function() {
$(".howto__point").click(function() {
$(".howto__point").addClass("howto__point--faded")
$(this).removeClass("howto__point--faded")

$(".howto__right").css({
"background": "url(/skins/WikiToLearnSkin/images/angle.svg) no-repeat left -5px, url(/skins/WikiToLearnSkin/images/" + $(this).data("image-name") + ".png) no-repeat right center",
"background-size": "auto 110%, cover"
})
})
});
3 changes: 2 additions & 1 deletion skin.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
"scripts/app.js",
"scripts/multitool.js",
"scripts/floatingTools.js",
"scripts/visualEditor.js"
"scripts/visualEditor.js",
"scripts/home.js"
],
"dependencies": [
"oojs-ui",
Expand Down
Loading

0 comments on commit 339d268

Please sign in to comment.