Commit 06ace29b authored by Pavel Beketov's avatar Pavel Beketov

index.html styles.css: fix the image on the left in the hero-section

parent 57456c4b
...@@ -43,25 +43,26 @@ ...@@ -43,25 +43,26 @@
<a href="https://gitlab.eterfund.ru/ximperlinux" class="social-icon"><i class="fab fa-gitlab"></i></a> <a href="https://gitlab.eterfund.ru/ximperlinux" class="social-icon"><i class="fab fa-gitlab"></i></a>
</div> </div>
</header> </header>
<main> <main>
<div id="hero-section"> <div id="hero-section">
<div class="hero-image"> <div class="hero-content-wrapper">
<img src="images/top_ximper.png" alt="logo"> <div class="hero-image">
</div> <img src="images/top_ximper.png" alt="logo">
<div class="hero-text">
<h2>Ximper Linux</h2>
<p>Для тех, кто требует от системы всего и сразу: современный дизайн, высокая скорость и уверенность в завтрашнем дне. Построен на отложенном репозитории ALT Sisyphus и гарантирует стабильность.</p>
</div> </div>
<div class="hero-text">
<button id="next-section" class="button outline">Узнать больше</button> <h2>Ximper Linux</h2>
<div class="arrows"> <p>Для тех, кто требует от системы всего и сразу: современный дизайн, высокая скорость и уверенность в завтрашнем дне. Построен на отложенном репозитории ALT Sisyphus и гарантирует стабильность.</p>
<span class="arrow"></span>
<span class="arrow"></span>
<span class="arrow"></span>
</div> </div>
</div> </div>
<button id="next-section" class="button outline">Узнать больше</button>
<div class="arrows">
<span class="arrow"></span>
<span class="arrow"></span>
<span class="arrow"></span>
</div>
</div> </div>
<div id="blocks-text"> <div id="blocks-text">
<h1>Возможности и удобства</h1> <h1>Возможности и удобства</h1>
<hr class="text-hr"> <hr class="text-hr">
...@@ -123,7 +124,7 @@ ...@@ -123,7 +124,7 @@
<button id="next-section" class="button_download">Перейти в загрузки</button> <button id="next-section" class="button_download">Перейти в загрузки</button>
</div> </div>
</div> </div>
<div class="distro-variant"> <div class="distro-variant">
<div class="distro-image"> <div class="distro-image">
<img src="images/mock_hyprland.png" alt="Ximper Linux Hyprland"> <img src="images/mock_hyprland.png" alt="Ximper Linux Hyprland">
...@@ -150,7 +151,7 @@ ...@@ -150,7 +151,7 @@
<footer> <footer>
<div class="footer-left"> <div class="footer-left">
<p id="contact-info">© ООО «Этерсофт». Санкт-Петербург <a href="license.html" id="license-link">Лицензионное соглашение</a></p> <p id="contact-info">© ООО «Этерсофт». Санкт-Петербург <a href="license.html" id="license-link">Лицензионное соглашение</a></p>
</div> </div>
<div class="footer-center"> <div class="footer-center">
</div> </div>
......
...@@ -410,44 +410,56 @@ header h1 { ...@@ -410,44 +410,56 @@ header h1 {
/* Стили для основного контента */ /* Стили для основного контента */
main { main {
flex: 1; flex: 1;
/* padding-bottom: 20px; */
padding: 0px 10% 20px 10%; padding: 0px 10% 20px 10%;
position: relative; position: relative;
margin-top: 80px; margin-top: 80px;
} }
/* Обновленные стили для hero-section */
#hero-section { #hero-section {
display: flex; display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-image: url("images/head.png"); background-image: url("images/head.png");
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: cover; background-size: cover;
justify-content: center; min-height: 100vh;
align-items: center;
flex-direction: column;
height: 100vh;
text-align: left; text-align: left;
position: relative; position: relative;
margin-top: -20px; margin-top: -20px;
overflow: hidden; overflow: hidden;
padding: 0 10%;
}
.hero-content-wrapper {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 100%;
max-width: 1200px;
margin: 0 auto;
} }
.hero-image { .hero-image {
flex: 0 0 45%;
max-width: 45%;
display: flex; display: flex;
flex-wrap: nowrap; justify-content: center;
margin-bottom: 20px; align-items: center;
width: auto;
} }
.hero-image img { .hero-image img {
max-width: 50%; max-width: 100%;
padding: 20px 0;
height: auto; height: auto;
border-radius: 15px; border-radius: 15px;
} }
.hero-text { .hero-text {
flex: 0 0 50%;
max-width: 60%; max-width: 50%;
padding-left: 5%;
} }
.hero-text h2 { .hero-text h2 {
...@@ -520,6 +532,54 @@ main { ...@@ -520,6 +532,54 @@ main {
border-radius: 10px; border-radius: 10px;
} }
/* Адаптация для планшетов */
@media (max-width: 1024px) {
#hero-section {
flex-direction: column;
justify-content: center;
padding: 0 5%;
}
.hero-content-wrapper {
flex-direction: column;
}
.hero-image,
.hero-text {
flex: 0 0 100%;
max-width: 100%;
}
.hero-image img {
max-width: 70%;
margin-bottom: 30px;
}
.hero-text {
padding-left: 0;
text-align: center;
}
}
/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
#hero-section {
padding: 0 20px;
}
.hero-image img {
max-width: 90%;
}
.hero-text h2 {
font-size: 36px;
}
.hero-text p {
font-size: 16px;
}
}
/* Контейнер с преимуществами */ /* Контейнер с преимуществами */
#blocks-section { #blocks-section {
display: grid; display: grid;
...@@ -631,7 +691,7 @@ main { ...@@ -631,7 +691,7 @@ main {
.info-block h3 { .info-block h3 {
font-size: 1.2em; font-size: 1.2em;
} }
main { main {
padding: 0px 0% 20px 0% !important; padding: 0px 0% 20px 0% !important;
} }
...@@ -1190,7 +1250,6 @@ footer { ...@@ -1190,7 +1250,6 @@ footer {
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: cover; background-size: cover;
position: relative; position: relative;
max-widch:
} }
.distro-variant { .distro-variant {
...@@ -1321,4 +1380,3 @@ footer { ...@@ -1321,4 +1380,3 @@ footer {
height: 100%; height: 100%;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment