commit d41a77a2b13ca9e663404c4015e9a8e7c3a1d71e Author: Fabian Kowalski Date: Wed Sep 17 09:22:36 2025 +0200 fk diff --git a/INF.03-01-25.01-SG b/INF.03-01-25.01-SG new file mode 160000 index 0000000..e30d313 --- /dev/null +++ b/INF.03-01-25.01-SG @@ -0,0 +1 @@ +Subproject commit e30d313d987cfab61d317ce6edba20a3f4b47ed4 diff --git a/css/layout.css b/css/layout.css new file mode 100644 index 0000000..321c095 --- /dev/null +++ b/css/layout.css @@ -0,0 +1,68 @@ +body { + font-family: Helvetica; + background-color: #EAEAEA; + margin: 0; + padding: 0; +} + +header { + position: relative; + text-align: center; +} + +header img { + width: 100%; +} + +.header-text { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + color: white; + font-size: 48px; + font-weight: bold; +} + +nav, footer { + background-color: #625B5B; + color: white; + padding: 20px; + text-align: center; +} + +nav a { + font-weight: bold; + background-color: #EAEAEA; + color: #625B5B; + padding: 10px; + margin: 50px; + border-radius: 20px; + text-decoration: none; +} + +nav a:hover { + background-color: #625B5B; + color: #EAEAEA; + border: 1px solid #EAEAEA; +} + +ul { + margin-left: 40px; + list-style-type: circle; +} + +table { + border: 1px dashed #625B5B; + width: 60%; + margin-left: 40px; + text-align: center; +} + +.kontrolki { + margin: 5px; +} + +main { + padding: 20px; +} diff --git a/i1.html b/i1.html new file mode 100644 index 0000000..5f2056e --- /dev/null +++ b/i1.html @@ -0,0 +1,42 @@ + + + + + Kursy komputerowe + + + + + +
+ kursy komputerowe +
hello
+
+ +
+

Kursy komputerowe - programowanie

+ + + + + + + + +
KursCzas trwaniaCena
+

Adres do korespondencji

+ + skontaktuj się +
+ + + diff --git a/js/skrypt.js b/js/skrypt.js new file mode 100644 index 0000000..e42223d --- /dev/null +++ b/js/skrypt.js @@ -0,0 +1,33 @@ +document.addEventListener("DOMContentLoaded", function() { + console.log("zaladowano...") + + function getData() { + return fetch('./php/get.php') + .then(res => { + console.log("Res:", res) + return res.json() + }) + .then(data => { + console.log("Data:", data) + renderTable(data) + }) + .catch(error => { + console.log("Error:", error) + }) + } + + function renderTable(data) { + let table = document.getElementById('tab') + data.forEach(row => { + let tr = document.createElement('tr'); + tr.innerHTML= + `${row.nazwa} + ${row.czas_trwania} + ${row.cena}` + + table.appendChild(tr) + }) + } + + getData() +}) \ No newline at end of file diff --git a/php/get.php b/php/get.php new file mode 100644 index 0000000..2d302d9 --- /dev/null +++ b/php/get.php @@ -0,0 +1,13 @@ + +