Update index.html
parent
79f3216714
commit
4debd94d34
296
index.html
296
index.html
|
@ -1,156 +1,180 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Welcome to Tanki!</title>
|
<title>Welcome to Tanki!</title>
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap" rel="stylesheet">
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
font-family: 'Montserrat', sans-serif;
|
font-family: 'Montserrat', sans-serif;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background-color: #000; /* Черный цвет фона */
|
background-color: #000; /* Черный цвет фона */
|
||||||
color: #fff; /* Белый цвет текста */
|
color: #fff; /* Белый цвет текста */
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
margin-top: 80px; /* Отступ для контента под фиксированной шапкой */
|
margin-top: 80px; /* Отступ для контента под фиксированной шапкой */
|
||||||
/* height: 100vh; */ /* Не нужно использовать высоту 100vh для обертки */
|
overflow-y: auto; /* Включаем вертикальную прокрутку */
|
||||||
overflow-y: auto; /* Включаем вертикальную прокрутку */
|
}
|
||||||
}
|
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
position: fixed; /* Фиксированная позиция */
|
position: fixed; /* Фиксированная позиция */
|
||||||
top: 0; /* Расположение шапки вверху */
|
top: 0; /* Расположение шапки вверху */
|
||||||
left: 0; /* Расположение шапки слева */
|
left: 0; /* Расположение шапки слева */
|
||||||
width: 100%; /* Занимает всю ширину экрана */
|
width: 100%; /* Занимает всю ширину экрана */
|
||||||
background-color: #333;
|
background-color: #333;
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
z-index: 999; /* Чтобы шапка была выше других элементов */
|
z-index: 999; /* Чтобы шапка была выше других элементов */
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo img {
|
.logo img {
|
||||||
width: 100px; /* Устанавливаем ширину логотипа */
|
width: 100px; /* Устанавливаем ширину логотипа */
|
||||||
}
|
}
|
||||||
|
|
||||||
nav ul {
|
nav ul {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav ul li {
|
nav ul li {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav ul li a {
|
nav ul li a {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
transition: background-color 0.3s;
|
transition: background-color 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav ul li a:hover {
|
nav ul li a:hover {
|
||||||
background-color: #555;
|
background-color: #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
margin: 50px auto;
|
margin: 50px auto;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
background-color: #222; /* Цвет фона контейнера */
|
background-color: #222; /* Цвет фона контейнера */
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); /* Тень контейнера */
|
box-shadow: 0 0 10px #748623; /* Тень контейнера */
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
color: #007bff; /* Цвет заголовка */
|
color: #748623; /* Цвет заголовка */
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
background-color: #007bff; /* Цвет кнопки */
|
background-color: #748623; /* Цвет кнопки */
|
||||||
color: #fff; /* Цвет текста на кнопке */
|
color: #fff; /* Цвет текста на кнопке */
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
transition: background-color 0.3s;
|
transition: background-color 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:hover {
|
.btn:hover {
|
||||||
background-color: #0056b3; /* Изменение цвета кнопки при наведении */
|
background-color: #748623; /* Изменение цвета кнопки при наведении */
|
||||||
}
|
}
|
||||||
|
|
||||||
.advertisement {
|
.advertisement {
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.advertisement img {
|
.advertisement img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); /* Тень изображения */
|
box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); /* Тень изображения */
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
background-color: #888; /* Серый цвет фона нижнего раздела */
|
background-color: #888; /* Серый цвет фона нижнего раздела */
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
margin-top: 50px; /* Отступ сверху */
|
margin-top: 50px; /* Отступ сверху */
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer h2 {
|
.footer h2 {
|
||||||
color: #fff; /* Белый цвет текста */
|
color: #fff; /* Белый цвет текста */
|
||||||
margin: 0; /* Убираем внешние отступы */
|
margin: 0; /* Убираем внешние отступы */
|
||||||
}
|
}
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<nav>
|
|
||||||
<div class="logo">
|
|
||||||
<a href="/"><img src="https://cdn.discordapp.com/attachments/704651653873139803/1233880220004519986/Screenshot_2024-04-27_233856-removebg-preview.png?ex=662eb400&is=662d6280&hm=518bf12af052c5268492e81d64f8957eea1d6163b3c8fe28c3e8a69758169263&" alt="Tanki Logo"></a>
|
|
||||||
</div>
|
|
||||||
<ul>
|
|
||||||
<li><a href="/about">About</a></li>
|
|
||||||
<li><a href="/game">Game</a></li>
|
|
||||||
<li><a href="/link">Link</a></li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
<div class="wrapper">
|
|
||||||
<div class="container">
|
|
||||||
<h1>Welcome to Tanki!</h1>
|
|
||||||
<p>Experience the thrill of tank battles like never before. Join our community of players and dominate the battlefield!</p>
|
|
||||||
<p>Get started now:</p>
|
|
||||||
<a href="/about" class="btn">Learn More</a>
|
|
||||||
|
|
||||||
<!-- Advertisement Section -->
|
|
||||||
<div class="advertisement">
|
|
||||||
<h2>Check out our latest game: Tanks 2D</h2>
|
|
||||||
<p>Engage in fast-paced 2D tank battles with stunning graphics and intense gameplay!</p>
|
|
||||||
<img src="https://img.poki.com/cdn-cgi/image/quality=78,width=314,height=314,fit=cover,f=auto/2fc66b5540735bef2565f422131519d8.png" alt="Tanks 2D Advertisement">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Footer Section -->
|
/* Стили для области оценки */
|
||||||
<div class="footer">
|
#ratings {
|
||||||
<h2>Tanki 2D</h2>
|
margin-top: 50px; /* Добавляем отступ сверху */
|
||||||
|
text-align: center; /* Центрируем содержимое */
|
||||||
|
}
|
||||||
|
|
||||||
|
#ratings input {
|
||||||
|
width: 50px; /* Устанавливаем ширину поля ввода */
|
||||||
|
margin: 10px; /* Добавляем отступы между элементами */
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<nav>
|
||||||
|
<div class="logo">
|
||||||
|
<a href="/"><img src="https://cdn.discordapp.com/attachments/704651653873139803/1233880220004519986/Screenshot_2024-04-27_233856-removebg-preview.png?ex=662eb400&is=662d6280&hm=518bf12af052c5268492e81d64f8957eea1d6163b3c8fe28c3e8a69758169263&" alt="Tanki Logo"></a>
|
||||||
|
</div>
|
||||||
|
<ul>
|
||||||
|
<li><a href="/about">About</a></li>
|
||||||
|
<li><a href="/game">Game</a></li>
|
||||||
|
<li><a href="/support">Support</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<div class="wrapper">
|
||||||
|
<div class="container">
|
||||||
|
<h1>Welcome to Tanki!</h1>
|
||||||
|
<p>Experience the thrill of tank battles like never before. Join our community of players and dominate the battlefield!</p>
|
||||||
|
<p>Get started now:</p>
|
||||||
|
<a href="/about" class="btn">Learn More</a>
|
||||||
|
|
||||||
|
<!-- Advertisement Section -->
|
||||||
|
<div class="advertisement">
|
||||||
|
<h2>Check out our latest game: Tanks 2D</h2>
|
||||||
|
<p>Engage in fast-paced 2D tank battles with stunning graphics and intense gameplay!</p>
|
||||||
|
<img src="https://cdn.discordapp.com/attachments/856238529502511144/1234090991045312543/image.png?ex=662f784c&is=662e26cc&hm=065a8314fa2f80d3f78d86beccbd81b4c1471065feba35a0dd0342d43376cfc7&" alt="Tanks 2D Advertisement">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Область для оценки -->
|
||||||
|
<div id="ratings" class="container" style="margin-top: 1000px;"> <!-- Установите высоту в px в зависимости от контента выше -->
|
||||||
|
<h2>Rate Our Website and Game</h2>
|
||||||
|
<p>Please rate our website and game from 1 to 5 stars:</p>
|
||||||
|
<div>
|
||||||
|
<label for="websiteRating">Website:</label>
|
||||||
|
<input type="number" id="websiteRating" name="websiteRating" min="1" max="5">
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label for="gameRating">Game:</label>
|
||||||
|
<input type="number" id="gameRating" name="gameRating" min="1" max="5">
|
||||||
|
</div>
|
||||||
|
<button onclick="submitRatings()">Submit Ratings</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.querySelector('.logo').addEventListener('click', function() {
|
// Функция для отправки оценок
|
||||||
window.location.href = '/';
|
function submitRatings() {
|
||||||
});
|
var websiteRating = document.getElementById("websiteRating").value;
|
||||||
</script>
|
var gameRating = document.getElementById("gameRating").value;
|
||||||
</body>
|
|
||||||
</html>
|
// Здесь можно добавить код для отправки оценок на сервер или их обработки
|
||||||
|
|
||||||
|
alert("Thank you for your ratings! \nFrom: Arsenij, Artem and Roma. :) \nWebsite: " + websiteRating + " stars\nGame: " + gameRating + " stars");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue