Skip to content

Commit

Permalink
Merge pull request #2 from Makovich431/dev
Browse files Browse the repository at this point in the history
Add Ukraine Language
  • Loading branch information
Kisakay authored Jul 20, 2024
2 parents 40efcb1 + fddf6e5 commit 0616da6
Show file tree
Hide file tree
Showing 3 changed files with 267 additions and 20 deletions.
Binary file added assets/img/ua.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 21 additions & 20 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,27 @@
const userLang = navigator.language || navigator.userLanguage;
return userLang.toLowerCase();
}

const userLanguage = detectLanguage();
if (userLanguage.includes("en")) {
window.location.href = "en";
} else if (userLanguage.includes("fr")) {
window.location.href = "fr";
} else if (userLanguage.includes("es")) {
window.location.href = "es";
} else if (userLanguage.includes("ru")) {
window.location.href = "ru";
} else if (userLanguage.includes("ja")) {
window.location.href = "jp";
} else if (userLanguage.includes("it")) {
window.location.href = "it";
} else if (userLanguage.includes("de")) {
window.location.href = "de";
} else {
window.location.href = "en";
}
</script>
const userLanguage = detectLanguage();
if (userLanguage.includes("en")) {
window.location.href = "en";
} else if (userLanguage.includes("fr")) {
window.location.href = "fr";
} else if (userLanguage.includes("es")) {
window.location.href = "es";
} else if (userLanguage.includes("ru")) {
window.location.href = "ru";
} else if (userLanguage.includes("ua")) {
window.location.href = "ua";
} else if (userLanguage.includes("ja")) {
window.location.href = "jp";
} else if (userLanguage.includes("it")) {
window.location.href = "it";
} else if (userLanguage.includes("de")) {
window.location.href = "de";
} else {
window.location.href = "en";
}
</script>
</body>

</html>
246 changes: 246 additions & 0 deletions ua.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
<!DOCTYPE html>
<html lang="uk">

<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>iHorizon - Найбільш передовий бот</title>
<link rel="icon" type="image/png" href="assets/img/ihorizon.png">
<meta property="og:title" content="iHorizon">
<meta property="og:description" content="Найбільш передовий бот.">
<meta property="og:image" content="https://ihrz.github.io/assets/img/ihorizon.png">
<meta property="og:url" content="/">
<meta property="og:type" content="website">
<meta name="theme-color" content="#5a4fcf">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v6.0.0-beta3/css/all.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css">
<link href="/assets/css/card.css" rel="stylesheet" />
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.6.4/flowbite.min.css" rel="stylesheet" />
<link rel='stylesheet' href="assets/css/style.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/twemoji.min.js" crossorigin="anonyme"></script>
<script>
window.onload = function () {
twemoji.parse(document.body,
{ folder: 'svg', ext: '.svg' }
);
}
</script>
<style>
img.emoji {
width: 1em;
pointer-events: none;
display: inline-block;
}
</style>
</head>

<body class="container max-w-10xl mx-auto">
<nav class="sticky w-full z-20 top-0 left-0">
<div class="max-w-screen-xl flex flex-wrap items-center justify-between mx-auto p-4">
<a href="index" class="flex items-center">
<img src="assets/img/ihorizon.png" draggable="false" class="h-7 mr-3" alt="IMG">
<span class="regularTextBold text-white self-center whitespace-nowrap">iHorizon</span>
</a>
<div class="flex md:order-2">
<a href="https://discord.com/api/oauth2/authorize?client_id=945202900907470899&permissions=8&scope=bot%20applications.commands"
target="_blank"><button type="button"
class="normalTextBold text-black button-color rounded-full px-6 py-3 text-center mr-3 md:mr-0"><i
class="fa-brands fa-discord mr-2"></i>Додати на сервер</button></a>
<button data-collapse-toggle="navbar-sticky" type="button"
class="inline-flex items-center p-2 text-white rounded-xl md:hidden coloredBg aria-controls="
navbar-sticky" aria-expanded="false">
<span class="sr-only">Відкрити головне меню</span>
<svg class="w-6 h-6" aria-hidden="true" fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
clip-rule="evenodd"></path>
</svg>
</button>
</div>
<div class="items-center justify between hidden w-full md:flex md:w-auto md:order-1" id="navbar-sticky">
<ul
class="text-white flex flex-col p-4 md:p-0 mt-4 border border-gray-800 rounded-xl md:flex-row md:space-x-8 md:mt-0 md:border-0">
<li>
<a href="#top"
class="normalText text-white whiteUnderline block py-2 pl-3 pr-6 rounded md:hover:bg-transparent md:p-0"><i
class="fa-regular fa-house-blank"></i></a>
</li>
<li>
<a href="#features"
class="normalText text-white whiteUnderline block py-2 pl-3 pr-6 rounded md:hover:bg-transparent md:p-0">Особливості</a>
</li>
<li>
<a href="./docs"
class="normalText text-white whiteUnderline block py-2 pl-3 rounded md:hover:bg-transparent md:p-0">Документація</a>
</li>
</ul>
</div>
</div>
</nav>

<section class="section">
<div class="py-8 px-4 mx-auto max-w-6xl text-center lg:py-16 mt-8">
<h1 class="blackText text-white mb-4 tracking-tight leading-none">Найкращий безкоштовний і
<span class="gradientColor">OpenSource</span> бот для Discord!
</h1>
<p class="regularText text-white opacity-90 mt-8 mb-8 sm:px-16 lg:px-48">iHorizon - це найкращий бот для
захисту ваших серверів і їх налаштування!</p>
<div class="flex flex-col space-y-4 sm:flex-row sm:justify-center sm:space-y-0 sm:space-x-4">
<a href="https://discord.com/api/oauth2/authorize?client_id=945202900907470899&permissions=8&scope=bot%20applications.commands"
target="_blank"
class="normalTextBold text-black button-color inline-flex justify-center items-center py-3 px-6 text-center rounded-full">
Додати iHorizon на свій сервер
<svg aria-hidden="true" class="ml-2 -mr-1 w-5 h-5" fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z"
clip-rule="evenodd"></path>
</svg>
</a>
<a href="#features"
class="normalTextBold text-white secBg opacity-60 hover:opacity-100 inline-flex justify-center items-center py-3 px-6 text-center rounded-full">
Особливості
</a>
</div>
<div class="text-center">
<p class="smallText text-white opacity-90 mt-8 mb-8 sm:px-16 lg:px-48">
<span class="mr-2">
<i class="fa-regular fa-check mr-1 opacity-90"></i>
<span class="opacity-60">Дружня допомога,</span>
</span>
<span class="mr-2">
<i class="fa-regular fa-check mr-1 opacity-90"></i>
<span class="opacity-60">Обширна підтримка</span>
</span>
</p>
<img src="assets/img/Help-module.png" draggable="false" alt="IMG"
style="border-radius: 10px; margin: 0 auto; display: block;">
</div>
</section>

<section class="section">
<div class="py-8 px-4 mx-auto max-w-6xl text-center lg:py-16">
<hr class="customHr">
<br>
<p class="boldText text-white opacity-90 mt-8 mb-2 sm:px-16 lg:px-48">Вже використовується більше <span
class="gradientColor"><b>+350</b></span> серверів і більше ніж <span class="gradientColor"><b>276
000</b></span> користувачів</p>
<p class="regularTextI opacity-70 text-white mb-8">Приєднуйтеся до нашої спільноти</p>
<a href="https://discord.gg/vCBUpF47Vy" target="_blank"
class="normalTextBold text-black button-color inline-flex justify-center items-center py-3 px-6 text-center rounded-full">
Приєднуйтеся до нашого сервера
<svg aria-hidden="true" class="ml-2 -mr-1 w-5 h-5" fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z"
clip-rule="evenodd"></path>
</svg>
</a>
<br><br><br><br>
<hr class="customHr">
</div>
</section>

<section class="section" id="features">
<div class="py-8 px-4 mx-auto max-w-6xl text-center lg:py-16">
<h2 class="gradientColor text-4xl mb-4 tracking-tight leading-none">Особливості</h2>
<div class="owl-carousel owl-theme" id="owl-carousel">
<div class="card coloredBg mx-4">
<div class="card-body"><i class="fa-solid fa-users-gear gradientColor"
style="font-size: 3em;"></i>
<h5 class="card-title gradientColor">Модерація</h5>
<p class="card-text text-white">Надайте своїм модераторам зручні команди для автоматизації процесів
модерації. Ми пропонуємо безліч команд, які допоможуть вам керувати сервером.</p>
</div>
</div>
<div class="card coloredBg mx-4">
<div class="card-body"><i class="fa-solid fa-user-shield gradientColor" style="font-size: 3em;"></i>
<h5 class="card-title gradientColor">Безпека</h5>
<p class="card-text text-white">Наш бот забезпечує високий рівень безпеки для вашого сервера,
включаючи захист від рейдів, спам-атак і багато іншого.</p>
</div>
</div>
<div class="card coloredBg mx-4">
<div class="card-body"><i class="fa-solid fa-gamepad gradientColor" style="font-size: 3em;"></i>
<h5 class="card-title gradientColor">Міні-ігри</h5>
<p class="card-text text-white">Розважайте своїх користувачів за допомогою різноманітних
міні-ігор, які ми пропонуємо. Від класичних ігор до нових цікавих ігор - все це доступно на
вашому сервері.</p>
</div>
</div>
<div class="card coloredBg mx-4">
<div class="card-body"><i class="fa-solid fa-headphones-simple gradientColor"
style="font-size: 3em;"></i>
<h5 class="card-title gradientColor">Музика</h5>
<p class="card-text text-white">Слухайте музику з популярних сервісів прямо на вашому сервері
Discord. Наш бот підтримує відтворення музики з YouTube, Spotify та інших платформ.</p>
</div>
</div>
</div>
</section>

<section class="section">
<div class="py-8 px-4 mx-auto max-w-6xl text-center lg:py-16">
<br>
<hr class="customHr">
<br>
<h2 class="gradientColor text-4xl mb-4 tracking-tight leading-none">Інструкції</h2>
<p class="regularTextI text-white opacity-90 mt-8 mb-8 sm:px-16 lg:px-48">У цьому розділі ви знайдете
покрокові інструкції з налаштування нашого бота на вашому сервері Discord. Ми зробили ці інструкції
максимально простими та зрозумілими.</p>
<a href="./docs"
class="normalTextBold text-black button-color inline-flex justify-center items-center py-3 px-6 text-center rounded-full">
Перейти до документації
<svg aria-hidden="true" class="ml-2 -mr-1 w-5 h-5" fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z"
clip-rule="evenodd"></path>
</svg>
</a>
<br><br><br>
<hr class="customHr">
</div>
</section>

<section class="section">
<div class="py-8 px-4 mx-auto max-w-6xl text-center lg:py-16">
<h2 class="gradientColor text-4xl mb-4 tracking-tight leading-none">Додаткові функції</h2>
<p class="regularTextI text-white opacity-90 mt-8 mb-8 sm:px-16 lg:px-48">Наш бот пропонує широкий спектр
додаткових функцій, включаючи інтеграцію з іншими сервісами, підтримку кастомних команд, а також багато
іншого.</p>
<a href="#"
class="normalTextBold text-black button-color inline-flex justify-center items-center py-3 px-6 text-center rounded-full">
Дізнатися більше
<svg aria-hidden="true" class="ml-2 -mr-1 w-5 h-5" fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z"
clip-rule="evenodd"></path>
</svg>
</a>
</div>
</section>

<footer class="footer text-center text-white mt-8">
<div class="py-6 px-4 mx-auto max-w-6xl lg:py-8">
<p class="text-sm regularText text-white opacity-90 mb-4">
&copy; iHorizon 2024. Усі права захищено.
</p>
<div class="flex justify-center space-x-4">
<a href="https://twitter.com/iHorizonBot" class="text-white opacity-60 hover:opacity-100"><i
class="fab fa-twitter"></i></a>
<a href="https://github.com/iHorizon" class="text-white opacity-60 hover:opacity-100"><i
class="fab fa-github"></i></a>
<a href="https://discord.gg/vCBUpF47Vy" class="text-white opacity-60 hover:opacity-100"><i
class="fab fa-discord"></i></a>
</div>
</div>
</footer>
</body>

</html>

0 comments on commit 0616da6

Please sign in to comment.