strona bloga

This commit is contained in:
s416267 2018-11-20 23:17:34 +01:00
parent ccc6b0a292
commit b715c3eb7a
2 changed files with 8 additions and 15 deletions

View File

@ -148,12 +148,14 @@ a:active {
background-color: transparent; background-color: transparent;
} }
.foto img{ .foto1 img{
width:360px; width:360px;
height:360px; height:360px;
background-color:#ccc;
} }
.foto img{
background-color:#ccc;
}
.fill img{ .fill img{
object-fit:fill; object-fit:fill;

View File

@ -75,7 +75,7 @@ if ($sql = $mysqli->prepare("SELECT * FROM user WHERE user_id = 2 "))
<div class=\"col-lg-4 name foto cover\"> <div class=\"col-lg-4 name foto cover foto1\">
<img src=\"$avatar\" class=\"align-text-bottom\"> <img src=\"$avatar\" class=\"align-text-bottom\">
<p>$username</p> <p>$username</p>
@ -122,8 +122,8 @@ if ($sql = $mysqli->prepare("SELECT * FROM post ORDER BY data_dodania"))
$sql->bind_result($post_id,$trash,$title,$description,$main,$image,$date,$mod_date); $sql->bind_result($post_id,$trash,$title,$description,$main,$image,$date,$mod_date);
while ($sql->fetch()) while ($sql->fetch())
{ {
echo " <div class=\"col-lg-4 col-md-4 col-sm-4 col-xs-12 desc\"> echo " <div class=\"col-lg-4 col-md-6 col-sm-6 col-xs-12 desc\">
<div class=\"project-wrapper\">
<div class=\"project\"> <div class=\"project\">
<div class=\"photo-wrapper\"> <div class=\"photo-wrapper\">
<div class=\"photo foto cover\"> <div class=\"photo foto cover\">
@ -133,8 +133,7 @@ if ($sql = $mysqli->prepare("SELECT * FROM post ORDER BY data_dodania"))
</div> </div>
</div> </div>
</div> </div> <h1> $title</h1></a>
</div> <h1> $title</h1></a>
</div>"; </div>";
} }
$sql->close(); $sql->close();
@ -146,13 +145,5 @@ else die( "Błąd w zapytaniu SQL! Sprawdź kod SQL w PhpMyAdmin." );
</body> </body>
</html> </html>