diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 9f11b75..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.idea/ diff --git a/app.css b/app.css deleted file mode 100644 index 7cc4973..0000000 --- a/app.css +++ /dev/null @@ -1,206 +0,0 @@ -html { - box-sizing: border-box; - height: 100%; -} - -*, *:before, *:after { - box-sizing: inherit; -} - -html, body, .wrapper { - margin: 0; - padding: 0; - width: 100%; -} - -body { - color: #fff; - background: url(assets/wallpaper.jpg) no-repeat center / cover fixed rgb(32, 35, 36); - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, - Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; - height: 100%; -} - -a { - color: #fff; -} - -.wrapper { - align-items: center; - background: -moz-radial-gradient(center center, circle cover, transparent, #000); - background: -ms-radial-gradient(center center, circle cover, transparent, #000); - background: -webkit-radial-gradient(center center, circle cover, transparent, #000); - background: radial-gradient(center center, circle cover, transparent, #000); - display: flex; - flex-direction: column; - justify-content: center; - min-height: 100%; - padding: 30px 0; -} - -.header__title { - font-size: calc(50px + 16 * (100vw - 320px) / (960 - 320)); - font-weight: normal; - margin-bottom: 20px; - text-align: center; - text-shadow: #000 5px 5px 5px; -} - -.header__link { - text-decoration: none; -} - -.header__description { - text-shadow: #000 1px 1px 5px; - line-height: 1.7; - margin-bottom: 40px; - text-align: center; -} - -.main { - width: 800px; - text-align: center; -} - -@media (max-width: 800px) { - .main { - width: 100%; - } -} - -.section { - margin-top: 40px; -} - -.section__header { - text-shadow: #000 1px 1px 5px; - font-weight: normal; -} - -.play-button { - display: inline-block; -} - -.play-image { - max-width: 300px; -} - -.button-container { - display: inline-block; -} - -.button { - max-width: 100%; - width: 300px; - margin: 10px 0; - background: rgb(112, 50, 50); - border-radius: 3px; - color: #eee; - display: block; - font-size: 20px; - padding: 15px 25px; - text-align: left; - text-decoration: none; - transition: background 0.3s; -} - -.button__info { - padding: 0; - margin: 5px 0 0; - display: flex; - justify-content: space-between; -} - -.button:hover, .button:focus, .button:active { - background: rgb(90, 45, 45); -} - -.button--dev { - background: #333; -} - -.button--dev:hover, -.button--dev:focus, -.button--dev:active { - background: #222; -} - -.icon { - transition: opacity 0.3s; -} - -.icon:hover, .icon:focus, .icon:active { - opacity: 0.7; -} - -.links { - font-size: 0; - padding: 0; - list-style: none; -} - -.links__item { - display: inline-block; -} - -.links__item + .links__item { - margin-left: 10px; -} - -.links__item { - width: 45px; - height: 45px; -} - -.links__item--discord img { - max-width: 38px; -} - -.button span { - font-size: small; - display: flex; - justify-content: space-between; -} - -.button span[class$="date"] { - color: transparent; - transition: 0.3s color; -} - -.button:hover span[class$="date"] { - color: #fff; -} - -.button-more__link { - text-decoration: none; -} - -.button-more__link:hover, -.button-more__link:focus, -.button-more__link:active { - text-decoration: underline; -} - -.footer { - margin-top: 30px; - text-align: center; -} - -.footer__nav { - margin-top: 30px; - list-style: none; - padding: 0; -} - -.footer__item { - margin-right: 10px; -} - -.footer__link { - color: #eeeeee; - text-decoration: none; -} - -.footer__link:hover { - text-decoration: underline; -} diff --git a/app.js b/app.js deleted file mode 100644 index ff3e81f..0000000 --- a/app.js +++ /dev/null @@ -1,90 +0,0 @@ -var disableClick = function(e) {e.preventDefault()}; - -var addButtonInfo = function(url, prefix, cb) { - var buttonElement = document.querySelector("." + prefix + "-button"); - if (null === buttonElement) { - return; - } - - buttonElement.addEventListener("click", disableClick); - var versionElement = document.querySelector("." + prefix + "-version"); - versionElement.innerHTML = "Ładowanie…"; - var dateElement = document.querySelector("." + prefix + "-date"); - - var res = new XMLHttpRequest(); - res.open("GET", url, true); - res.onloadend = function () { - if(res.status === 200) { - cb(res, buttonElement, versionElement, dateElement); - } else { - versionElement.innerHTML = "wersja nieznana"; - } - buttonElement.removeEventListener("click", disableClick); - }; - res.send(null); -}; - -if (null === document.querySelector(".button-container--list")) { - addButtonInfo("https://api.github.com/repos/wulkanowy/wulkanowy/releases/latest", "beta", - function(res, button, version, date) { - var json = JSON.parse(res.responseText); - button.href = json.assets[0].browser_download_url; - version.innerHTML = "v" + json.name; - date.innerHTML = new Date(json.published_at).toLocaleString("pl-PL"); - } - ); - - addButtonInfo("https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/0/info", "dev", - function(res, button, version, date) { - if (null !== document.querySelector(".button-container--list")) return; - var json = JSON.parse(res.responseText); - version.innerHTML = "Build " + json.build_number; - date.innerHTML = new Date(json.finished_at).toLocaleString("pl-PL"); - } - ); -} - -(function (d) { - var list = d.querySelector(".button-container--list"); - var base = d.querySelector(".button-container--list .button"); - if (null === base) return; - - var baseCopy = base.cloneNode(true); - base.style.display = "none"; - - var res = new XMLHttpRequest(); - res.open("GET", "https://api.github.com/repos/wulkanowy/wulkanowy/pulls", true); - res.onloadend = function () { - if(res.status === 200) { - JSON.parse(res.responseText).forEach(function (item) { - var url = "https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/" + item.head.ref + "/artifacts/0"; - - var branch = baseCopy.cloneNode(true); - branch.href = url; - branch.innerText = item.head.ref; - - var button_info = d.createElement("p"); - button_info.setAttribute("class", "button__info"); - - var button_version = d.createElement("span"); - button_version.setAttribute("class", "dev-version"); - - var button_date = d.createElement("span"); - button_date.setAttribute("class", "dev-date"); - - button_info.appendChild(button_version); - button_info.appendChild(button_date); - - addButtonInfo(url + "/info", "dev", function(res) { - var json = JSON.parse(res.responseText); - button_version.innerHTML = "Build " + json.build_number; - button_date.innerHTML = new Date(json.finished_at).toLocaleString("pl-PL"); - }); - branch.appendChild(button_info); - list.appendChild(branch); - }) - } - }; - res.send(null); - -})(document); diff --git a/assets/discord.svg b/assets/discord.svg deleted file mode 100644 index 0fb7161..0000000 --- a/assets/discord.svg +++ /dev/null @@ -1,69 +0,0 @@ - - diff --git a/assets/github.svg b/assets/github.svg deleted file mode 100644 index d58cf55..0000000 --- a/assets/github.svg +++ /dev/null @@ -1,66 +0,0 @@ - - - - diff --git a/assets/google-play-badge.png b/assets/google-play-badge.png deleted file mode 100644 index 98f7a9b..0000000 Binary files a/assets/google-play-badge.png and /dev/null differ diff --git a/assets/trello.svg b/assets/trello.svg deleted file mode 100644 index a2ff890..0000000 --- a/assets/trello.svg +++ /dev/null @@ -1,50 +0,0 @@ - - - - \ No newline at end of file diff --git a/assets/wallpaper.jpg b/assets/wallpaper.jpg deleted file mode 100644 index 87ce047..0000000 Binary files a/assets/wallpaper.jpg and /dev/null differ diff --git a/dev.html b/dev.html deleted file mode 100644 index c96e053..0000000 --- a/dev.html +++ /dev/null @@ -1,74 +0,0 @@ - - -
- - - - -Nieoficjalna aplikacja mobilna
ucznia i rodzica
dla dziennika VULCAN UONET+