Update index.html
parent
7d5741f56c
commit
1fb5d38cd0
249
index.html
249
index.html
|
@ -1,121 +1,156 @@
|
||||||
<!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; /* Белый цвет текста */
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.wrapper {
|
||||||
max-width: 800px;
|
margin-top: 80px; /* Отступ для контента под фиксированной шапкой */
|
||||||
margin: 50px auto;
|
/* height: 100vh; */ /* Не нужно использовать высоту 100vh для обертки */
|
||||||
padding: 20px;
|
overflow-y: auto; /* Включаем вертикальную прокрутку */
|
||||||
background-color: #222; /* Цвет фона контейнера */
|
}
|
||||||
border-radius: 10px;
|
|
||||||
box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); /* Тень контейнера */
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
nav {
|
||||||
color: #007bff; /* Цвет заголовка */
|
position: fixed; /* Фиксированная позиция */
|
||||||
}
|
top: 0; /* Расположение шапки вверху */
|
||||||
|
left: 0; /* Расположение шапки слева */
|
||||||
|
width: 100%; /* Занимает всю ширину экрана */
|
||||||
|
background-color: #333;
|
||||||
|
padding: 10px 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
z-index: 999; /* Чтобы шапка была выше других элементов */
|
||||||
|
}
|
||||||
|
|
||||||
p {
|
.logo img {
|
||||||
font-size: 18px;
|
width: 100px; /* Устанавливаем ширину логотипа */
|
||||||
line-height: 1.6;
|
}
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn {
|
nav ul {
|
||||||
display: inline-block;
|
list-style-type: none;
|
||||||
padding: 10px 20px;
|
margin: 0;
|
||||||
background-color: #007bff; /* Цвет кнопки */
|
padding: 0;
|
||||||
color: #fff; /* Цвет текста на кнопке */
|
text-align: center;
|
||||||
text-decoration: none;
|
}
|
||||||
border-radius: 5px;
|
|
||||||
transition: background-color 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn:hover {
|
nav ul li {
|
||||||
background-color: #0056b3; /* Изменение цвета кнопки при наведении */
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.advertisement {
|
nav ul li a {
|
||||||
margin-top: 50px;
|
color: #fff;
|
||||||
}
|
text-decoration: none;
|
||||||
|
padding: 10px 20px;
|
||||||
|
transition: background-color 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
.advertisement img {
|
nav ul li a:hover {
|
||||||
max-width: 100%;
|
background-color: #555;
|
||||||
border-radius: 10px;
|
}
|
||||||
box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); /* Тень изображения */
|
|
||||||
}
|
|
||||||
|
|
||||||
nav {
|
.container {
|
||||||
background-color: #333;
|
max-width: 800px;
|
||||||
padding: 10px 0;
|
margin: 50px auto;
|
||||||
display: flex;
|
padding: 20px;
|
||||||
align-items: center;
|
background-color: #222; /* Цвет фона контейнера */
|
||||||
justify-content: space-between;
|
border-radius: 10px;
|
||||||
}
|
box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); /* Тень контейнера */
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
nav .logo {
|
h1 {
|
||||||
margin-left: 20px;
|
color: #007bff; /* Цвет заголовка */
|
||||||
}
|
}
|
||||||
|
|
||||||
nav ul {
|
p {
|
||||||
list-style-type: none;
|
font-size: 18px;
|
||||||
margin: 0;
|
line-height: 1.6;
|
||||||
padding: 0;
|
margin-bottom: 20px;
|
||||||
text-align: center;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
nav ul li {
|
.btn {
|
||||||
display: inline;
|
display: inline-block;
|
||||||
}
|
padding: 10px 20px;
|
||||||
|
background-color: #007bff; /* Цвет кнопки */
|
||||||
|
color: #fff; /* Цвет текста на кнопке */
|
||||||
|
text-decoration: none;
|
||||||
|
border-radius: 5px;
|
||||||
|
transition: background-color 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
nav ul li a {
|
.btn:hover {
|
||||||
color: #fff;
|
background-color: #0056b3; /* Изменение цвета кнопки при наведении */
|
||||||
text-decoration: none;
|
}
|
||||||
padding: 10px 20px;
|
|
||||||
transition: background-color 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav ul li a:hover {
|
.advertisement {
|
||||||
background-color: #555;
|
margin-top: 50px;
|
||||||
}
|
}
|
||||||
</style>
|
|
||||||
</head>
|
.advertisement img {
|
||||||
<body>
|
max-width: 100%;
|
||||||
<nav>
|
border-radius: 10px;
|
||||||
<div class="logo">
|
box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); /* Тень изображения */
|
||||||
<img src="logo.png" alt="Tanki Logo">
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
background-color: #888; /* Серый цвет фона нижнего раздела */
|
||||||
|
padding: 20px;
|
||||||
|
margin-top: 50px; /* Отступ сверху */
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer h2 {
|
||||||
|
color: #fff; /* Белый цвет текста */
|
||||||
|
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">
|
||||||
|
<h2>Tanki 2D</h2>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ul>
|
|
||||||
<li><a href="/about">About</a></li>
|
<script>
|
||||||
<li><a href="/game">Game</a></li>
|
document.querySelector('.logo').addEventListener('click', function() {
|
||||||
<li><a href="/link">Link</a></li>
|
window.location.href = '/';
|
||||||
</ul>
|
});
|
||||||
</nav>
|
</script>
|
||||||
<div class="container">
|
</body>
|
||||||
<h1>Welcome to Tanki!</h1>
|
</html>
|
||||||
<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>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue