This commit is contained in:
u1 2024-11-08 12:55:09 +01:00
parent 58191bd9a3
commit fbe9a069b6
6 changed files with 111 additions and 3 deletions

93
css/style.css Normal file
View File

@ -0,0 +1,93 @@
body {
font-family: Arial, sans-serif;
background-color: #f8f8f8;
margin: 0;
padding: 0;
}
.header {
background-color: #800040;
color: #ffffff;
padding: 20px;
text-align: center;
font-size: 2em;
}
.nav {
display: flex;
justify-content: center;
background-color: #d40054;
padding: 10px;
}
.nav img {
width: 50px;
height: 50px;
margin: 0 20px;
cursor: pointer;
}
.main-content {
display: flex;
justify-content: center;
align-items: center;
padding: 40px;
background-color: #fff1f4;
}
.form-container {
text-align: center;
padding: 20px;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
width: 300px;
}
.form-container h2 {
color: #6b8e23;
font-size: 1.5em;
}
.form-container label {
display: block;
margin: 10px 0 5px;
color: #333;
}
.form-container input[type="text"] {
width: 100%;
padding: 8px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
.form-container input[type="submit"] {
background-color: #800040;
color: white;
padding: 10px;
border: none;
border-radius: 4px;
cursor: pointer;
width: 100%;
}
.footer {
background-color: #800040;
color: white;
text-align: center;
padding: 10px;
position: fixed;
bottom: 0;
width: 100%;
}
.car-image {
margin-left: 30px;
}
.car-image img {
width: 150px;
}

BIN
imgs/home.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

BIN
imgs/samochod.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
imgs/znak.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

@ -12,8 +12,8 @@
</div> </div>
<div class="nav"> <div class="nav">
<a href="#"><img src="home.png" alt="Home"></a> <a href="#"><img src="imgs/home.png" alt="Home"></a>
<a href="#"><img src="znak.png" alt="Documents"></a> <a href="#"><img src="imgs/znak.png" alt="Documents"></a>
</div> </div>
<div class="main-content"> <div class="main-content">
@ -30,7 +30,7 @@
</form> </form>
</div> </div>
<div class="car-image"> <div class="car-image">
<img src="samochod.jpg" alt="Car"> <img src="imgs/samochod.jpg" alt="Car">
</div> </div>
</div> </div>

15
php/gget.php Normal file
View File

@ -0,0 +1,15 @@
<?php
$polaczenie = mysqli_connect("172.19.0.2", "root", "secret", "db");
$kwerenda = mysqli_query($polaczenie, "SELECT * FROM paliwa ORDER BY id DESC LIMIT 3;");
$json = array();
while($row = mysqli_fetch_assoc($kwerenda)) {
$json [] = $row;
};
echo json_encode($json);
?>