Community portal page creation

This commit is contained in:
Léo Serre 2020-05-16 13:52:43 +04:00
parent 7beb1f25ad
commit 529a261351
3 changed files with 94 additions and 2 deletions

View File

@ -20,12 +20,15 @@ $controller->prefix = "d.";
$notfound = 0;
$session = 1;
if($controller->splitted_url[0]=="") $controller->splitted_url[0]="index";
// Routing to the correct page from the correct link
switch ($controller->splitted_url[0])
{
case "index": case "" :
case "index":
case "community" :
$controller->name="";
$view->name="index";
$view->name=$controller->splitted_url[0];
break;
case "user" :
$controller->name="users";

View File

@ -347,3 +347,39 @@ section .thumb {
margin: 0 10px;
border: 1px solid #aaa;
}
/*********************************/
/** Community portal page **/
/*********************************/
.action {
clear: both;
margin: 50px auto 0 auto;
width: 90%;
background: #efefef;
border: 1px solid #ccc;
border-bottom: 3px solid #ccc;
}
.action p {
margin: 0;
}
.action .title {
background: #ccc;
cursor: pointer;
font-weight: 500;
font-size: 1.1em;
}
.action .title a, .action .title p {
padding: 15px 10px;
margin: 0;
color: inherit;
display: block;
}
.action .description {
display: none;
}
.action .description p {
padding: 10px 20px;
}

53
views/d.community.html Executable file
View File

@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="fr">
<? include('blocks/d.head.html'); ?>
<body>
<? include('blocks/d.nav.html'); ?>
<section>
<h1>Contribuer au projet Kabano.</h1>
<p>&Eacute;tant un projet collaboratif, Kabano se repose sur vos contributions pour diffuser des informations au plus proche de la réalité. En participant au projet Kabano, vous acceptez de placer vos collaborations sous <a href="/wiki/licences">nos licences libres</a>.</p>
<br>
<div class="action">
<div class="title">
<a href="#">Ajouter un hébergement de montagne</a>
</div>
</div>
<div class="action">
<div class="title" id="js_open_1">
<p>Ajouter un commentaire sur un hébergement</p>
</div>
<div class="description" id="js_openned_1">
<p>Rendez-vous sur la page hébergement où vous souhaitez laisser un commentaire, puis ajoutez un commentaire en bas de page.</p>
</div>
</div>
<div class="action">
<div class="title" id="js_open_2">
<p>Faire une demande de travaux</p>
</div>
<div class="description" id="js_openned_2">
<p>Cette fonctionnalité n'est pas encore disponible.</p>
</div>
</div>
</section>
<script type="text/javascript">
$( "#js_open_1" ).click(function() {
$( "#js_openned_1" ).show(400);
});
$( "#js_open_2" ).click(function() {
$( "#js_openned_2" ).show(400);
});
</script>
<? include('blocks/d.footer.html'); ?>
</body>
</html>