Commit ea788352 authored by Mat's avatar Mat

tests background content

parent 7df2387f
......@@ -9,17 +9,16 @@ class TechnoController extends Controller
public function indexAction()
{
$result = $this->getDoctrine()->getRepository('TechnoBundle:Image')->findAll();
$trio = array();
for ($i=0; $i < 4 ; $i++) {
$trio[] = rand(0,8);
}
// slideshow
$trio = [1, 2, 4, 8];
$selection = array();
foreach ($trio as $k => $value) {
$selection[$k] = $result[$value];
}
return $this->render('@Techno/Default/index.html.twig', array(
'slider' => $selection,
'result' => $result
'slider' => $selection
));
}
......
......@@ -17,6 +17,14 @@ body {
.clearfix {
clear: both;
}
div#content {
background-color: #61998d;
background-image: url('img/blanc3.jpg');
background-position: center 0px;
background-attachment: fixed;
background-repeat: repeat;
background-size: 1680px;
}
header, footer {
background-color: #61998d;
background-image: url('img/bandeau.jpg');
......@@ -88,7 +96,7 @@ div.container {
box-sizing: border-box; /*
background-color: rgba(255, 255, 255, 0.3); */
background-color: rgba(254, 255, 167, 0.1);
box-shadow: 0 0 14px -6px black;
box-shadow: 0 0 10px -2px black;
}
#header .container {
padding-bottom: 1px;
......@@ -100,6 +108,7 @@ div.container {
}
#content .container {
min-height: 100%;
background-color: rgba(255, 255, 230, 0.67);
}
#footer .container {
padding: 1em 4em;
......
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