This commit is contained in:
2p01
2025-04-09 11:19:34 +02:00
parent 9ed5b9ce1d
commit 305379e78d
3 changed files with 95 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Zadanie 01 - powitanie z imieniem</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>Zadanie 1</h1>
<h2>Autor: Jakub Grzegorczyk</h2>
</header>
<div>
<p>Program wczytuje imię i wyświetla powitanie z tym imieniem</p>
</div>
<div>
<form action="wynik.php" method="post">
<label for="imie">Podaj swoje imię:</label><br>
<input type="text" id="imie" name="imie" required><br>
<input type="submit" value="Działaj"><br>
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,51 @@
* {
box-sizing: border-box;
}
body {
font-family: Verdana, serif;
background: #ffffff;
margin: 30px;
}
header {
border: 2px solid black;
border-radius: 1em;
padding: 20px;
box-shadow: rgba(0, 0, 0, 0.2) 3px 3px 5px;
background: #f0f0f0;
}
div {
border: 2px solid black;
padding: 20px;
border-radius: 1em;
margin: 10px 0 10px 0;
box-shadow: rgba(0, 0, 0, 0.2) 3px 3px 5px;
}
input {
margin-top: 10px;
width: 30%;
border: black 2px solid;
border-radius: 0.5em;
height: 2em;
}
button {
padding: 5px;
width: 30%;
border: black 2px solid;
border-radius: 0.5em;
font-weight: bold;
}
pre {
font-family: Verdana, serif;
}
.box p {
padding: 10px 15px 20px;
display: none;
}
.box h3 {
cursor: pointer;
}

View File

@@ -0,0 +1,20 @@
<!doctype html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Wynik</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div>
<?php
$imie = $_POST['imie'];
echo "<h1>Witaj $imie !</h1>";
echo "<h2>Miło cię widzieć na naszej stronie!</h2>";
?>
</div>
</body>
</html>