Skip to content

Commit

Permalink
actu page final
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMaxium69 committed Apr 18, 2022
1 parent 08b1c7a commit 3d5a893
Show file tree
Hide file tree
Showing 13 changed files with 342 additions and 19 deletions.
62 changes: 46 additions & 16 deletions actu.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,70 @@

<main>

<section id="start">

<div class="ac-head">
<div class="ac-centertext">
<h1>Actualité</h1>
</div>
</div>

<section id="actu">
</section>




<section id="actu" class="container">
<ul class="chat-thread">
<?php

<?php
require "api/bot/recup.php";

require "api/bot/recup.php";
$actuAll = getAllActu();

$actuAll = getAllActu();
foreach ($actuAll as $actu){

foreach ($actuAll as $actu){
if ($env_admin[$actu['user']]){
$username = $env_admin[$actu['user']];
if ($username == "Maxime Tournier"){
$id = "m";
} else if ($username == "Pierre-Louis Devaud"){
$id = "p";
}
?>
<li id="<?=$id?>">

if ($env_admin[$actu['user']]){
$username = $env_admin[$actu['user']];
?>
<h3><?php echo $username ?></h3>
<small><?php echo $env_admin_role[$username] ?></small>
<p>
<?php echo nl2br($actu['content']); ?>
</p>

<div>
<h3><?php echo $username ?></h3>
<p>
<?php echo nl2br($actu['content']); ?>
</p>
</div>
</li>



<?php
}
} ?>
</ul>

</section>


<section id="intro" class="container">

<hr>
<br>
<p>Nos actualité sont poster sur notre Discord et rediriger ici</p>

<button id="btn-intro" class="tyrobutton" data-url="https://discord.com">Rejoindre notre Discord</button>


<?php
} } ?>

</section>


</main>

<?php footer($page); ?> </body> </html>
9 changes: 9 additions & 0 deletions app/env.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,12 @@


);

$env_admin_role = array(

"Maxime Tournier" => "PDG de Tyrolium & Fondateur de SolidServ",

"Pierre-Louis Devaud" => "Fondateur de SolidServ"


);
Binary file added assets/067bl6fanut71.jpg
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 assets/Hebergeur-web-minecraft.jpg
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 assets/actu/m.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 assets/actu/p.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 assets/fond-ecran-minecraft-roi-herobrine.jpg
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 assets/mc.jpg
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 assets/téléchargement.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
156 changes: 156 additions & 0 deletions css/actu.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
/*************************
START
*************************/
#start .ac-head{
width: 100%;
height: 246px;
background: linear-gradient( rgb(2 5 14 / 40%), rgb(2 14 60 / 60%) ), url(../assets/background.png);
background-color: blue;
border-bottom-left-radius: 30% 10%;
border-bottom-right-radius: 30% 10%;
background-position: center;
background-repeat: no-repeat;
background-size: 100%;
}

#start .ac-centertext{
position: absolute;
width: 70%;
margin-top: 66px;
margin-left: 15%;
margin-right: 15%;
text-align: center;
text-shadow: 1px 4px 10px black;
}

#start .ac-head .ac-centertext h1 {
font-size: 54px;
font-weight: 900;
color: white;
margin: 22px 0;
}
/*************************
INTRO
*************************/

#intro{
text-align: center;
margin-top: 20px;
margin-bottom: 36px;
}

#intro button{
font-size: 12px;
}

/*************************
MESSAGE
*************************/

#actu{
margin-top: 40px;
}

#actu p{
margin-top: 1rem;
}

.chat-thread {
margin: 24px auto 0 auto;
/*padding: 0 20px 0 0;*/
list-style: none;
overflow-y: scroll;
overflow-x: hidden;
}

.chat-thread li {
position: relative;
clear: both;
display: inline-block;
padding: 16px 40px 16px 20px;
margin: 0 0 20px 0;
font: 16px/20px "Noto Sans", sans-serif;
border-radius: 10px;
background-color: rgba(0, 25, 255, 0.2);;
}

.chat-thread li:before {
position: absolute;
top: 0;
width: 50px;
height: 50px;
border-radius: 50px;
content: "";
}

.chat-thread li#m:after {
position: absolute;
top: 15px;
content: "";
width: 0;
height: 0;
border-top: 15px solid rgba(25, 147, 147, 0.2);
}

.chat-thread li#m {
animation: show-chat-odd 0.15s 1 ease-in;
-moz-animation: show-chat-odd 0.15s 1 ease-in;
-webkit-animation: show-chat-odd 0.15s 1 ease-in;
float: right;
margin-right: 80px;
color: #088ae7;
}

.chat-thread li#m:before {
right: -70px;
background-image: url(../assets/actu/m.png);
}

.chat-thread li#p:after {
border-right: 15px solid transparent;
right: -15px;
}

.chat-thread li#p {
animation: show-chat-even 0.15s 1 ease-in;
-moz-animation: show-chat-even 0.15s 1 ease-in;
-webkit-animation: show-chat-even 0.15s 1 ease-in;
float: left;
margin-left: 80px;
color: #324af5;
}

.chat-thread li#p:before {
left: -70px;
background-image: url(../assets/actu/p.png);
}

.chat-thread li#p:after {
border-left: 15px solid transparent;
left: -15px;
}

.chat-window {
position: fixed;
bottom: 18px;
}

.chat-window-message {
width: 100%;
height: 48px;
font: 32px/48px "Noto Sans", sans-serif;
background: none;
color: #0AD5C1;
border: 0;
border-bottom: 1px solid rgba(25, 147, 147, 0.2);
outline: none;
}
.chat-thread {
width: 100%;
}

.chat-window {
left: 25%;
width: 50%;
}

16 changes: 15 additions & 1 deletion css/hebergement.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*************************
HOME
ALL
*************************/

#home .heb-head{
Expand Down Expand Up @@ -30,3 +30,17 @@
color: white;
margin: 22px 0;
}

/*************************
MINECRAFT
*************************/

#mc .heb-head{
background: linear-gradient( rgb(2 5 14 / 40%), rgb(2 14 60 / 60%) ), url(../assets/mc.jpg);
background-position: center;
background-repeat: no-repeat;
background-size: 100%;
}

#mc

4 changes: 3 additions & 1 deletion extension/link.phtml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<link rel="stylesheet" type="text/css" media="screen" href="css/all.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/index.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/hebergement.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/hebergement.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/actu.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/support.css">
Loading

0 comments on commit 3d5a893

Please sign in to comment.