Lorem, ipsum dolor sit amet consectetur adipisicing elit. Vero nam, dolorum magnam error non fugit. Deserunt beatae natus pariatur dolor facere quidem, eaque explicabo, exercitationem adipisci labore quas, rerum quia suscipit cumque. Vel laboriosam ad nobis commodi est aperiam natus veniam suscipit. A magni accusamus quibusdam dolores, eaque vel maiores similique id laudantium ab sapiente culpa iure consectetur corrupti fugiat, nam aliquid in quas corporis, minus hic aut recusandae? Accusantium ipsum et, soluta neque quo aliquid quas impedit autem maxime!
+
+ 🡸
+ 🡺
+
+
+
+
+
+
+
+
+
+
diff --git a/lab3/zad9/pracownicy.json b/lab3/zad9/pracownicy.json
new file mode 100644
index 0000000..a97c190
--- /dev/null
+++ b/lab3/zad9/pracownicy.json
@@ -0,0 +1,34 @@
+{
+ "pracownicy":[
+ {
+ "name": "1 Marcin Majkut",
+ "position": "Full Stack Web Developer",
+ "img": "monkey1.jpg",
+ "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque nulla ad ipsam eveniet vitae ut modi officia autem odio ipsa, sequi dicta et iusto nisi, sapiente aperiam rerum obcaecati error, deleniti incidunt voluptate explicabo aliquid itaque! Consectetur, explicabo earum ducimus quia numquam nobis, quae corrupti, quam nisi voluptas illum vitae ipsa minima aliquam praesentium quo? Laboriosam, culpa, natus corporis nihil doloribus asperiores ipsa id impedit, repudiandae et a quos cumque perferendis aspernatur sequi reiciendis hic. Vitae veniam soluta nisi voluptatibus?"
+ },
+ {
+ "name": "2 Robert Lewandowski",
+ "position": "Marketing Menager",
+ "img": "monkey2.png",
+ "description": "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Sed obcaecati, maxime eligendi dolore consequatur facere odit ipsum eos iste ut in laborum quibusdam saepe iusto, nihil error asperiores unde corrupti recusandae consectetur veritatis eum, nemo enim non! Sed beatae exercitationem provident ex distinctio dicta officia et molestiae porro aliquid vel aperiam ducimus commodi ratione unde voluptatum obcaecati iure, vitae itaque earum quo. Dolore nesciunt deleniti iste ipsa recusandae possimus saepe, suscipit earum cum ea quae obcaecati sint ad consectetur voluptas!"
+ },
+ {
+ "name": "3 Mikołaj Wielgos",
+ "position": "Full Time Clown",
+ "img": "monkey3.png",
+ "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Enim, beatae cum eveniet ratione est ducimus numquam veniam vitae maiores fugiat explicabo dolores, repellendus, reiciendis voluptatem corporis quisquam odio error voluptates ut itaque repellat exercitationem! Recusandae fugiat, quos harum aspernatur voluptatem mollitia laborum sapiente illo sint asperiores assumenda vel impedit inventore quisquam, error illum facere repellat, architecto nostrum quis vitae? Pariatur blanditiis sed incidunt dolores ab, sapiente illum asperiores quae deserunt quos amet mollitia nulla optio minima, saepe aspernatur a labore."
+ },
+ {
+ "name": "4 Andrzej Duda",
+ "position": "President",
+ "img": "monkey4.webp",
+ "description": "Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ullam natus accusantium quos exercitationem nihil quam quaerat iste, praesentium maiores laboriosam autem voluptatum ipsum labore tempora atque cumque inventore doloremque assumenda consequatur dolor maxime alias. Animi cumque quod vel corporis laborum repellat aliquid iste, aliquam, necessitatibus, delectus qui sapiente! Cum expedita nesciunt aperiam omnis voluptates ea consectetur optio, natus molestias perferendis! Et similique temporibus ipsam earum, voluptatibus quod unde dolores labore a error laboriosam, hic eius ipsum iure, minus porro distinctio."
+ },
+ {
+ "name": "5 Felix Lengyel",
+ "position": "Streamer",
+ "img": "monkey5.jpg",
+ "description": "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Cum, pariatur assumenda consequatur sapiente, veritatis id blanditiis aperiam adipisci, facere doloribus in necessitatibus. Nemo, accusamus incidunt! Nulla animi dolores libero delectus, nesciunt dicta assumenda aperiam quia corrupti voluptas, fugiat sequi? Adipisci nihil dignissimos quas blanditiis dolor cupiditate exercitationem. Cumque totam nam aliquam, accusantium officiis aperiam voluptates sapiente dicta. Magnam, fugit debitis! Aliquid incidunt, doloribus facere blanditiis possimus et veritatis, omnis odit non eum quaerat placeat neque, quo dignissimos nesciunt architecto officiis."
+ }
+ ]
+}
\ No newline at end of file
diff --git a/lab3/zad9/script.js b/lab3/zad9/script.js
new file mode 100644
index 0000000..f612ba3
--- /dev/null
+++ b/lab3/zad9/script.js
@@ -0,0 +1,50 @@
+async function getJson(){
+ var res = await fetch("pracownicy.json");
+ var json = await res.json();
+ return json;
+}
+
+function loadSlide(id, data){
+ var elName = document.querySelector("#name");
+ var elPos = document.querySelector("#position");
+ var elDesc = document.querySelector("#info");
+ var elImg = document.querySelector("#photo");
+
+ var name = data[id].name;
+ var pos = data[id].position;
+ var desc = data[id].description;
+ var img = data[id].img;
+
+ elName.textContent = name;
+ elPos.textContent = pos;
+ elDesc.textContent = desc;
+ elImg.srcset = "img/" + img;
+
+
+}
+var data;
+var id = 0;
+
+async function loadSite(){
+ var data = await getJson();
+ data = data.pracownicy;
+ loadSlide(0,data);
+ document.querySelector("#left").addEventListener('click', function(event) {
+ id--;
+ loadSlide(id%data.length, data);
+ } )
+
+ document.querySelector("#right").addEventListener('click', function(event) {
+ id++;
+ loadSlide(id%data.length, data);
+ } )
+
+ document.querySelector("#random").addEventListener('click', function(event) {
+ id = Math.round(Math.random()*data.length);
+ document.querySelector("#rolled").textContent="Psst! Wylosowałeś " + (id%data.length+1);
+ loadSlide(id%data.length,data);
+ })
+}
+
+loadSite();
+
diff --git a/lab3/zad9/style.css b/lab3/zad9/style.css
new file mode 100644
index 0000000..8dfcd7e
--- /dev/null
+++ b/lab3/zad9/style.css
@@ -0,0 +1,150 @@
+@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
+
+:root {
+ --darkBlue: hsl(233, 26%, 24%);
+}
+
+*,
+*::before,
+*::after {
+ box-sizing: border-box;
+ text-rendering: optimizeLegibility;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ font-kerning: auto;
+ margin: 0;
+ padding: 0;
+}
+
+html {
+ font-family: 'Inter', sans-serif;
+}
+
+body {
+ background-color: lightgray;
+ display: flex;
+ width: 100vw;
+ align-items: center;
+ justify-content: center;
+ flex-direction: column;
+}
+
+h1 {
+ position: relative;
+ margin:30px;
+}
+
+h1::after {
+ content: '';
+ display: block;
+ position: absolute;
+ left: 25%;
+ top: 120%;
+ width: 240px;
+ height: 5px;
+ background-color: blue;
+ text-align: center;
+}
+
+.container {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ text-align: center;
+
+}
+
+img {
+ border-radius: 50%;
+ height: 128px;
+ width: 128px;
+ margin: 20px;
+}
+
+h3 {
+ letter-spacing: 2px;
+ margin-bottom: 5px;
+}
+
+h4 {
+ color: lightskyblue;
+ font-size: 16px;
+ font-style: italic;
+}
+
+p {
+ text-align: center;
+ margin: 20px;
+}
+p#rolled{
+ color:gray;
+
+}
+button#random {
+ margin: 20px;
+ margin-top: 5px;
+ background-color: lightskyblue;
+ border: 2px solid lightblue;
+ padding: 6px;
+ border-radius: 10px;
+ cursor: pointer;
+ transition: 0.3s ease all;
+ -webkit-user-select: none;
+ /* Safari */
+ -moz-user-select: none;
+ /* Firefox */
+ -ms-user-select: none;
+ /* IE10+/Edge */
+ user-select: none;
+ /* Standard */
+}
+
+button#random:active {
+ background-color: green;
+}
+
+button#random:hover {
+ letter-spacing: 1.3px;
+ transition: 0.3s ease all;
+ border: 2px solid green;
+}
+
+span {
+ display: inline-block;
+ color: lightskyblue;
+ transform: translateX(0px);
+ transition: 0.3s ease all;
+ font-size: 20px;
+ margin: 5px;
+ -webkit-user-select: none;
+ /* Safari */
+ -moz-user-select: none;
+ /* Firefox */
+ -ms-user-select: none;
+ /* IE10+/Edge */
+ user-select: none;
+ /* Standard */
+}
+
+span:hover {
+ cursor: pointer;
+}
+
+span#left:hover {
+ transform: translateX(-5px);
+}
+
+span#right:hover {
+ transform: translateX(5px);
+}
+
+.slide-container {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ min-width: 250px;
+ width: 30vw;
+ background-color: rgb(243, 243, 243);
+ border-radius: 5px;
+}
\ No newline at end of file
diff --git a/preset.css b/preset.css
index 0ab5b15..a89e715 100644
--- a/preset.css
+++ b/preset.css
@@ -1,19 +1,19 @@
-* {
+@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
+
+:root {
+ --darkBlue: hsl(233, 26%, 24%);
+}
+
+*, *::before, *::after {
box-sizing: border-box;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-kerning: auto;
+ margin: 0;
+ padding:0;
}
html {
- font-size: 10pt;
- line-height: 1.4;
- font-weight: 400;
- font-family: 'Source Sans Pro', sans-serif;
- -webkit-text-size-adjust: 100%;
+ font-family: 'Inter', sans-serif;
}
-
-body {
- margin: 0;
-}
\ No newline at end of file