Lekcja 9.5
This commit is contained in:
59
assets/css/tabliczka.css
Normal file
59
assets/css/tabliczka.css
Normal file
@@ -0,0 +1,59 @@
|
||||
@font-face {
|
||||
font-family: Monocraft;
|
||||
src: url(/assets/fonts/Monocraft.otf);
|
||||
}
|
||||
|
||||
main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
text-shadow: 2px 2px 5px #000;
|
||||
}
|
||||
|
||||
main * {
|
||||
font-family: "Monocraft", sans-serif;
|
||||
color: #ddd;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
form {
|
||||
margin: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3rem;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
height: 32rem;
|
||||
}
|
||||
|
||||
textarea {
|
||||
margin-inline: auto;
|
||||
color: #000;
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
background: url(/assets/images/oak_planks.png);
|
||||
background-size: 12.5vw 12.5vw;
|
||||
image-rendering: pixelated;
|
||||
overflow: hidden;
|
||||
text-wrap: none;
|
||||
font-size: 2vw;
|
||||
}
|
||||
|
||||
input {
|
||||
margin-inline: auto;
|
||||
padding-block: .5rem;
|
||||
padding-inline: 1rem;
|
||||
width: 24rem;
|
||||
height: 2.5rem;
|
||||
font-size: 16pt;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
image-rendering: pixelated;
|
||||
background-image: url(/assets/images/button.png);
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
input:hover {
|
||||
background-image: url(/assets/images/button_highlighted.png) !important;
|
||||
background-size: 100% 100% !important;
|
||||
color: #ddd !important;
|
||||
}
|
||||
BIN
assets/fonts/Monocraft.otf
Normal file
BIN
assets/fonts/Monocraft.otf
Normal file
Binary file not shown.
BIN
assets/images/button.png
Normal file
BIN
assets/images/button.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/images/button_highlighted.png
Normal file
BIN
assets/images/button_highlighted.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/images/oak_planks.png
Normal file
BIN
assets/images/oak_planks.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 202 B |
@@ -1,9 +1,8 @@
|
||||
const nawigacjaLinki = [
|
||||
{ nazwa: "Tabele", link: "/tabele.html" },
|
||||
{ nazwa: "Grafika", link: "/grafika.html" },
|
||||
{ nazwa: "JS. Zad. Warunkowe", link: "/js-warunkowe.html" },
|
||||
{ nazwa: "JS. Pętle", link: "/js-petle.html" },
|
||||
{ nazwa: "Witalnia", link: "/witalnia.php" },
|
||||
{ nazwa: "Tabliczka", link: "/tabliczka.php" },
|
||||
];
|
||||
const stopkaLinki = [
|
||||
[
|
||||
@@ -29,6 +28,7 @@ const stopkaLinki = [
|
||||
[
|
||||
"PHP",
|
||||
{ nazwa: "Witalnia", link: "/witalnia.php" },
|
||||
{ nazwa: "Tabliczka", link: "/tabliczka.php" },
|
||||
],
|
||||
[
|
||||
"Wszystko",
|
||||
|
||||
34
tabliczka.php
Normal file
34
tabliczka.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Witalnia - MaszToZadanieDomowe.com</title>
|
||||
<link href="/favicon.ico" rel="favicon">
|
||||
<link href="/assets/css/main.css" rel="stylesheet">
|
||||
<link href="/assets/css/tabliczka.css" rel="stylesheet">
|
||||
<script data-goatcounter="https://zeszyt.nonamesoft.xyz/count" async src="/assets/js/count.js"></script>
|
||||
<script type="module" src="/assets/js/index.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header-comp></header-comp>
|
||||
<main>
|
||||
<br>
|
||||
<form method="post" action="/tabliczka.php">
|
||||
<h2>Enter sign text</h2>
|
||||
<textarea name="zawartosc" maxlength="52" rows="4"><?php
|
||||
if (isset($_POST["zawartosc"])) {
|
||||
setcookie("tabliczka", $_POST["zawartosc"]);
|
||||
echo(htmlspecialchars($_POST["zawartosc"]));
|
||||
} else if (isset($_COOKIE["tabliczka"])) {
|
||||
echo(htmlspecialchars($_COOKIE["tabliczka"]));
|
||||
} else {
|
||||
echo("");
|
||||
}
|
||||
?></textarea>
|
||||
<input type="submit" name="submit" value="Done">
|
||||
</form>
|
||||
</main>
|
||||
<footer-comp></footer-comp>
|
||||
</body>
|
||||
</html>
|
||||
@@ -8,7 +8,6 @@
|
||||
<link href="/assets/css/main.css" rel="stylesheet">
|
||||
<script data-goatcounter="https://zeszyt.nonamesoft.xyz/count" async src="/assets/js/count.js"></script>
|
||||
<script type="module" src="/assets/js/index.js"></script>
|
||||
<script src="/assets/js/js-wspolne.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header-comp></header-comp>
|
||||
|
||||
Reference in New Issue
Block a user