diff --git a/frontend/_global/header.css b/frontend/_global/header.css index 6076b50..70d9767 100644 --- a/frontend/_global/header.css +++ b/frontend/_global/header.css @@ -2,8 +2,7 @@ header { /*Box alignment*/ display: flex; - margin: auto auto 1%; - /*height: 8vh;*/ + margin: auto; /*Content alignment*/ flex-flow: row wrap; @@ -13,7 +12,6 @@ header { /*Visual*/ background-color: #FFFFFF; - /* border-bottom: 1px solid #333333; */ } diff --git a/frontend/logged_organiser/panel_organizatora/dodawanie turnieju/style.css b/frontend/logged_organiser/panel_organizatora/dodawanie turnieju/style.css deleted file mode 100644 index 2ae3c6c..0000000 --- a/frontend/logged_organiser/panel_organizatora/dodawanie turnieju/style.css +++ /dev/null @@ -1,104 +0,0 @@ -@import "../../../_global/header.css"; - -/*0 layer*/ -body { - background-color: #EBEBEB; - margin: 0; -} - -/*1'st layer*/ -.container { - height: 100%; - width: 100%; - display: flex; - justify-content: flex-end; -} - -/*2'nd layer*/ -.form { - /*Alignment*/ - margin: auto; - width: 50%; - height: 1000px; - - /*Inside*/ - padding-left: 40px; - padding-top: 15px; - - /*Visual*/ - background-color: #FFFFFF; - - /*Others*/ - justify-content: center; - align-items: center; -} - -/*Elements*/ -.descriptor { - /* Size */ - width: 326px; - height: 42px; - left: 254px; - top: 554px; - - /* Alignment */ - margin-bottom: 0; - margin-top: 0; - display: flex; - - align-items: center; - - /* Text */ - font-family: 'Montserrat', serif; - font-size: 20px; - line-height: 42px; - color: #828282; -} - -.myButton { - /*Button alignment*/ - width: 25%; - height: 5%; - margin-left: 15%; - - - /*Button visual*/ - border-radius: 25px; - cursor: pointer; - background-color: #828282; - - /*Text*/ - font-family: Arial, serif; - font-size: 12px; - color: #ffffff; -} - - -.myButton2 { - /*Button alignment*/ - width: 25%; - height: 5%; - - - /*Button visual*/ - border-radius: 25px; - cursor: pointer; - background-color: #007C36; - - /*Text*/ - font-family: Arial, serif; - font-size: 12px; - color: #ffffff; -} - -.title { - text-align: center; - font-size: 28px; - font-family: 'Montserrat', serif; - font-style: normal; - color: rgba(40, 40, 40, 0.9); -} - -/*.buttonBox {*/ -/* margin: auto;*/ -/*}*/ \ No newline at end of file diff --git a/frontend/logged_organiser/panel_organizatora/edycja turnieju/style.css b/frontend/logged_organiser/panel_organizatora/edycja turnieju/style.css deleted file mode 100644 index 2ae3c6c..0000000 --- a/frontend/logged_organiser/panel_organizatora/edycja turnieju/style.css +++ /dev/null @@ -1,104 +0,0 @@ -@import "../../../_global/header.css"; - -/*0 layer*/ -body { - background-color: #EBEBEB; - margin: 0; -} - -/*1'st layer*/ -.container { - height: 100%; - width: 100%; - display: flex; - justify-content: flex-end; -} - -/*2'nd layer*/ -.form { - /*Alignment*/ - margin: auto; - width: 50%; - height: 1000px; - - /*Inside*/ - padding-left: 40px; - padding-top: 15px; - - /*Visual*/ - background-color: #FFFFFF; - - /*Others*/ - justify-content: center; - align-items: center; -} - -/*Elements*/ -.descriptor { - /* Size */ - width: 326px; - height: 42px; - left: 254px; - top: 554px; - - /* Alignment */ - margin-bottom: 0; - margin-top: 0; - display: flex; - - align-items: center; - - /* Text */ - font-family: 'Montserrat', serif; - font-size: 20px; - line-height: 42px; - color: #828282; -} - -.myButton { - /*Button alignment*/ - width: 25%; - height: 5%; - margin-left: 15%; - - - /*Button visual*/ - border-radius: 25px; - cursor: pointer; - background-color: #828282; - - /*Text*/ - font-family: Arial, serif; - font-size: 12px; - color: #ffffff; -} - - -.myButton2 { - /*Button alignment*/ - width: 25%; - height: 5%; - - - /*Button visual*/ - border-radius: 25px; - cursor: pointer; - background-color: #007C36; - - /*Text*/ - font-family: Arial, serif; - font-size: 12px; - color: #ffffff; -} - -.title { - text-align: center; - font-size: 28px; - font-family: 'Montserrat', serif; - font-style: normal; - color: rgba(40, 40, 40, 0.9); -} - -/*.buttonBox {*/ -/* margin: auto;*/ -/*}*/ \ No newline at end of file diff --git a/frontend/logged_organiser/panel_organizatora/index.html b/frontend/logged_organiser/panel_organizatora/index.html deleted file mode 100644 index 3d8565e..0000000 --- a/frontend/logged_organiser/panel_organizatora/index.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - Padel Tournaments System - - - - - -
-
- -
- -
- - -
-
- -

- - - -

- -

Turnieje

- - -

Rankingowe

- -
-
- - - - - \ No newline at end of file diff --git a/frontend/logged_organiser/panel_organizatora/myscript.js b/frontend/logged_organiser/panel_organizatora/myscript.js deleted file mode 100644 index fd93c89..0000000 --- a/frontend/logged_organiser/panel_organizatora/myscript.js +++ /dev/null @@ -1,154 +0,0 @@ -//Problem: user interaction doesn't provide desired results -//Solution: add interactivity so the user can manage daily tasks. - -var taskInput = document.getElementById("new-task"); // new-task -var addButton = document.getElementsByTagName("button")[0];//first button -var incompleteTasksHolder = document.getElementById("incomplete-tasks"); //incomplete-tasks -var completedTasksHolder = document.getElementById("completed-tasks"); //completed-tasks - -//New Task List item - -var createNewTaskElement = function (taskString) { - // create List Item - var listItem = document.createElement("li"); - // input checkbox - var checkBox = document.createElement("input"); - // label - var label = document.createElement("label"); - // input (text) - var editInput = document.createElement("input"); - // button.edit - var editButton = document.createElement("button"); - // button.delete - var deleteButton = document.createElement("button"); - - //Each element needs modified - - checkBox.type = "checkBox"; - editInput.type = "text"; - - editButton.innerText = "Edytuj"; - editButton.className = "edit"; - deleteButton.innerText = "Usuń"; - deleteButton.className = "delete"; - - label.innerText = taskString; - - // Each element needs appending - listItem.appendChild(checkBox); - listItem.appendChild(label); - listItem.appendChild(editInput); - listItem.appendChild(editButton); - listItem.appendChild(deleteButton); - - return listItem; -} - - -//Add a new task -var addTask = function () { - console.log("Add Task..."); - //Create a new list item with the text from the #new-task: - var listItem = createNewTaskElement(taskInput.value); - //Append listItem to incompleteTaskHolder - incompleteTasksHolder.appendChild(listItem); - bindTaskEvents(listItem, taskCompleted); - taskInput.value = ""; -} - -//Edit an existing task -var editTask = function () { - console.log("Edit Task..."); - - var listItem = this.parentNode; - - var editInput = listItem.querySelector("input[type=text]"); - var label = listItem.querySelector("label"); - - var containsClass = listItem.classList.contains("editMode"); - - - // if class of the parent is .editMode - if (containsClass) { - //Switch from .editMode - //label text become the input's value - label.innerText = editInput.value; - } else { - //Switch to .editMode - //input value becomes the labels text - editInput.value = label.innerText; - } - //Toggle .editMode on the parent - listItem.classList.toggle("editMode"); -} - -//Delete an existing task -var deleteTask = function () { - console.log("Delete Task..."); - //Remove the parent list item from the ul - var listItem = this.parentNode; - var ul = listItem.parentNode; - - ul.removeChild(listItem); -} - -//Mark a task as complete -var taskCompleted = function () { - console.log("Task Complete..."); - //When the Checkbox is checked - //Append the task list item to the #completed-tasks ul - var listItem = this.parentNode; - completedTasksHolder.appendChild(listItem); - bindTaskEvents(listItem, taskIncomplete); -} - - -//Mark a task as incomplete -var taskIncomplete = function () { - console.log("Task Incomplete..."); - //When the checkbox is unchecked appendTo #incomplete-tasks - var listItem = this.parentNode; - incompleteTasksHolder.appendChild(listItem); - bindTaskEvents(listItem, taskCompleted); -} - - -//Set the click handler to the addTask function -addButton.addEventListener("click", addTask); - - -var bindTaskEvents = function (taskListItem, checkBoxEventHandler) { - console.log("Bind List item events"); - // select listitems chidlren - var checkBox = taskListItem.querySelector('input[type="checkbox"]'); - var editButton = taskListItem.querySelector("button.edit"); - var deleteButton = taskListItem.querySelector("button.delete"); - //bind editTask to edit button - editButton.onclick = editTask; - //bind deleteTask to delete button - deleteButton.onclick = deleteTask; - //bind checkBoxEventHandler to checkbox - checkBox.onchange = checkBoxEventHandler; - -} - -//cycle over incompleteTaskHolder ul list items -for (var i = 0; i < incompleteTasksHolder.children.length; i++) { - //bind events to list item's children (taskCompleted) - bindTaskEvents(incompleteTasksHolder.children[i], taskCompleted); -} - -//cycle over completedTaskHolder ul list items -for (var i = 0; i < completedTasksHolder.children.length; i++) { - //bind events to list item's children (taskCompleted) - bindTaskEvents(completedTasksHolder.children[i], taskIncomplete); -} - - - - - - - - - diff --git a/frontend/logged_organiser/panel_organizatora/style.css b/frontend/logged_organiser/panel_organizatora/style.css deleted file mode 100644 index 9c5c1b4..0000000 --- a/frontend/logged_organiser/panel_organizatora/style.css +++ /dev/null @@ -1,72 +0,0 @@ -@import "../../_global/header.css"; - -body { - margin: 0; -} - - -.container { - height: 100%; - width: 100%; - display: flex; - justify-content: center; - -} - -.eventHeader { - text-align: center; - padding-top: 5px; - padding-bottom: 5px; -} - -.event { - background-color: #0f64f2; - color: white; - border-style: solid; - border-width: 2px; - margin-top: 25px; - margin-right: 25px; - flex-direction: column; - flex-wrap: wrap; - height: auto; - - -} - -.eventInside { - background-color: white; - color: #4C8BF5; - height: auto; - border: solid; - border-color: lightgray; - padding: 10px; - -} - -.eventInside>p { - color: lightgray; -} - -.myButton { - background-color: #4C8BF5; - border-radius: 28px; - border: 1px solid #4C8BF5; - display: inline-block; - cursor: pointer; - color: #ffffff; - font-family: Arial; - font-size: 9px; - padding: 8px 13px; - text-decoration: none; -} - -.dot { - height: 30px; - width: 30px; - color: white; - background-color: skyblue; - border-radius: 50%; - display: flex; - justify-content: center; - align-items: center; -} diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/drabinka/index.html b/frontend/logged_user/_main page/pojedynczy_turniej/drabinka/index.html deleted file mode 100644 index e7c705c..0000000 --- a/frontend/logged_user/_main page/pojedynczy_turniej/drabinka/index.html +++ /dev/null @@ -1,621 +0,0 @@ - - - - - - - - Padel Tournaments System - - - - - - - -
-
- -
- -
- -
- - - - -
- -
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • - - -
  •  
  • -
  • - Gracjan Wojciechowski
    - Maurycy Błaszczyk -
  • - -
  •  
  • - -
  • - Marcin Szewczyk
    - Martin Marciniak - -
  • -
  •  
  • -
  • - Patryk Kołodziej
    - Emil Kaczmarczyk -
  • - -
  •  
  • - -
  • - Dorian Jasiński
    - Dawid Borkowski -
  • -
  •  
  • -
  • - Emanuel Czerwiński
    - Bartłomiej Michalak -
  • - -
  •  
  • - -
  • - Anatol Piotrowski
    - Filip Pawlak -
  • -
  •  
  • - -
  • - Aleksander Pietrzak
    - Olaf Górecki -
  • - -
  •  
  • - -
  • - Kryspin Ostrowski
    - Bartłomiej Baranowski -
  • -
  •  
  • -
  • - Janusz Kwiatkowski
    - Kamil Szulc -
  • - -
  •  
  • - -
  • - Kryspin Sokołowski
    - Roman Jankowski -
  • -
  •  
  • -
  • - Oktawian Sikora
    - Marcel Borkowski -
  • - -
  •  
  • - -
  • - Jerzy Stępień
    - Alojzy Witkowski -
  • -
  •  
  • -
  • - Olaf Rutkowski
    - Klaudiusz Chmielewski -
  • - -
  •  
  • - -
  • - Jędrzej Wróblewski
    - Oskar Kowalski -
  • -
  •  
  • -
  • - Jarosław Cieślak
    - Kamil Piotrowski -
  • - -
  •  
  • -
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
  • - Marcin Szewczyk
    - Martin Marciniak -
  • - -
  •  
  • - -
  • - Emanuel Czerwiński
    - Bartłomiej Michalak -
  • -
  •  
  • -
  • - Anatol Piotrowski
    - Filip Pawlak -
  • - -
  •  
  • - -
  • - Kryspin Ostrowski
    - Bartłomiej Baranowski -
  • -
  •  
  • -
  • - Kryspin Sokołowski
    - Roman Jankowski -
  • - -
  •  
  • - -
  • - Jerzy Stępień
    - Alojzy Witkowski -
  • -
  •  
  • -
  • - Jędrzej Wróblewski
    - Oskar Kowalski -
  • - -
  •  
  • -
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
  • - Emanuel Czerwiński
    - Bartłomiej Michalak -
  • - -
  •  
  • - -
  • - Kryspin Sokołowski
    - Roman Jankowski -
  • -
  •  
  • -
  • - Jędrzej Wróblewski
    - Oskar Kowalski -
  • - -
  •  
  • -
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
  • - Jędrzej Wróblewski
    - Oskar Kowalski -
  • - -
  •  
  • -
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
-
-
- - - -
-
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
  • - Jędrzej Wróblewski
    - Oskar Kowalski -
  • - -
  •  
  • -
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
-
-
- - - -
-
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
  • - Emanuel Czerwiński
    - Bartłomiej Michalak -
  • - -
  •  
  • - -
  • - Kryspin Sokołowski
    - Roman Jankowski -
  • -
  •  
  • -
  • - Jędrzej Wróblewski
    - Oskar Kowalski -
  • - -
  •  
  • -
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
  • - Jędrzej Wróblewski
    - Oskar Kowalski -
  • - -
  •  
  • -
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
-
-
- - - -
-
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
  • - Jędrzej Wróblewski
    - Oskar Kowalski -
  • - -
  •  
  • -
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
-
-
- - - -
-
- - -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
  • - Marcin Szewczyk
    - Martin Marciniak -
  • - -
  •  
  • - -
  • - Emanuel Czerwiński
    - Bartłomiej Michalak -
  • -
  •  
  • -
  • - Anatol Piotrowski
    - Filip Pawlak -
  • - -
  •  
  • - -
  • - Kryspin Ostrowski
    - Bartłomiej Baranowski -
  • -
  •  
  • -
  • - Kryspin Sokołowski
    - Roman Jankowski -
  • - -
  •  
  • - -
  • - Jerzy Stępień
    - Alojzy Witkowski -
  • -
  •  
  • -
  • - Jędrzej Wróblewski
    - Oskar Kowalski -
  • - -
  •  
  • -
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
  • - Emanuel Czerwiński
    - Bartłomiej Michalak -
  • - -
  •  
  • - -
  • - Kryspin Sokołowski
    - Roman Jankowski -
  • -
  •  
  • -
  • - Jędrzej Wróblewski
    - Oskar Kowalski -
  • - -
  •  
  • -
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
  • - Jędrzej Wróblewski
    - Oskar Kowalski -
  • - -
  •  
  • -
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
-
-
- - - -
-
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
  • - Jędrzej Wróblewski
    - Oskar Kowalski -
  • - -
  •  
  • -
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
-
-
- - - -
-
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
  • - Emanuel Czerwiński
    - Bartłomiej Michalak -
  • - -
  •  
  • - -
  • - Kryspin Sokołowski
    - Roman Jankowski -
  • -
  •  
  • -
  • - Jędrzej Wróblewski
    - Oskar Kowalski -
  • - -
  •  
  • -
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
  • - Jędrzej Wróblewski
    - Oskar Kowalski -
  • - -
  •  
  • -
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
-
-
- - - -
-
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
  • - Jędrzej Wróblewski
    - Oskar Kowalski -
  • - -
  •  
  • -
- -
    -
  •  
  • - -
  • - Jędrzej Kubiak
    - Borys Kamiński -
  • -
  •  
  • -
-
-
-
- - - - \ No newline at end of file diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/drabinka/style.css b/frontend/logged_user/_main page/pojedynczy_turniej/drabinka/style.css deleted file mode 100644 index 3b1177a..0000000 --- a/frontend/logged_user/_main page/pojedynczy_turniej/drabinka/style.css +++ /dev/null @@ -1,37 +0,0 @@ -@import "css/li.css"; -@import "css/collapsible.css"; -@import "css/round.css"; -@import "../../../../_global/header.css"; - - -body { - margin: 0; - /*padding: 10px;*/ - /*line-height: 1.4em;*/ -} - -.dot { - height: 30px; - width: 30px; - color: white; - background-color: skyblue; - border-radius: 50%; - display: flex; - justify-content: center; - align-items: center; -} - -.container { - display: flex; - flex-direction: column; - align-items: center; - - height: 100%; - width: 100%; - justify-content: flex-end; -} - -main { - display: flex; - flex-direction: row; -} \ No newline at end of file diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/index.html b/frontend/logged_user/_main page/pojedynczy_turniej/index.html deleted file mode 100644 index 5be6f84..0000000 --- a/frontend/logged_user/_main page/pojedynczy_turniej/index.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - Padel Tournaments System - - - - - -
-
- -
- -
- -
- -
-
- -
- -
-
-

Turniej majowy 2022

-

Propadel, Warszawa
- 13/05/2022 do 15/05/2022

-
-
- -
- -
- -
- -
- -
- -
- -
-
- - - \ No newline at end of file diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/style.css b/frontend/logged_user/_main page/pojedynczy_turniej/style.css deleted file mode 100644 index 72408e1..0000000 --- a/frontend/logged_user/_main page/pojedynczy_turniej/style.css +++ /dev/null @@ -1,76 +0,0 @@ -@import "../../../_global/header.css"; -@import "css/tournament_detail_header.css"; -@import "css/bookmarks.css"; - -/*0 layer*/ -body { - background-color: #EBEBEB; - margin: 0; -} - -/*1'st layer*/ -.container { - height: 100%; - width: 100%; - display: flex; - justify-content: flex-end; - flex-flow: row wrap; - background-image: url(back.jpg); -} - -.mainInfoBox { - height: 25vh; - width: 100%; - background-color: #0B4D39; -} - -/*2'nd layer*/ -.form { - /*Alignment*/ - margin: auto; - width: 50%; - height: 75vh; - - /*Inside*/ - padding-left: 40px; - padding-top: 15px; - - /*Visual*/ - background-color: #FFFFFF; - - /*Others*/ - justify-content: center; - align-items: center; -} - -.bookmarks { - /*Alignment*/ - margin: auto; - width: 50%; - height: 5vh; - - /*Others*/ - justify-content: center; - align-items: center; -} - -/*Elements*/ -.descriptor { - /* Size */ - left: 254px; - top: 554px; - - /* Alignment */ - margin-bottom: 0; - margin-top: 0; - display: flex; - - align-items: center; - - /* Text */ - font-family: 'Montserrat', serif; - font-size: 20px; - line-height: 42px; - color: #000000; - -} diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/zapisy/index.html b/frontend/logged_user/_main page/pojedynczy_turniej/zapisy/index.html deleted file mode 100644 index bce9e4a..0000000 --- a/frontend/logged_user/_main page/pojedynczy_turniej/zapisy/index.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - Padel Tournaments System - - - - - - - -
-
- -
- -
- -
- -
- -
- - - -
-
- Siemanko -
-
- - - -
-
- Hejo -
-
- -
- - - - - - \ No newline at end of file diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/zapisy/style.css b/frontend/logged_user/_main page/pojedynczy_turniej/zapisy/style.css deleted file mode 100644 index ec06f54..0000000 --- a/frontend/logged_user/_main page/pojedynczy_turniej/zapisy/style.css +++ /dev/null @@ -1,59 +0,0 @@ -@import "css/li.css"; -@import "css/collapsible.css"; -@import "css/round.css"; -@import "../../../../_global/header.css"; -@import "bookmarks.css"; - - -body { - margin: 0; - /*padding: 10px;*/ - /*line-height: 1.4em;*/ -} - -.container { - display: flex; - flex-direction: column; - align-items: center; - flex-flow: row wrap; - - height: 100%; - width: 100%; - justify-content: flex-end; -} - -main { - display: flex; - flex-direction: row; -} - -.form { - /*Alignment*/ - margin: auto; - width: 50%; - height: 75vh; - - /*Inside*/ - padding-left: 40px; - padding-top: 15px; - - /*Visual*/ - background-color: #FFFFFF; - - /*Others*/ - justify-content: center; - align-items: center; -} - - -/*Po zalogowaniu*/ -.dot { - height: 30px; - width: 30px; - color: white; - background-color: skyblue; - border-radius: 50%; - display: flex; - justify-content: center; - align-items: center; -} \ No newline at end of file diff --git a/frontend/logged_user/_main page/style.css b/frontend/logged_user/_main page/style.css deleted file mode 100644 index 0b1f10c..0000000 --- a/frontend/logged_user/_main page/style.css +++ /dev/null @@ -1,59 +0,0 @@ -@import "../../_global/header.css"; -@import "pojedynczy_turniej/css/single_tournament.css"; -@import "pojedynczy_turniej/css/settings.css"; - -/*main*/ -body { - margin: 0; -} - -header { - margin: 0; -} - - -.container { - height: 100%; - width: 100%; - display: flex; - justify-content: flex-end; -} - -/*2'nd layer*/ -.searchBox { - height: auto; - width: 5vh; - float: left; - /*margin-right: 1%;*/ - - padding: 1%; - border: 1px #AFAFAF solid; -} - -.contentBox { - height: 100%; - width: 95%; - float: right; - position: relative; -} - -/*3'rd layer*/ -.filterBox { - height: 10vh; - width: 100%; - background-color: #C0C0C0; -} - -.settingsBox { - height: 5vh; - width: 100%; - border: 1px #AFAFAF solid; - display: flex; -} - -/*items*/ -.search { - display: block; - margin-left: auto; - margin-right: auto; -} \ No newline at end of file diff --git a/frontend/logged_user/app.js b/frontend/logged_user/app.js deleted file mode 100644 index 2ae59b2..0000000 --- a/frontend/logged_user/app.js +++ /dev/null @@ -1,102 +0,0 @@ -async function showTournaments() { - let url = 'https://dragonmaster.pl/inz/tournaments'; - try { - let res = await fetch(url); - return await res.json(); - } catch (error) { - console.log(error); - } -} - -function saveIdTournament(id) { - localStorage.setItem('tournamentId', id); -} - -async function renderTournaments() { - let tournaments = await showTournaments(); - let html = ''; - tournaments.forEach(tournament => { - let htmlSegment = `
-
- -
-
-
-

${tournament.name}

- ${tournament.place} - ${tournament.from} do ${tournament.to} - -
-
-
- `; - html += htmlSegment; - }); - - let container = document.querySelector('.tournament-list'); - container.innerHTML = html; -} - -function logout() { - localStorage.clear(); - location.reload(); -} - -function logoutVisibility() { - if (localStorage.getItem("token") !== null) { - document.getElementById("logout").style.display = ""; - } - else { - document.getElementById("logout").style.display = "none"; - - } - -} - - -function loginVisibility() { - if (localStorage.getItem("token") !== null) { - document.getElementById("login").style.display = "none"; - } - else { - document.getElementById("login").style.display = ""; - - } -} - - -function checkRole() { - if (localStorage.getItem("token") !== null) { - - fetch('https://dragonmaster.pl/inz/user', { - headers: { - Authorization: ("Bearer " + localStorage.getItem("token")) - } - }) - .then(res => res.json()) - .then(json => { - if (json['role'] == '1') { - document.getElementById("creator").style.display = "none"; - } - else { - document.getElementById("creator").style.display = ''; - } - }) - } - else { - document.getElementById("creator").style.display = "none"; - } - -} - -// function creatorVisibility() { -// if (localStorage.getItem("token") == null) { -// document.getElementById("creator").style.display = "none"; -// } -// else if (checkRole()) { -// document.getElementById("creator").style.display = "none"; -// } -// else { -// document.getElementById("creator").style.display = ""; -// } -// } \ No newline at end of file diff --git a/frontend/logged_user/kontakt/style.css b/frontend/logged_user/kontakt/style.css deleted file mode 100644 index f15795c..0000000 --- a/frontend/logged_user/kontakt/style.css +++ /dev/null @@ -1,14 +0,0 @@ -@import "../../_global/header.css"; - -body { - margin: 0; -} - - -.container { - height: 100%; - width: 100%; - display: flex; - justify-content: center; - -} diff --git a/frontend/logged_user/logowanie/app.js b/frontend/logged_user/logowanie/app.js deleted file mode 100644 index 4ddef93..0000000 --- a/frontend/logged_user/logowanie/app.js +++ /dev/null @@ -1,77 +0,0 @@ - - -function checkRole() { - fetch('https://dragonmaster.pl/inz/user', { - headers: { - Authorization: ("Bearer " + localStorage.getItem("token")) - } - }) - .then(res => res.json()) - .then(json => { - if (json['role'] == '1') { - window.location.href = '../index.html' - } - else { - window.location.href = '../../logged_organiser/panel_organizatora/dodawanie turnieju/index.html' - } - }) - -} - -function login() { - localStorage.clear() - fetch('https://dragonmaster.pl/inz/user/login', { - method: "POST", - headers: { - 'Content-type': 'application/json' - }, - body: JSON.stringify( - { - "username": document.getElementById("loginusername").value, - "password": document.getElementById("loginpassword").value - } - ) - } - ) - .then(res => { - if (res.ok) { - // alert("Teraz mozesz się zalogować!") - } - else { console.log("Coś poszło nie tak!") } - return res - }) - .then(res => res.json()) - .then(data => { - console.log(data['token']?.length > 0 ? localStorage.setItem("token", data['token']) : alert("Błędne dane!")) - checkRole(); - }) - .catch(error => console.log(error)) -} - - -// function checkRole() { -// fetch('https://dragonmaster.pl/inz/user', { -// method: "GET", -// headers: { -// 'Content-type': 'application/json' -// }, -// body: JSON.stringify( -// { -// "token": document.getElementById("loginusername").value, -// "password": document.getElementById("loginpassword").value -// } -// ) -// } -// ) -// .then(res => { -// if (res.ok) { -// alert("Teraz mozesz się zalogować!") -// } -// else { console.log("Coś poszło nie tak!") } -// return res -// }) -// .then(res => res.json()) -// .then(data => console.log(data['token']?.length > 0 ? localStorage.setItem("token", data['token']) : 'niedziaua')) -// .catch(error => console.log(error)) -// .then(token1 => token = token1) -// } \ No newline at end of file diff --git a/frontend/logged_user/logowanie/index.html b/frontend/logged_user/logowanie/index.html deleted file mode 100644 index 12c44af..0000000 --- a/frontend/logged_user/logowanie/index.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - Paddle tournament system - - - - -
-
- -
- -
- - - - \ No newline at end of file diff --git a/frontend/logged_user/logowanie/rejestracja/index.html b/frontend/logged_user/logowanie/rejestracja/index.html deleted file mode 100644 index 6a5d8da..0000000 --- a/frontend/logged_user/logowanie/rejestracja/index.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - Padel Tournaments System - - - - - - -
-
-
-

Rejestracja

- - - - -
- - - -
- - - -
- - - -
- - - - -
- - - - - - - - -
- Zapomniałeś hasła? -
- - Masz już konto? Zaloguj się -
-
- -
- - - - - \ No newline at end of file diff --git a/frontend/logged_user/logowanie/rejestracja/myscript.js b/frontend/logged_user/logowanie/rejestracja/myscript.js deleted file mode 100644 index f1185e5..0000000 --- a/frontend/logged_user/logowanie/rejestracja/myscript.js +++ /dev/null @@ -1,44 +0,0 @@ -//Password toggle -const togglePassword = document.querySelector("#togglePassword"); -const password = document.querySelector("#regpassword"); - -togglePassword.addEventListener("click", function () { - // toggle the type attribute - const type = password.getAttribute("type") === "password" ? "text" : "password"; - password.setAttribute("type", type); - - // toggle the icon - this.classList.toggle("bi-eye"); -}); - - -function register() { - fetch('https://dragonmaster.pl/inz/user/create', { - method: "PUT", - headers: { - 'Content-type': 'application/json' - }, - body: JSON.stringify( - { - "username": document.getElementById("regusername").value, - "name": document.getElementById("regname").value, - "surname": document.getElementById("regsurname").value, - "password": document.getElementById("regpassword").value, - "mail": document.getElementById("regmail").value, - "phone": document.getElementById("regphone").value - } - ) - } - ) - .then(res => { - if (res.ok) { - alert("Teraz mozesz się zalogować!") - window.location.href = '../index.html' - } - else { console.log("Coś poszło nie tak!") } - return res - }) - .then(res => res.json()) - .then(data => console.log(data)) - .catch(error => console.log(error)) -} \ No newline at end of file diff --git a/frontend/logged_user/logowanie/rejestracja/style.css b/frontend/logged_user/logowanie/rejestracja/style.css deleted file mode 100644 index 78922f1..0000000 --- a/frontend/logged_user/logowanie/rejestracja/style.css +++ /dev/null @@ -1,61 +0,0 @@ -html { - background-image: url(src/mezczyzna_padel.jpg); - background-attachment: fixed; - background-size: cover; -} - -.container { - display: flex; - height: 100vh; - justify-content: center; - align-items: center; -} - -.form { - width: 50%; - height: 40%; - background-color: #EBEBEB; - display: flex; - ; - justify-content: center; - align-items: center; -} - -.myButton { - background-color: #14A6F9; - border-radius: 28px; - display: inline-block; - cursor: pointer; - color: #ffffff; - font-family: Arial; - font-size: 12px; - padding: 5px 15px; - width: 50%; - align-content: center; -} - -/* ----- -SVG Icons - svgicons.sparkk.fr ------ */ - -.svg-icon { - width: 1em; - height: 1em; - /*background-color: #EBEBEB;*/ -} - -.svg-icon path, -.svg-icon polygon, -.svg-icon rect { - fill: #4691f6; -} - -.svg-icon circle { - stroke: #4691f6; - stroke-width: 1; -} - -form i { - margin-left: -30px; - cursor: pointer; -} \ No newline at end of file diff --git a/frontend/logged_user/logowanie/style.css b/frontend/logged_user/logowanie/style.css deleted file mode 100644 index b6189b5..0000000 --- a/frontend/logged_user/logowanie/style.css +++ /dev/null @@ -1,58 +0,0 @@ -/* * { - border: 2px solid red; - padding: 0; - margin: 0; -} */ - -input { - text-align: left; -} - -html { - background-image: url(tlo_logowanie.png); - background-attachment: fixed; - background-size: cover; -} - -* { - /* border: 2px solid red; */ - box-sizing: border-box; - text-align: center; -} - -.form { - width: 50%; - height: 40%; - background-color: #EBEBEB; - display: flex; - ; - justify-content: center; - align-items: center; -} - -.login { - width: 40%; - display: flex; - flex-direction: column; -} - -.container { - display: flex; - height: 100vh; - justify-content: center; - align-items: center; -} - - - -.myButton { - background-color: #14A6F9; - border-radius: 28px; - display: inline-block; - cursor: pointer; - color: #ffffff; - font-family: Arial; - font-size: 12px; - padding: 5px 15px; - width: 50%; -} \ No newline at end of file diff --git a/frontend/logged_user/ranking/style.css b/frontend/logged_user/ranking/style.css deleted file mode 100644 index f15795c..0000000 --- a/frontend/logged_user/ranking/style.css +++ /dev/null @@ -1,14 +0,0 @@ -@import "../../_global/header.css"; - -body { - margin: 0; -} - - -.container { - height: 100%; - width: 100%; - display: flex; - justify-content: center; - -} diff --git a/frontend/logged_user/_main page/cup.svg b/frontend/normal_user/_main page/cup.svg similarity index 100% rename from frontend/logged_user/_main page/cup.svg rename to frontend/normal_user/_main page/cup.svg diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/app.js b/frontend/normal_user/_main page/pojedynczy_turniej/app.js similarity index 100% rename from frontend/logged_user/_main page/pojedynczy_turniej/app.js rename to frontend/normal_user/_main page/pojedynczy_turniej/app.js diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/back.jpg b/frontend/normal_user/_main page/pojedynczy_turniej/back.jpg similarity index 100% rename from frontend/logged_user/_main page/pojedynczy_turniej/back.jpg rename to frontend/normal_user/_main page/pojedynczy_turniej/back.jpg diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/css/bookmarks.css b/frontend/normal_user/_main page/pojedynczy_turniej/css/bookmarks.css similarity index 100% rename from frontend/logged_user/_main page/pojedynczy_turniej/css/bookmarks.css rename to frontend/normal_user/_main page/pojedynczy_turniej/css/bookmarks.css diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/css/settings.css b/frontend/normal_user/_main page/pojedynczy_turniej/css/settings.css similarity index 100% rename from frontend/logged_user/_main page/pojedynczy_turniej/css/settings.css rename to frontend/normal_user/_main page/pojedynczy_turniej/css/settings.css diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/css/single_tournament.css b/frontend/normal_user/_main page/pojedynczy_turniej/css/single_tournament.css similarity index 96% rename from frontend/logged_user/_main page/pojedynczy_turniej/css/single_tournament.css rename to frontend/normal_user/_main page/pojedynczy_turniej/css/single_tournament.css index 6ba692a..6ad469c 100644 --- a/frontend/logged_user/_main page/pojedynczy_turniej/css/single_tournament.css +++ b/frontend/normal_user/_main page/pojedynczy_turniej/css/single_tournament.css @@ -36,6 +36,7 @@ width: 90%; height: 100%; float: right; + position: relative; } .tournamentData { @@ -56,6 +57,8 @@ padding: 6px 15px; gap: 10px; + margin-top: 1%; + /*position: absolute;*/ width: 73px; height: 29px; diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/css/tournament_detail_header.css b/frontend/normal_user/_main page/pojedynczy_turniej/css/tournament_detail_header.css similarity index 100% rename from frontend/logged_user/_main page/pojedynczy_turniej/css/tournament_detail_header.css rename to frontend/normal_user/_main page/pojedynczy_turniej/css/tournament_detail_header.css diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/drabinka/collapsible.js b/frontend/normal_user/_main page/pojedynczy_turniej/drabinka/collapsible.js similarity index 100% rename from frontend/logged_user/_main page/pojedynczy_turniej/drabinka/collapsible.js rename to frontend/normal_user/_main page/pojedynczy_turniej/drabinka/collapsible.js diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/zapisy/bookmarks.css b/frontend/normal_user/_main page/pojedynczy_turniej/drabinka/css/bookmarks.css similarity index 100% rename from frontend/logged_user/_main page/pojedynczy_turniej/zapisy/bookmarks.css rename to frontend/normal_user/_main page/pojedynczy_turniej/drabinka/css/bookmarks.css diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/drabinka/css/collapsible.css b/frontend/normal_user/_main page/pojedynczy_turniej/drabinka/css/collapsible.css similarity index 100% rename from frontend/logged_user/_main page/pojedynczy_turniej/drabinka/css/collapsible.css rename to frontend/normal_user/_main page/pojedynczy_turniej/drabinka/css/collapsible.css diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/drabinka/css/li.css b/frontend/normal_user/_main page/pojedynczy_turniej/drabinka/css/li.css similarity index 100% rename from frontend/logged_user/_main page/pojedynczy_turniej/drabinka/css/li.css rename to frontend/normal_user/_main page/pojedynczy_turniej/drabinka/css/li.css diff --git a/frontend/logged_user/_main page/pojedynczy_turniej/drabinka/css/round.css b/frontend/normal_user/_main page/pojedynczy_turniej/drabinka/css/round.css similarity index 100% rename from frontend/logged_user/_main page/pojedynczy_turniej/drabinka/css/round.css rename to frontend/normal_user/_main page/pojedynczy_turniej/drabinka/css/round.css diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/index.html b/frontend/normal_user/_main page/pojedynczy_turniej/drabinka/index.html similarity index 99% rename from frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/index.html rename to frontend/normal_user/_main page/pojedynczy_turniej/drabinka/index.html index aa8b808..db15902 100644 --- a/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/index.html +++ b/frontend/normal_user/_main page/pojedynczy_turniej/drabinka/index.html @@ -33,7 +33,7 @@ diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/style.css b/frontend/normal_user/_main page/pojedynczy_turniej/drabinka/style.css similarity index 100% rename from frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/style.css rename to frontend/normal_user/_main page/pojedynczy_turniej/drabinka/style.css diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/index.html b/frontend/normal_user/_main page/pojedynczy_turniej/index.html similarity index 96% rename from frontend/unlogged_user/_main page/pojedynczy_turniej/index.html rename to frontend/normal_user/_main page/pojedynczy_turniej/index.html index 5be6f84..fdafce7 100644 --- a/frontend/unlogged_user/_main page/pojedynczy_turniej/index.html +++ b/frontend/normal_user/_main page/pojedynczy_turniej/index.html @@ -50,7 +50,7 @@
diff --git a/frontend/logged_user/kontakt/index.html b/frontend/normal_user/kontakt/index.html similarity index 100% rename from frontend/logged_user/kontakt/index.html rename to frontend/normal_user/kontakt/index.html diff --git a/frontend/unlogged_user/kontakt/style.css b/frontend/normal_user/kontakt/style.css similarity index 100% rename from frontend/unlogged_user/kontakt/style.css rename to frontend/normal_user/kontakt/style.css diff --git a/frontend/unlogged_user/logowanie/app.js b/frontend/normal_user/logowanie/app.js similarity index 95% rename from frontend/unlogged_user/logowanie/app.js rename to frontend/normal_user/logowanie/app.js index 4ddef93..b5d799e 100644 --- a/frontend/unlogged_user/logowanie/app.js +++ b/frontend/normal_user/logowanie/app.js @@ -12,7 +12,7 @@ function checkRole() { window.location.href = '../index.html' } else { - window.location.href = '../../logged_organiser/panel_organizatora/dodawanie turnieju/index.html' + window.location.href = '../../panel_organizatora/dodawanie turnieju/index.html' } }) diff --git a/frontend/unlogged_user/logowanie/rejestracja/css/register_form.css b/frontend/normal_user/logowanie/css/register_form.css similarity index 100% rename from frontend/unlogged_user/logowanie/rejestracja/css/register_form.css rename to frontend/normal_user/logowanie/css/register_form.css diff --git a/frontend/unlogged_user/logowanie/index.html b/frontend/normal_user/logowanie/index.html similarity index 93% rename from frontend/unlogged_user/logowanie/index.html rename to frontend/normal_user/logowanie/index.html index 633c71c..9bd0463 100644 --- a/frontend/unlogged_user/logowanie/index.html +++ b/frontend/normal_user/logowanie/index.html @@ -14,6 +14,7 @@
+
diff --git a/frontend/unlogged_user/logowanie/rejestracja/toggle.js b/frontend/normal_user/logowanie/js/toggle.js similarity index 100% rename from frontend/unlogged_user/logowanie/rejestracja/toggle.js rename to frontend/normal_user/logowanie/js/toggle.js diff --git a/frontend/logged_user/logowanie/rejestracja/api.js b/frontend/normal_user/logowanie/rejestracja/api.js similarity index 100% rename from frontend/logged_user/logowanie/rejestracja/api.js rename to frontend/normal_user/logowanie/rejestracja/api.js diff --git a/frontend/unlogged_user/logowanie/rejestracja/index.html b/frontend/normal_user/logowanie/rejestracja/index.html similarity index 83% rename from frontend/unlogged_user/logowanie/rejestracja/index.html rename to frontend/normal_user/logowanie/rejestracja/index.html index 7b700a6..5107f3b 100644 --- a/frontend/unlogged_user/logowanie/rejestracja/index.html +++ b/frontend/normal_user/logowanie/rejestracja/index.html @@ -17,6 +17,7 @@
+
@@ -30,28 +31,28 @@
- +
- +
- +
- +
- +
- + diff --git a/frontend/unlogged_user/logowanie/rejestracja/myscript.js b/frontend/normal_user/logowanie/rejestracja/myscript.js similarity index 100% rename from frontend/unlogged_user/logowanie/rejestracja/myscript.js rename to frontend/normal_user/logowanie/rejestracja/myscript.js diff --git a/frontend/unlogged_user/logowanie/rejestracja/style.css b/frontend/normal_user/logowanie/rejestracja/style.css similarity index 93% rename from frontend/unlogged_user/logowanie/rejestracja/style.css rename to frontend/normal_user/logowanie/rejestracja/style.css index f735252..4bb5fa6 100644 --- a/frontend/unlogged_user/logowanie/rejestracja/style.css +++ b/frontend/normal_user/logowanie/rejestracja/style.css @@ -1,9 +1,9 @@ @import "../../../_global/style.css"; -@import "css/register_form.css"; +@import "../css/register_form.css"; /*Layer 0*/ html { - background-image: url(src/mezczyzna_padel.jpg); + background-image: url(../src/mezczyzna_padel.jpg); background-attachment: fixed; background-size: cover; @@ -26,7 +26,7 @@ html { /*Layer 2*/ .form { - width: 50%; + width: 40%; height: 60%; background-color: #EBEBEB; display: flex; @@ -51,7 +51,7 @@ html { } .registerBox { - width: 60%; + width: 50%; height: 60%; display: flex; flex-direction: column; @@ -117,4 +117,8 @@ a:hover { /* selected link */ a:active { color: #000000; +} + +#closelog { + float: right; } \ No newline at end of file diff --git a/frontend/logged_user/logowanie/rejestracja/src/lock.svg b/frontend/normal_user/logowanie/src/lock.svg similarity index 100% rename from frontend/logged_user/logowanie/rejestracja/src/lock.svg rename to frontend/normal_user/logowanie/src/lock.svg diff --git a/frontend/logged_user/logowanie/rejestracja/src/mail.svg b/frontend/normal_user/logowanie/src/mail.svg similarity index 100% rename from frontend/logged_user/logowanie/rejestracja/src/mail.svg rename to frontend/normal_user/logowanie/src/mail.svg diff --git a/frontend/logged_user/logowanie/rejestracja/src/mezczyzna_padel.jpg b/frontend/normal_user/logowanie/src/mezczyzna_padel.jpg similarity index 100% rename from frontend/logged_user/logowanie/rejestracja/src/mezczyzna_padel.jpg rename to frontend/normal_user/logowanie/src/mezczyzna_padel.jpg diff --git a/frontend/logged_user/logowanie/rejestracja/src/person.svg b/frontend/normal_user/logowanie/src/person.svg similarity index 100% rename from frontend/logged_user/logowanie/rejestracja/src/person.svg rename to frontend/normal_user/logowanie/src/person.svg diff --git a/frontend/logged_user/logowanie/rejestracja/src/phone.svg b/frontend/normal_user/logowanie/src/phone.svg similarity index 100% rename from frontend/logged_user/logowanie/rejestracja/src/phone.svg rename to frontend/normal_user/logowanie/src/phone.svg diff --git a/frontend/logged_user/logowanie/tlo_logowanie.png b/frontend/normal_user/logowanie/src/tlo_logowanie.png similarity index 100% rename from frontend/logged_user/logowanie/tlo_logowanie.png rename to frontend/normal_user/logowanie/src/tlo_logowanie.png diff --git a/frontend/normal_user/logowanie/src/x.svg b/frontend/normal_user/logowanie/src/x.svg new file mode 100644 index 0000000..0ed3171 --- /dev/null +++ b/frontend/normal_user/logowanie/src/x.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/frontend/unlogged_user/logowanie/style.css b/frontend/normal_user/logowanie/style.css similarity index 95% rename from frontend/unlogged_user/logowanie/style.css rename to frontend/normal_user/logowanie/style.css index b39766d..7a25fb2 100644 --- a/frontend/unlogged_user/logowanie/style.css +++ b/frontend/normal_user/logowanie/style.css @@ -2,7 +2,7 @@ /*Layer 0*/ html { - background-image: url(tlo_logowanie.png); + background-image: url(src/tlo_logowanie.png); background-attachment: fixed; background-size: cover; @@ -125,3 +125,6 @@ a:active { color: #000000; } +#closelog { + float: right; +} \ No newline at end of file diff --git a/frontend/logged_user/ranking/index.html b/frontend/normal_user/ranking/index.html similarity index 100% rename from frontend/logged_user/ranking/index.html rename to frontend/normal_user/ranking/index.html diff --git a/frontend/unlogged_user/ranking/style.css b/frontend/normal_user/ranking/style.css similarity index 100% rename from frontend/unlogged_user/ranking/style.css rename to frontend/normal_user/ranking/style.css diff --git a/frontend/delete.svg b/frontend/normal_user/src/delete.svg similarity index 100% rename from frontend/delete.svg rename to frontend/normal_user/src/delete.svg diff --git a/frontend/normal_user/src/dots.svg b/frontend/normal_user/src/dots.svg new file mode 100644 index 0000000..a2fb160 --- /dev/null +++ b/frontend/normal_user/src/dots.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/frontend/normal_user/src/trash.svg b/frontend/normal_user/src/trash.svg new file mode 100644 index 0000000..64e96e9 --- /dev/null +++ b/frontend/normal_user/src/trash.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/frontend/panel_organizatora/css/buttons.css b/frontend/panel_organizatora/css/buttons.css new file mode 100644 index 0000000..15b17fb --- /dev/null +++ b/frontend/panel_organizatora/css/buttons.css @@ -0,0 +1,35 @@ +.cancelButton { + /*Button alignment*/ + width: 25%; + height: 5%; + margin-left: 15%; + + + /*Button visual*/ + border-radius: 25px; + cursor: pointer; + background-color: #828282; + + /*Text*/ + font-family: Arial, serif; + font-size: 12px; + color: #ffffff; +} + + +.submitButton { + /*Button alignment*/ + width: 25%; + height: 5%; + + + /*Button visual*/ + border-radius: 25px; + cursor: pointer; + background-color: #007C36; + + /*Text*/ + font-family: Arial, serif; + font-size: 12px; + color: #ffffff; +} \ No newline at end of file diff --git a/frontend/logged_organiser/panel_organizatora/dodawanie turnieju/app.js b/frontend/panel_organizatora/dodawanie turnieju/app.js similarity index 100% rename from frontend/logged_organiser/panel_organizatora/dodawanie turnieju/app.js rename to frontend/panel_organizatora/dodawanie turnieju/app.js diff --git a/frontend/logged_organiser/panel_organizatora/edycja turnieju/index.html b/frontend/panel_organizatora/dodawanie turnieju/index.html similarity index 57% rename from frontend/logged_organiser/panel_organizatora/edycja turnieju/index.html rename to frontend/panel_organizatora/dodawanie turnieju/index.html index 401e698..008ed4e 100644 --- a/frontend/logged_organiser/panel_organizatora/edycja turnieju/index.html +++ b/frontend/panel_organizatora/dodawanie turnieju/index.html @@ -1,5 +1,6 @@ - + @@ -8,32 +9,34 @@ Padel Tournaments System +
- +
- -
.
-
.
-
+
+ Dodawanie turnieju +
-
Edycja turnieju

Nazwa Turnieju

diff --git a/frontend/panel_organizatora/dodawanie turnieju/style.css b/frontend/panel_organizatora/dodawanie turnieju/style.css new file mode 100644 index 0000000..998460b --- /dev/null +++ b/frontend/panel_organizatora/dodawanie turnieju/style.css @@ -0,0 +1,107 @@ +@import "../../_global/header.css"; +@import "../../_global/style.css"; +@import "../css/buttons.css"; +@import '~pretty-checkbox/src/pretty-checkbox.scss'; + + +/*0 layer*/ +body { + background-color: #EBEBEB; + margin: 0; +} + +/*1'st layer*/ +.container { + height: 100%; + width: 50%; + display: flex; + justify-content: center; + align-items: center; + margin: auto; + flex-wrap: wrap; +} + +/*2'nd layer*/ +.title { + width: 100%; + text-align: center; + font-size: 28px; + font-family: 'Montserrat', serif; + font-style: normal; + color: #282828; + font-weight: 600; + + margin-top: 2%; + margin-bottom: 2%; +} + +.form { + /*Alignment*/ + margin: auto; + width: 100%; + height: 100vh; + + /*Inside*/ + padding: 3% 5%; + + /*Visual*/ + background-color: #FFFFFF; + + /*Others*/ + justify-content: center; + align-items: center; +} + +/*Elements*/ +.descriptor { + + /* Alignment */ + margin-bottom: 0.5%; + margin-top: 2%; + + /* Text */ + font-family: 'Montserrat', serif; + font-size: 20px; + color: #828282; + +} + +.binaryButtonsBox { + width: 100%; + float: left; + + /* Alignment */ + margin-bottom: 0.5%; + margin-top: 2%; + /*display: flex;*/ + + align-items: center; + + /* Text */ + font-family: 'Montserrat', serif; + font-size: 20px; + font-weight: 600; + color: #828282; +} + +.binaryButtonsBox2 { + width: 100%; + float: left; + + /* Alignment */ + margin-bottom: 4%; + margin-top: 1%; + /*display: flex;*/ + + align-items: center; + + /* Text */ + font-family: 'Montserrat', serif; + font-size: 20px; + font-weight: 600; + color: #828282; +} + +.state { + /*background-color: #0B4D39;*/ +} \ No newline at end of file diff --git a/frontend/logged_organiser/panel_organizatora/edycja turnieju/app.js b/frontend/panel_organizatora/edycja turnieju/app.js similarity index 100% rename from frontend/logged_organiser/panel_organizatora/edycja turnieju/app.js rename to frontend/panel_organizatora/edycja turnieju/app.js diff --git a/frontend/logged_organiser/panel_organizatora/dodawanie turnieju/index.html b/frontend/panel_organizatora/edycja turnieju/index.html similarity index 57% rename from frontend/logged_organiser/panel_organizatora/dodawanie turnieju/index.html rename to frontend/panel_organizatora/edycja turnieju/index.html index 81e5b97..5e0a702 100644 --- a/frontend/logged_organiser/panel_organizatora/dodawanie turnieju/index.html +++ b/frontend/panel_organizatora/edycja turnieju/index.html @@ -1,5 +1,6 @@ - + @@ -8,32 +9,34 @@ Padel Tournaments System +
- +
- -
.
-
.
-
+
+ Edycja turnieju +
-
Dodawanie turnieju

Nazwa Turnieju

diff --git a/frontend/panel_organizatora/edycja turnieju/style.css b/frontend/panel_organizatora/edycja turnieju/style.css new file mode 100644 index 0000000..998460b --- /dev/null +++ b/frontend/panel_organizatora/edycja turnieju/style.css @@ -0,0 +1,107 @@ +@import "../../_global/header.css"; +@import "../../_global/style.css"; +@import "../css/buttons.css"; +@import '~pretty-checkbox/src/pretty-checkbox.scss'; + + +/*0 layer*/ +body { + background-color: #EBEBEB; + margin: 0; +} + +/*1'st layer*/ +.container { + height: 100%; + width: 50%; + display: flex; + justify-content: center; + align-items: center; + margin: auto; + flex-wrap: wrap; +} + +/*2'nd layer*/ +.title { + width: 100%; + text-align: center; + font-size: 28px; + font-family: 'Montserrat', serif; + font-style: normal; + color: #282828; + font-weight: 600; + + margin-top: 2%; + margin-bottom: 2%; +} + +.form { + /*Alignment*/ + margin: auto; + width: 100%; + height: 100vh; + + /*Inside*/ + padding: 3% 5%; + + /*Visual*/ + background-color: #FFFFFF; + + /*Others*/ + justify-content: center; + align-items: center; +} + +/*Elements*/ +.descriptor { + + /* Alignment */ + margin-bottom: 0.5%; + margin-top: 2%; + + /* Text */ + font-family: 'Montserrat', serif; + font-size: 20px; + color: #828282; + +} + +.binaryButtonsBox { + width: 100%; + float: left; + + /* Alignment */ + margin-bottom: 0.5%; + margin-top: 2%; + /*display: flex;*/ + + align-items: center; + + /* Text */ + font-family: 'Montserrat', serif; + font-size: 20px; + font-weight: 600; + color: #828282; +} + +.binaryButtonsBox2 { + width: 100%; + float: left; + + /* Alignment */ + margin-bottom: 4%; + margin-top: 1%; + /*display: flex;*/ + + align-items: center; + + /* Text */ + font-family: 'Montserrat', serif; + font-size: 20px; + font-weight: 600; + color: #828282; +} + +.state { + /*background-color: #0B4D39;*/ +} \ No newline at end of file diff --git a/frontend/unlogged_user/_main page/cup.svg b/frontend/unlogged_user/_main page/cup.svg deleted file mode 100644 index e93fe72..0000000 --- a/frontend/unlogged_user/_main page/cup.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/app.js b/frontend/unlogged_user/_main page/pojedynczy_turniej/app.js deleted file mode 100644 index dd8b14d..0000000 --- a/frontend/unlogged_user/_main page/pojedynczy_turniej/app.js +++ /dev/null @@ -1,62 +0,0 @@ -let tourId = localStorage.getItem("myElement") - -async function showTournaments() { - let url = 'https://dragonmaster.pl/inz/tournaments'; - try { - let res = await fetch(url); - return await res.json(); - } catch (error) { - console.log(error); - } -} - -// async function renderTournaments() { -// let tournaments = await showTournaments(); -// let html = ''; -// tournaments[1]; (tournament => { -// let htmlSegment = `

${tournament.id}

`; -// html += htmlSegment; -// }); - -// let container = document.querySelector('.form'); -// container.innerHTML = html; -// } - -async function renderTournaments() { - let tournaments = await showTournaments(); - let html = ''; - tournaments.forEach(tournament => { - if (`${tournament.id}` == localStorage.getItem("tournamentId")) { - let htmlSegment = ` -

${tournament.name}

-

${tournament.places}

- -

Wpisowe:

- ${tournament.entryFee} - -

Ranga:

- ${tournament.rang} - -

Kategorie:

- ${tournament.categotry} - -

Zapisy do:

- ${tournament.to} - -

Czy rankingowy:

- ${tournament.rang} - -

Dyrektor turnieju:

- ${tournament.director} - -

Dodatkowe informacje

- ${tournament.additionalInformations} - - `; - html += htmlSegment; - } - }); - - let container = document.querySelector('.form'); - container.innerHTML = html; -} diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/back.jpg b/frontend/unlogged_user/_main page/pojedynczy_turniej/back.jpg deleted file mode 100644 index c342651..0000000 Binary files a/frontend/unlogged_user/_main page/pojedynczy_turniej/back.jpg and /dev/null differ diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/css/settings.css b/frontend/unlogged_user/_main page/pojedynczy_turniej/css/settings.css deleted file mode 100644 index 0f65962..0000000 --- a/frontend/unlogged_user/_main page/pojedynczy_turniej/css/settings.css +++ /dev/null @@ -1,35 +0,0 @@ -.settingsWszystkie { - height: 100%; - width: 10%; - border: 1px #AFAFAF solid; - display: flex; - align-items: center; - justify-content: center; -} - -.settingsMoje { - height: 100%; - width: 10%; - border: 1px #AFAFAF solid; - display: flex; - align-items: center; - justify-content: center; -} - -.settingsKafle { - height: 100%; - width: 10%; - float: right; - - text-align: center; - border: 1px #AFAFAF solid; -} - -.settingsLista { - height: 100%; - width: 10%; - float: right; - - text-align: center; - border: 1px #AFAFAF solid; -} \ No newline at end of file diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/css/single_tournament.css b/frontend/unlogged_user/_main page/pojedynczy_turniej/css/single_tournament.css deleted file mode 100644 index 6ba692a..0000000 --- a/frontend/unlogged_user/_main page/pojedynczy_turniej/css/single_tournament.css +++ /dev/null @@ -1,71 +0,0 @@ -.tournamentBox { - /*Box align*/ - flex-direction: column; - flex-wrap: nowrap; - - /*Visual*/ - background-color: #ffffff; - color: white; - border: 1px #AFAFAF solid; - - height: 15vh; - width: 100%; -} - -/**/ -.tournamentIconBox { - width: 10%; - height: 100%; - float: left; - /*padding: 25px;*/ - top: 50%; - left: 50%; -} - -.tournamentIcon { - margin: 0; - position: relative; - top: 50%; - left: 50%; - -ms-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); -} - -/**/ -.tournamentDataBox { - width: 90%; - height: 100%; - float: right; -} - -.tournamentData { - margin-top: 1%; - text-align: left; - /*padding-left: 10%;*/ - color: #282828E5; -} - -.tournamentOpen { - - /* Auto layout */ - - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; - padding: 6px 15px; - gap: 10px; - - /*position: absolute;*/ - width: 73px; - height: 29px; - - /* PFP GREEN */ - - background: #007C36; - border-radius: 15px; - border: 1px solid; - - font-family: Montserrat, serif; - color: white; -} \ No newline at end of file diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/css/tournament_detail_header.css b/frontend/unlogged_user/_main page/pojedynczy_turniej/css/tournament_detail_header.css deleted file mode 100644 index 16c3345..0000000 --- a/frontend/unlogged_user/_main page/pojedynczy_turniej/css/tournament_detail_header.css +++ /dev/null @@ -1,66 +0,0 @@ - -/*1'st layer*/ -.tournamentIconBox { - width: 20%; - height: 100%; - float: left; - /*padding: 25px;*/ - top: 50%; - left: 50%; -} - -.tournamentDataBox { - width: 30%; - height: 100%; - float: left; -} - -.signInBox { - width: 40%; - height: 100%; - float: left; -} - -/*Element */ -.tournamentIcon { - margin: 0; - position: relative; - top: 45%; - left: 45%; - -ms-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - height: 50%; -} - -.tournamentData { - margin-top: 1%; - text-align: left; - /*padding-left: 10%;*/ - color: #282828E5; -} - -.signIn { - /*Alignment*/ - margin: 5%; - width: 50%; - height: 50%; - - /*Visual*/ - background: #B8BC00; - border-radius: 63px; - border: 1px solid #B8BC00; - - /*Text*/ - color: #FFFFFF; - font-family: 'Montserrat', serif; - font-size: 34px; - flex: none; - text-align: center; - -} - -.tournamentInfo { - font-family: 'Montserrat', serif; - font-style: normal; - color: white; -} \ No newline at end of file diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/collapsible.js b/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/collapsible.js deleted file mode 100644 index ca79021..0000000 --- a/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/collapsible.js +++ /dev/null @@ -1,14 +0,0 @@ -var coll = document.getElementsByClassName("collapsible"); -var i; - -for (i = 0; i < coll.length; i++) { - coll[i].addEventListener("click", function() { - this.classList.toggle("active"); - var content = this.nextElementSibling; - if (content.style.maxHeight){ - content.style.maxHeight = null; - } else { - content.style.maxHeight = content.scrollHeight + "px"; - } - }); -} \ No newline at end of file diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/css/bookmarks.css b/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/css/bookmarks.css deleted file mode 100644 index 43d4bb6..0000000 --- a/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/css/bookmarks.css +++ /dev/null @@ -1,37 +0,0 @@ -/*##################*/ -ul { - float: left; - width: 100%; - padding: 0; - margin: 0; - list-style: none; - /*background-color: #0B4D39;*/ -} - -li a { - display: block; - float: left; - text-align: center; - font-size: 1.2em; - width: 130px; - - text-decoration: none; - color: black; - background-color: white; - padding: 10px 15px; - margin: 0px 1px 1px 0px; - - border: 1px solid black; - border-radius: 3px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - box-shadow: 0px 2px 3px gray; - -moz-box-shadow: 0px 2px 3px gray; - -webkit-box-shadow: 0px 2px 3px gray; -} - -li a:hover { - color: black; - background: #AFAFAF; - border: 1px solid black; -} \ No newline at end of file diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/css/collapsible.css b/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/css/collapsible.css deleted file mode 100644 index 85261df..0000000 --- a/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/css/collapsible.css +++ /dev/null @@ -1,51 +0,0 @@ -/*COLLAPSIBLE*/ - -/*Wersja zwinięta*/ -.collapsible { - /*Box alignment*/ - margin-left: 5%; - margin-right: 5%; - width: 80%; - - /*Content alignment*/ - padding: 1%; - text-align: left; - - /*Visual*/ - background-color: #007C36; - color: white; - cursor: pointer; - font-size: 15px; - - /*Others*/ - border: none; - outline: none; - -} - -.active, .collapsible:hover { - background-color: #555; -} - -.collapsible:after { - content: '\002B'; - color: white; - font-weight: bold; - float: right; - margin-left: 5px; -} - -.active:after { - content: "\2212"; -} - -/*Wersja rozwinięta*/ -.collapsibleContent { - padding: 0 18px; - max-height: 0; - /*szerokość drabinki*/ - width: 75%; - overflow: hidden; - transition: max-height 0.2s ease-out; - background-color: #f1f1f1; -} \ No newline at end of file diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/css/li.css b/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/css/li.css deleted file mode 100644 index 7cd2bff..0000000 --- a/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/css/li.css +++ /dev/null @@ -1,39 +0,0 @@ -li.game { - padding-left: 200px; - margin-right: 20px; -} - -li.game.winner { - font-weight: bold; -} - -/*Tekst wewnątrz boxa*/ -li.game span { - float: right; - margin-right: 100px; -} - -/*Górna linia drabinki*/ -li.game-top { - border-bottom: 1px solid #aaa; -} - -/*Róznica wysokości między rundami*/ -li.game-spacer { - /*border-right: 1px solid #aaa;*/ - min-height: 50px; -} - -/*Dolna linia drabinki*/ -li.game-bottom { - border-top: 1px solid #aaa; -} - -/*Box drużyny*/ -li.teambox { - border-radius: 25px; - background-color: #FFFFFF; - padding: 10px; - /*text color*/ - color: #828282; -} \ No newline at end of file diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/css/round.css b/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/css/round.css deleted file mode 100644 index eace4a0..0000000 --- a/frontend/unlogged_user/_main page/pojedynczy_turniej/drabinka/css/round.css +++ /dev/null @@ -1,23 +0,0 @@ - -.round { - display: flex; - flex-direction: column; - justify-content: center; - /*szerokość całej drabinki*/ - width: 250px; - list-style: none; - padding: 0; -} - -.round .spacer { - flex-grow: 1; -} - -.round .spacer:first-child, -.round .spacer:last-child { - flex-grow: .5; -} - -.round .game-spacer { - flex-grow: 1; -} diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/zapisy/bookmarks.css b/frontend/unlogged_user/_main page/pojedynczy_turniej/zapisy/bookmarks.css deleted file mode 100644 index 43d4bb6..0000000 --- a/frontend/unlogged_user/_main page/pojedynczy_turniej/zapisy/bookmarks.css +++ /dev/null @@ -1,37 +0,0 @@ -/*##################*/ -ul { - float: left; - width: 100%; - padding: 0; - margin: 0; - list-style: none; - /*background-color: #0B4D39;*/ -} - -li a { - display: block; - float: left; - text-align: center; - font-size: 1.2em; - width: 130px; - - text-decoration: none; - color: black; - background-color: white; - padding: 10px 15px; - margin: 0px 1px 1px 0px; - - border: 1px solid black; - border-radius: 3px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - box-shadow: 0px 2px 3px gray; - -moz-box-shadow: 0px 2px 3px gray; - -webkit-box-shadow: 0px 2px 3px gray; -} - -li a:hover { - color: black; - background: #AFAFAF; - border: 1px solid black; -} \ No newline at end of file diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/zapisy/collapsible.js b/frontend/unlogged_user/_main page/pojedynczy_turniej/zapisy/collapsible.js deleted file mode 100644 index ca79021..0000000 --- a/frontend/unlogged_user/_main page/pojedynczy_turniej/zapisy/collapsible.js +++ /dev/null @@ -1,14 +0,0 @@ -var coll = document.getElementsByClassName("collapsible"); -var i; - -for (i = 0; i < coll.length; i++) { - coll[i].addEventListener("click", function() { - this.classList.toggle("active"); - var content = this.nextElementSibling; - if (content.style.maxHeight){ - content.style.maxHeight = null; - } else { - content.style.maxHeight = content.scrollHeight + "px"; - } - }); -} \ No newline at end of file diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/zapisy/css/collapsible.css b/frontend/unlogged_user/_main page/pojedynczy_turniej/zapisy/css/collapsible.css deleted file mode 100644 index 85261df..0000000 --- a/frontend/unlogged_user/_main page/pojedynczy_turniej/zapisy/css/collapsible.css +++ /dev/null @@ -1,51 +0,0 @@ -/*COLLAPSIBLE*/ - -/*Wersja zwinięta*/ -.collapsible { - /*Box alignment*/ - margin-left: 5%; - margin-right: 5%; - width: 80%; - - /*Content alignment*/ - padding: 1%; - text-align: left; - - /*Visual*/ - background-color: #007C36; - color: white; - cursor: pointer; - font-size: 15px; - - /*Others*/ - border: none; - outline: none; - -} - -.active, .collapsible:hover { - background-color: #555; -} - -.collapsible:after { - content: '\002B'; - color: white; - font-weight: bold; - float: right; - margin-left: 5px; -} - -.active:after { - content: "\2212"; -} - -/*Wersja rozwinięta*/ -.collapsibleContent { - padding: 0 18px; - max-height: 0; - /*szerokość drabinki*/ - width: 75%; - overflow: hidden; - transition: max-height 0.2s ease-out; - background-color: #f1f1f1; -} \ No newline at end of file diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/zapisy/css/li.css b/frontend/unlogged_user/_main page/pojedynczy_turniej/zapisy/css/li.css deleted file mode 100644 index 7cd2bff..0000000 --- a/frontend/unlogged_user/_main page/pojedynczy_turniej/zapisy/css/li.css +++ /dev/null @@ -1,39 +0,0 @@ -li.game { - padding-left: 200px; - margin-right: 20px; -} - -li.game.winner { - font-weight: bold; -} - -/*Tekst wewnątrz boxa*/ -li.game span { - float: right; - margin-right: 100px; -} - -/*Górna linia drabinki*/ -li.game-top { - border-bottom: 1px solid #aaa; -} - -/*Róznica wysokości między rundami*/ -li.game-spacer { - /*border-right: 1px solid #aaa;*/ - min-height: 50px; -} - -/*Dolna linia drabinki*/ -li.game-bottom { - border-top: 1px solid #aaa; -} - -/*Box drużyny*/ -li.teambox { - border-radius: 25px; - background-color: #FFFFFF; - padding: 10px; - /*text color*/ - color: #828282; -} \ No newline at end of file diff --git a/frontend/unlogged_user/_main page/pojedynczy_turniej/zapisy/css/round.css b/frontend/unlogged_user/_main page/pojedynczy_turniej/zapisy/css/round.css deleted file mode 100644 index eace4a0..0000000 --- a/frontend/unlogged_user/_main page/pojedynczy_turniej/zapisy/css/round.css +++ /dev/null @@ -1,23 +0,0 @@ - -.round { - display: flex; - flex-direction: column; - justify-content: center; - /*szerokość całej drabinki*/ - width: 250px; - list-style: none; - padding: 0; -} - -.round .spacer { - flex-grow: 1; -} - -.round .spacer:first-child, -.round .spacer:last-child { - flex-grow: .5; -} - -.round .game-spacer { - flex-grow: 1; -} diff --git a/frontend/unlogged_user/_main page/search.svg b/frontend/unlogged_user/_main page/search.svg deleted file mode 100644 index 6bfcbd2..0000000 --- a/frontend/unlogged_user/_main page/search.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/frontend/unlogged_user/index.html b/frontend/unlogged_user/index.html deleted file mode 100644 index fcd8456..0000000 --- a/frontend/unlogged_user/index.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - Padel Tournaments System - - - - - -
-
- -
- -
- - - - - -
- - - - -
- - -
-
WSZYSTKIE
-
MOJE
- -
- -
-
- -
- - - - - - -
- - - \ No newline at end of file diff --git a/frontend/unlogged_user/kontakt/index.html b/frontend/unlogged_user/kontakt/index.html deleted file mode 100644 index 61d9240..0000000 --- a/frontend/unlogged_user/kontakt/index.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - Padel Tournaments System - - - - -
-
- -
- -
- - -
-Kontakt -
- - - \ No newline at end of file diff --git a/frontend/unlogged_user/logowanie/rejestracja/api.js b/frontend/unlogged_user/logowanie/rejestracja/api.js deleted file mode 100644 index 7f7f009..0000000 --- a/frontend/unlogged_user/logowanie/rejestracja/api.js +++ /dev/null @@ -1,148 +0,0 @@ -var token = ""; -document.getElementById("loginButton").addEventListener("click", function () { - document.getElementById("login").style.display = "block"; -}); - -document.getElementById("regButton").addEventListener("click", function () { - document.getElementById("reg").style.display = "block"; -}); -document.getElementById("registrationButton").addEventListener("click", function () { - document.getElementById("registration").style.display = "block"; -}); -document.getElementById("checkPaymentButton").addEventListener("click", function () { - document.getElementById("checkStatus").style.display = "block"; -}); -var registartions = []; -document.getElementById("getRegistartionsButton").addEventListener("click", function () { - document.getElementById("getRegistartions").style.display = "block"; -}); -document.getElementById("getUserDataButton").addEventListener("click", function () { - var xhttp = new XMLHttpRequest(); - xhttp.onreadystatechange = function () { - if (this.readyState == 4 && this.status == 200) { - var json = JSON.parse(this.response); - document.getElementById("getUserDataid").innerText = json.id; - document.getElementById("getUserDataname").innerText = json.name; - document.getElementById("getUserDatasurname").innerText = json.surname; - document.getElementById("getUserDatarole").innerText = json.role; - document.getElementById("getUserDatalogin").innerText = json.login; - document.getElementById("getUserDataphone").innerText = json.phone; - document.getElementById("getUserDatamail").innerText = json.mail; - document.getElementById("getUserData").style.display = "block"; - } else if (this.readyState == 4) { - alert("something not work :( " + this.status); - } - } - xhttp.open("GET", "/inz/user"); - xhttp.setRequestHeader("Authorization", "Bearer " + token); - xhttp.send(); -}); -document.getElementById("updateUserDataButton").addEventListener("click", function () { - document.getElementById("updateUserData").style.display = "block"; -}); -document.getElementById("regsubmit").addEventListener("click", function () { - var xhttp = new XMLHttpRequest(); - xhttp.onreadystatechange = function () { - if (this.readyState == 4 && this.status == 200) { - alert("200 now you can login"); - } else if (this.readyState == 4) { - alert("something not work :( " + this.status); - } - } - xhttp.open("PUT", "dragonmaster.pl/inz/user/create"); - xhttp.send('{"username":"' + document.getElementById("regusername").value + '","name":"' + document.getElementById("regname").value + '","surname":"' + document.getElementById("regsurname").value + '","password":"' + document.getElementById("regpassword").value + '","mail":"' + document.getElementById("regmail").value + '","phone":"' + document.getElementById("regphone").value + '"}'); -}); - -document.getElementById("loginsubmit").addEventListener("click", function () { - var xhttp = new XMLHttpRequest(); - xhttp.onreadystatechange = function () { - if (this.readyState == 4 && this.status == 200) { - alert("logged in"); - token = JSON.parse(this.response).token; - document.getElementById("loginarea").style.display = "none"; - document.getElementById("other").style.display = "block"; - } else if (this.readyState == 4) { - alert("something not work :( " + this.status); - } - } - xhttp.open("POST", "/inz/user/login"); - xhttp.send('{"username":"' + document.getElementById("loginusername").value + '","password":"' + document.getElementById("loginpassword").value + '"}'); -}); -document.getElementById("registrationsubmit").addEventListener("click", function () { - var xhttp = new XMLHttpRequest(); - xhttp.onreadystatechange = function () { - if (this.readyState == 4 && this.status == 200) { - document.getElementById("registrationretu").innerText = JSON.parse(this.response).id; - if (document.getElementById("registrationpaymentmethod").value == "btc") { - var splited = JSON.parse(this.response).url.split("/"); - window.btcpay.showInvoice(splited[splited.length - 1]); - - } - } else if (this.readyState == 4) { - alert("something not work :( " + this.status); - } - } - xhttp.open("PUT", "/inz/registration"); - xhttp.setRequestHeader("Authorization", "Bearer " + token); - xhttp.send('{"paymentmethod":"' + document.getElementById("registrationpaymentmethod").value + '","tournament":"' + document.getElementById("registrationtournament").value + '","partner":"' + document.getElementById("registrationpartner").value + '"}'); -}); - -document.getElementById("checkStatussubmit").addEventListener("click", function () { - var xhttp = new XMLHttpRequest(); - xhttp.onreadystatechange = function () { - if (this.readyState == 4 && this.status == 200) { - document.getElementById("checkStatusretu").innerText = JSON.parse(this.response).status; - } else if (this.readyState == 4) { - alert("something not work :( " + this.status); - } - } - xhttp.open("GET", "/inz/registration/paymentstatus?id=" + document.getElementById("checkStatusid").value); - xhttp.setRequestHeader("Authorization", "Bearer " + token); - xhttp.send(); -}); - -document.getElementById("getRegistartionsSubmit").addEventListener("click", function () { - var xhttp = new XMLHttpRequest(); - xhttp.onreadystatechange = function () { - if (this.readyState == 4 && this.status == 200) { - registartions = JSON.parse(this.response); - document.getElementById("getRegistartionsid").innerText = registartions[0].id; - document.getElementById("getRegistartionsuserid").innerText = registartions[0].userid; - document.getElementById("getRegistartionstournamentid").innerText = registartions[0].tournamentid; - document.getElementById("getRegistartionspaymenttype").innerText = registartions[0].paymenttype; - document.getElementById("getRegistartionspaymentstatus").innerText = registartions[0].paymentstatus; - document.getElementById("getRegistartionsapprovals").innerText = registartions[0].approval; - } else if (this.readyState == 4) { - alert("something not work :( " + this.status); - } - } - xhttp.open("GET", "/inz/registrations?id=" + document.getElementById("getRegistartionsiid").value); - xhttp.setRequestHeader("Authorization", "Bearer " + token); - xhttp.send(); - cur = 0; -}); -var cur = 0; -document.getElementById("getRegistartionsNext").addEventListener("click", function () { - cur = cur + 1; - document.getElementById("getRegistartionsid").innerText = registartions[cur].id; - document.getElementById("getRegistartionsuserid").innerText = registartions[cur].userid; - document.getElementById("getRegistartionstournamentid").innerText = registartions[cur].tournamentid; - document.getElementById("getRegistartionspaymenttype").innerText = registartions[cur].paymenttype; - document.getElementById("getRegistartionspaymentstatus").innerText = registartions[cur].paymentstatus; - document.getElementById("getRegistartionsapprovals").innerText = registartions[cur].approval; -}); - -document.getElementById("updatesubmit").addEventListener("click", function () { - var xhttp = new XMLHttpRequest(); - xhttp.onreadystatechange = function () { - if (this.readyState == 4 && this.status == 200) { - alert("200 updated"); - } else if (this.readyState == 4) { - alert("something not work :( " + this.status); - } - } - xhttp.open("POST", "/inz/user"); - xhttp.setRequestHeader("Authorization", "Bearer " + token); - - xhttp.send('{"name":"' + document.getElementById("updatename").value + '","surname":"' + document.getElementById("updatesurname").value + '","password":"' + document.getElementById("updatepassword").value + '","mail":"' + document.getElementById("updatemail").value + '","phone":"' + document.getElementById("updatephone").value + '"}'); -}); \ No newline at end of file diff --git a/frontend/unlogged_user/logowanie/rejestracja/src/lock.svg b/frontend/unlogged_user/logowanie/rejestracja/src/lock.svg deleted file mode 100644 index f28ee78..0000000 --- a/frontend/unlogged_user/logowanie/rejestracja/src/lock.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/frontend/unlogged_user/logowanie/rejestracja/src/mail.svg b/frontend/unlogged_user/logowanie/rejestracja/src/mail.svg deleted file mode 100644 index 10ef01f..0000000 --- a/frontend/unlogged_user/logowanie/rejestracja/src/mail.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/frontend/unlogged_user/logowanie/rejestracja/src/mezczyzna_padel.jpg b/frontend/unlogged_user/logowanie/rejestracja/src/mezczyzna_padel.jpg deleted file mode 100644 index 34297f1..0000000 Binary files a/frontend/unlogged_user/logowanie/rejestracja/src/mezczyzna_padel.jpg and /dev/null differ diff --git a/frontend/unlogged_user/logowanie/rejestracja/src/person.svg b/frontend/unlogged_user/logowanie/rejestracja/src/person.svg deleted file mode 100644 index 453c366..0000000 --- a/frontend/unlogged_user/logowanie/rejestracja/src/person.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/frontend/unlogged_user/logowanie/rejestracja/src/phone.svg b/frontend/unlogged_user/logowanie/rejestracja/src/phone.svg deleted file mode 100644 index 6ac818d..0000000 --- a/frontend/unlogged_user/logowanie/rejestracja/src/phone.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/frontend/unlogged_user/logowanie/tlo_logowanie.png b/frontend/unlogged_user/logowanie/tlo_logowanie.png deleted file mode 100644 index 92ea391..0000000 Binary files a/frontend/unlogged_user/logowanie/tlo_logowanie.png and /dev/null differ diff --git a/frontend/unlogged_user/ranking/index.html b/frontend/unlogged_user/ranking/index.html deleted file mode 100644 index 355602f..0000000 --- a/frontend/unlogged_user/ranking/index.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - Padel Tournaments System - - - - -
-
- -
- -
- - -
-Ranking -
- - - \ No newline at end of file diff --git a/frontend/sandbox_api/logowanie.json b/frontend/z sandbox/sandbox_api/logowanie.json similarity index 100% rename from frontend/sandbox_api/logowanie.json rename to frontend/z sandbox/sandbox_api/logowanie.json diff --git a/frontend/sandbox_api/myscript.js b/frontend/z sandbox/sandbox_api/myscript.js similarity index 100% rename from frontend/sandbox_api/myscript.js rename to frontend/z sandbox/sandbox_api/myscript.js diff --git a/frontend/sandbox_api/strona-glowna.html b/frontend/z sandbox/sandbox_api/strona-glowna.html similarity index 100% rename from frontend/sandbox_api/strona-glowna.html rename to frontend/z sandbox/sandbox_api/strona-glowna.html diff --git a/frontend/sandbox_api/styles.css b/frontend/z sandbox/sandbox_api/styles.css similarity index 100% rename from frontend/sandbox_api/styles.css rename to frontend/z sandbox/sandbox_api/styles.css diff --git a/frontend/szablony/pojedynczy_turniej/index.html b/frontend/z sandbox/szablony/pojedynczy_turniej/index.html similarity index 100% rename from frontend/szablony/pojedynczy_turniej/index.html rename to frontend/z sandbox/szablony/pojedynczy_turniej/index.html diff --git a/frontend/szablony/pojedynczy_turniej/style.css b/frontend/z sandbox/szablony/pojedynczy_turniej/style.css similarity index 100% rename from frontend/szablony/pojedynczy_turniej/style.css rename to frontend/z sandbox/szablony/pojedynczy_turniej/style.css